aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-04-13 16:17:38 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-04-13 17:42:13 +0200
commitaea52e3d2b71e89f2ba4fd4d8f1f8d3036d83c1d (patch)
treea4d1718dd22e6fc0b757e4455fa4fe82bd2ccd66 /elf
parentcf11e74b0d81d389bcad5cdbba020ba475f0ac4b (diff)
downloadglibc-aea52e3d2b71e89f2ba4fd4d8f1f8d3036d83c1d.zip
glibc-aea52e3d2b71e89f2ba4fd4d8f1f8d3036d83c1d.tar.gz
glibc-aea52e3d2b71e89f2ba4fd4d8f1f8d3036d83c1d.tar.bz2
Revert "x86_64: Suppress false positive valgrind error"
This reverts commit a1735e0aa858f0c8b15e5ee9975bff4279423680. The test failure is a real valgrind bug that needs to be fixed before valgrind is usable with a glibc that has been built with CC="gcc -march=x86-64-v3". The proposed valgrind patch teaches valgrind to replace ld.so strcmp with an unoptimized scalar implementation, thus avoiding any AVX2-related problems. Valgrind bug: <https://bugs.kde.org/show_bug.cgi?id=485487> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile3
-rw-r--r--elf/tst-valgrind-smoke.sh5
2 files changed, 3 insertions, 5 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 6dad11b..fb3c3c4 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -618,8 +618,7 @@ tests-special += $(objpfx)tst-valgrind-smoke.out
endif
$(objpfx)tst-valgrind-smoke.out: tst-valgrind-smoke.sh $(objpfx)ld.so $(objpfx)valgrind-test
$(SHELL) $< $(objpfx)ld.so $(rtlddir)/$(rtld-installed-name) '$(test-wrapper-env)' \
- '$(run-program-env)' '$(rpath-link)' $(objpfx)valgrind-test \
- '$(valgrind-suppressions-tst-valgrind-smoke)' > $@; $(evaluate-test)
+ '$(run-program-env)' '$(rpath-link)' $(objpfx)valgrind-test > $@; $(evaluate-test)
ifeq ($(run-built-tests),yes)
tests-special += $(objpfx)tst-rtld-does-not-exist.out
diff --git a/elf/tst-valgrind-smoke.sh b/elf/tst-valgrind-smoke.sh
index 7d0ceac..e33b2fa 100644
--- a/elf/tst-valgrind-smoke.sh
+++ b/elf/tst-valgrind-smoke.sh
@@ -25,7 +25,6 @@ test_wrapper_env="$3"
run_program_env="$4"
library_path="$5"
test_prog="$6"
-valgrind_suppressions="$7"
# Test whether valgrind is available in the test
# environment. If not, skip the test.
@@ -35,7 +34,7 @@ ${test_wrapper_env} ${run_program_env} \
# Test valgrind works with the system ld.so in the test environment
/bin/sh -c \
"${test_wrapper_env} ${run_program_env} \
- valgrind -q --error-exitcode=1 ${valgrind_suppressions} \
+ valgrind -q --error-exitcode=1 \
${system_rtld} /bin/echo ${system_rtld}" || exit 77
# Finally the actual test inside the test environment,
@@ -43,5 +42,5 @@ ${test_wrapper_env} ${run_program_env} \
# the smoke test under valgrind.
/bin/sh -c \
"${test_wrapper_env} ${run_program_env} \
- valgrind -q --error-exitcode=1 ${valgrind_suppressions} \
+ valgrind -q --error-exitcode=1 \
${rtld} --library-path ${library_path} ${test_prog} ${rtld}"