google / sanitizers

AddressSanitizer, ThreadSanitizer, MemorySanitizer
Other
11.55k stars 1.04k forks source link

Some TSAN tests fails with COMPILER_RT_DEBUG on PowerPC #1792

Open vitalybuka opened 2 months ago

vitalybuka commented 2 months ago

Can't reproduce on x86

        1: ================== 
        2: WARNING: ThreadSanitizer: signal handler spoils errno (pid=91141) 
not:59     !~~~~~~~~~~~~~~~~~~~~~~~~                                          error: no match expected
        3:  Signal 10 handler invoked at: 
        4:  #0 handler(int) /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp:13 (signal_block.cpp.tmp+0xff160) 
        5:  #1 thread(void*) /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp:25:5 (signal_block.cpp.tmp+0xff2b0) 
        6:  
        7: SUMMARY: ThreadSanitizer: signal handler spoils errno /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp:13 in handler(int) 
        .
        .

Tests can be found here https://github.com/llvm/llvm-project/commit/3a13c5a2862fdc957d751a7679581d5da151efc2