[compiler-rt] [scudo] Fix c wrappers double free test. (PR #148066)
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 19 06:55:04 PDT 2025
mgorny wrote:
I'm afraid this change actually breaks the test for me, on Gentoo amd64:
```
******************** TEST 'ScudoStandalone-Unit :: ./ScudoCUnitTest-x86_64-Test/0/15' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/./ScudoCUnitTest-x86_64-Test-ScudoStandalone-Unit-227-0-15.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=15 GTEST_SHARD_INDEX=0 /var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/./ScudoCUnitTest-x86_64-Test
--
Script:
--
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/./ScudoCUnitTest-x86_64-Test --gtest_filter=ScudoWrappersCDeathTest.Malloc
--
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp:190: Failure
Death test: { void *Ptr = malloc(Size); free(Ptr); free(Ptr); }
Result: failed to die.
Error msg:
[ DEATH ]
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp:190
Death test: { void *Ptr = malloc(Size); free(Ptr); free(Ptr); }
Result: failed to die.
Error msg:
[ DEATH ]
********************
******************** TEST 'ScudoStandalone-Unit :: ./ScudoCUnitTest-i386-Test/0/15' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/.
/ScudoCUnitTest-i386-Test-ScudoStandalone-Unit-227-0-15.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=15 GTEST_SHARD_INDEX=0 /var/tmp/portage
/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/./ScudoCUnitTest-i386-Test
--
Script:
--
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt_build/lib/scudo/standalone/tests/./ScudoCUnitTest-i3
86-Test --gtest_filter=ScudoWrappersCDeathTest.Malloc
--
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp:190:
Failure
Death test: { void *Ptr = malloc(Size); free(Ptr); free(Ptr); }
Result: failed to die.
Error msg:
[ DEATH ]
/var/tmp/portage/llvm-runtimes/compiler-rt-sanitizers-22.0.0.9999/work/compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp:190
Death test: { void *Ptr = malloc(Size); free(Ptr); free(Ptr); }
Result: failed to die.
Error msg:
[ DEATH ]
********************
```
This is on glibc 2.41, if that could be relevant. Prior to the change, the test passed reliably.
https://github.com/llvm/llvm-project/pull/148066
More information about the llvm-commits
mailing list