[compiler-rt] [compiler-rt] Also consider SIGPROF as a synchronous signal (PR #85188)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 11:20:42 PDT 2024


PiJoules wrote:

Hi. I think this change is causing some tsan tests to fail on our builders (https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8753487020222109921/overview):

```
FAIL: ThreadSanitizer-x86_64 :: signal_thread.cpp (4648 of 15687)
******************** TEST 'ThreadSanitizer-x86_64 :: signal_thread.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/s/w/ir/x/w/llvm_build/./bin/clang  --driver-mode=g++ -fsanitize=thread -Wall    -msse4.2   -gline-tables-only -I/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/../ -std=c++11 -I/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/../ -nostdinc++ -I/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/libcxx_tsan_x86_64/include/c++/v1 -O1 /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/tsan/X86_64Config/Output/signal_thread.cpp.tmp &&  /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/tsan/X86_64Config/Output/signal_thread.cpp.tmp 2>&1 | FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp
+ /b/s/w/ir/x/w/llvm_build/./bin/clang --driver-mode=g++ -fsanitize=thread -Wall -msse4.2 -gline-tables-only -I/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/../ -std=c++11 -I/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/../ -nostdinc++ -I/b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/tsan/libcxx_tsan_x86_64/include/c++/v1 -O1 /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp -o /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/tsan/X86_64Config/Output/signal_thread.cpp.tmp
+ /b/s/w/ir/x/w/llvm_build/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/test/tsan/X86_64Config/Output/signal_thread.cpp.tmp
+ FileCheck /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp
/b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp:52:11: error: CHECK: expected string not found in input
// CHECK: DONE
          ^
<stdin>:1:1: note: scanning from here
ThreadSanitizer: CHECK failed: tsan_interceptors_posix.cpp:2075 "((thr->slot)) != (0)" (0x0, 0x0) (tid=2104100)
^

Input file: <stdin>
Check file: /b/s/w/ir/x/w/llvm-llvm-project/compiler-rt/test/tsan/signal_thread.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          1: ThreadSanitizer: CHECK failed: tsan_interceptors_posix.cpp:2075 "((thr->slot)) != (0)" (0x0, 0x0) (tid=2104100) 
check:52     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
>>>>>>

--
```

Could you take a look and send out a fix or revert? Thanks.

https://github.com/llvm/llvm-project/pull/85188


More information about the llvm-commits mailing list