Page MenuHomePhabricator

Add more debug code for https://github.com/google/sanitizers/issues/1193 (getting desperate, not being able to reproduce it for a few months, but the users are seeing it)
ClosedPublic

Authored by kcc on Jul 28 2020, 6:54 PM.

Diff Detail

Unit TestsFailed

TimeTest
30 mslinux > HWAddressSanitizer-x86_64.TestCases::allocator_returns_null.cpp
Script: -- : 'RUN: at line 7'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions -O0 /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/allocator_returns_null.cpp -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/allocator_returns_null.cpp.tmp
30 mslinux > HWAddressSanitizer-x86_64.TestCases::check-interface.cpp
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions -mllvm -hwasan-instrument-with-calls=1 -O0 /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/check-interface.cpp -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/check-interface.cpp.tmp
30 mslinux > HWAddressSanitizer-x86_64.TestCases::deep-recursion.c
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions -O1 /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/deep-recursion.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/deep-recursion.c.tmp
30 mslinux > HWAddressSanitizer-x86_64.TestCases::double-free.c
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/double-free.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/double-free.c.tmp && not /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/double-free.c.tmp 2>&1 | FileCheck /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/double-free.c
30 mslinux > HWAddressSanitizer-x86_64.TestCases::global.c
Script: -- : 'RUN: at line 1'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang -m64 -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/global.c -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/global.c.tmp
View Full Test Results (597 Failed)

Event Timeline

kcc created this revision.Jul 28 2020, 6:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 6:54 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kcc requested review of this revision.Jul 28 2020, 6:54 PM
vitalybuka accepted this revision.Jul 28 2020, 7:13 PM
vitalybuka added inline comments.
compiler-rt/lib/asan/asan_allocator.cpp
1089

PRINT_CURRENT_STACK() may help to confirm atexit idea

This revision is now accepted and ready to land.Jul 28 2020, 7:13 PM
kcc added inline comments.Jul 28 2020, 7:16 PM
compiler-rt/lib/asan/asan_allocator.cpp
1089

CHECK already does that (and fails for some reason).

This revision was landed with ongoing or failed builds.Jul 29 2020, 11:13 AM
This revision was automatically updated to reflect the committed changes.