By default valgrind tries to free up glibc memory at exit by running __libc_freeres (). Unfortunately some older glibc versions have bugs that either crash the test or make valgrind report errors. Since we aren't interested in tracking memory leaks in glibc anyway, just disable it.
Signed-off-by: Mark Wielaard <[email protected]> --- tests/ChangeLog | 4 ++++ tests/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 5b06b85..0289148 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2012-12-03 Mark Wielaard <[email protected]> + + * Makefile.am (valgrind_cmd): Add --run-libc-freeres=no. + 2012-11-29 Jan Kratochvil <[email protected]> * run-addrname-test.sh: New test for PIE relocation. diff --git a/tests/Makefile.am b/tests/Makefile.am index 6808bd1..8b7b751 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -184,7 +184,7 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ testfile70.core.bz2 testfile70.exec.bz2 if USE_VALGRIND -valgrind_cmd="valgrind -q --trace-children=yes --error-exitcode=1" +valgrind_cmd="valgrind -q --trace-children=yes --error-exitcode=1 --run-libc-freeres=no" endif installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \ -- 1.7.1 _______________________________________________ elfutils-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/elfutils-devel
