[compiler-rt] [TSan][Darwin] Add _longjmp interceptor for Apple platforms (PR #163384)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 04:19:22 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 5820 tests passed
* 1323 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### ThreadSanitizer-x86_64
<details>
<summary>ThreadSanitizer-x86_64.ThreadSanitizer-x86_64/setjmp_longjmp.c</summary>
```
Exit Code: 1
Command Output (stderr):
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang -fsanitize=thread -Wall -m64 -msse4.2 -gline-tables-only -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/../ /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/setjmp_longjmp.c.tmp # RUN: at line 1
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang -fsanitize=thread -Wall -m64 -msse4.2 -gline-tables-only -I/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/../ /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/setjmp_longjmp.c.tmp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/deflake.bash 10 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/setjmp_longjmp.c.tmp | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c # RUN: at line 2
+ FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/deflake.bash 10 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/tsan/X86_64Config/Output/setjmp_longjmp.c.tmp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c:47:11: error: CHECK: expected string not found in input
// CHECK: WARNING: ThreadSanitizer: data race
^
<stdin>:1:1: note: scanning from here
ThreadSanitizer:DEADLYSIGNAL
^
<stdin>:2:9: note: possible intended match here
==573429==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7ffff40fd5f0 sp 0x7ffff40fd5c8 T573431)
^
Input file: <stdin>
Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/tsan/setjmp_longjmp.c
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ThreadSanitizer:DEADLYSIGNAL
check:47'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: ==573429==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7ffff40fd5f0 sp 0x7ffff40fd5c8 T573431)
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:47'1 ? possible intended match
3: ==573429==Hint: pc points to the zero page.
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: ==573429==The signal is caused by a READ memory access.
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: ==573429==Hint: address points to the zero page.
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: #0 <null> <null> (0x000000000000)
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: #1 __sanitizer::BufferedStackTrace::UnwindImpl(unsigned long, unsigned long, void*, bool, unsigned int) /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/tsan/rtl/tsan_stack_trace.cpp:55:3 (setjmp_longjmp.c.tmp+0xe4ce0)
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/163384
More information about the llvm-commits
mailing list