From 1d6a435f55ba6ee1568fb6fede6495e37c455cae Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 3 Dec 2012 17:01:09 +0100 Subject: [PATCH] Run valgrind tests with --run-libc-freeres=no. 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 --- tests/ChangeLog | 4 ++++ tests/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 5b06b85f4..0289148b3 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2012-12-03 Mark Wielaard + + * Makefile.am (valgrind_cmd): Add --run-libc-freeres=no. + 2012-11-29 Jan Kratochvil * run-addrname-test.sh: New test for PIE relocation. diff --git a/tests/Makefile.am b/tests/Makefile.am index 6808bd134..8b7b751fe 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) \ -- 2.47.2