valgrind: Add workaround for slow loading of debuginfo by valgrind.

See nbdkit commit
bd32d899ed
and https://bugzilla.redhat.com/show_bug.cgi?id=1662656

(cherry picked from commit ea7c13fed7)
This commit is contained in:
Richard W.M. Jones
2019-01-17 12:03:07 +00:00
parent 1de72f8f00
commit ae2aa14527

View File

@@ -124,9 +124,10 @@ dnl Check for valgrind
AC_CHECK_PROG([VALGRIND],[valgrind],[valgrind],[no])
AS_IF([test "x$VALGRIND" != "xno"],[
# Substitute the whole valgrind command.
# --read-inline-info=no is a temporary workaround for RHBZ#1662656.
# Note we run libtool, not $(LIBTOOL) since the latter expands to
# libtool-kill-dependency-libs.sh
VG='libtool --mode=execute $(VALGRIND) --vgdb=no --log-file=$(abs_top_builddir)/tmp/valgrind-%q{T}-%p.log --leak-check=full --error-exitcode=119 --suppressions=$(abs_top_srcdir)/valgrind-suppressions --trace-children=no --child-silent-after-fork=yes --run-libc-freeres=no'
VG='libtool --mode=execute $(VALGRIND) --vgdb=no --log-file=$(abs_top_builddir)/tmp/valgrind-%q{T}-%p.log --leak-check=full --error-exitcode=119 --suppressions=$(abs_top_srcdir)/valgrind-suppressions --trace-children=no --child-silent-after-fork=yes --run-libc-freeres=no --read-inline-info=no'
],[
# No valgrind, so substitute VG with something that will break.
VG=VALGRIND_IS_NOT_INSTALLED