The SanitizerCommon-lsan-x86_64-Linux test failed due to the address of
the very first allocation ending up in the stack through "delete[]".
Workaround this by performing another allocation. The issue was only
present with optimization enabled, the test would pass with -O0.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc | ||
---|---|---|
3 ↗ | (On Diff #145955) | Renato, this line was added in r249398, "[LSAN] Mark death callback as unstable while we investigate the cause in AArch64". If the issue was also caused by pointers on the stack, perhaps this line can be removed? To investigate what is leaking, try env var LSAN_OPTIONS=log_pointers=1 |
test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc | ||
---|---|---|
28 ↗ | (On Diff #145955) | This stack cleanup looks unreliable. __attribute__((noinline)) void Leak() { sink = new char[100]; sink = new char[100]; } |