[llvm] [Support] Include Support/thread.h before api implementations (PR #111175)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 22:34:47 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `llvm` at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/4728

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[385/391] Generating Fuzzer-x86_64-Test
[386/391] Generating MSAN_INST_GTEST.gtest-all.cc.x86_64.o
[387/391] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[388/391] Generating Msan-x86_64-with-call-Test
[389/391] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[390/391] Generating Msan-x86_64-Test
[390/391] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10346 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: SanitizerCommon-ubsan-i386-Linux :: Posix/create_thread_loop.cpp (6825 of 10346)
******************** TEST 'SanitizerCommon-ubsan-i386-Linux :: Posix/create_thread_loop.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=undefined  -m32 -funwind-tables  -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O3 -pthread /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp -o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp &&  /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp 1000
+ /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=undefined -m32 -funwind-tables -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O3 -pthread /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp -o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp
+ /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp 1000
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==2073156==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0xee6f4bc0 (pc 0xf6f98182 bp 0xffc42e68 sp 0xffc42e40 T2073156)
==2073156==The signal is caused by a READ memory access.
    #0 0xf6f98182 in pthread_detach (/lib/i386-linux-gnu/libc.so.6+0x8e182) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #1 0x56d1f4f0 in main /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp:23:7
    #2 0xf6f2ecb8  (/lib/i386-linux-gnu/libc.so.6+0x24cb8) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #3 0xf6f2ed7b in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x24d7b) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #4 0x56ceea06 in _start (/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp+0x22a06)

==2073156==Register values:
eax = 0x00000000  ebx = 0x56d2480c  ecx = 0xffc42d98  edx = 0xee6f4b40  
edi = 0x56d1f548  esi = 0x000001d3  ebp = 0xffc42e68  esp = 0xffc42e40  
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/lib/i386-linux-gnu/libc.so.6+0x8e182) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b) in pthread_detach
==2073156==ABORTING

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
58.22s: libFuzzer-x86_64-default-Linux :: out-of-process-fuzz.test
55.89s: ThreadSanitizer-x86_64 :: bench_threads.cpp
54.56s: libFuzzer-x86_64-libcxx-Linux :: out-of-process-fuzz.test
48.28s: libFuzzer-i386-default-Linux :: fork.test
48.06s: libFuzzer-x86_64-static-libcxx-Linux :: out-of-process-fuzz.test
47.58s: libFuzzer-i386-static-libcxx-Linux :: fork_corpus_groups.test
47.23s: libFuzzer-i386-default-Linux :: fork_corpus_groups.test
46.72s: libFuzzer-i386-libcxx-Linux :: fork_corpus_groups.test
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[385/391] Generating Fuzzer-x86_64-Test
[386/391] Generating MSAN_INST_GTEST.gtest-all.cc.x86_64.o
[387/391] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[388/391] Generating Msan-x86_64-with-call-Test
[389/391] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[390/391] Generating Msan-x86_64-Test
[390/391] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10346 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: SanitizerCommon-ubsan-i386-Linux :: Posix/create_thread_loop.cpp (6825 of 10346)
******************** TEST 'SanitizerCommon-ubsan-i386-Linux :: Posix/create_thread_loop.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=undefined  -m32 -funwind-tables  -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O3 -pthread /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp -o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp &&  /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp 1000
+ /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang --driver-mode=g++ -gline-tables-only -fsanitize=undefined -m32 -funwind-tables -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O3 -pthread /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp -o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp
+ /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp 1000
UndefinedBehaviorSanitizer:DEADLYSIGNAL
==2073156==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0xee6f4bc0 (pc 0xf6f98182 bp 0xffc42e68 sp 0xffc42e40 T2073156)
==2073156==The signal is caused by a READ memory access.
    #0 0xf6f98182 in pthread_detach (/lib/i386-linux-gnu/libc.so.6+0x8e182) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #1 0x56d1f4f0 in main /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/create_thread_loop.cpp:23:7
    #2 0xf6f2ecb8  (/lib/i386-linux-gnu/libc.so.6+0x24cb8) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #3 0xf6f2ed7b in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x24d7b) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b)
    #4 0x56ceea06 in _start (/home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/ubsan-i386-Linux/Posix/Output/create_thread_loop.cpp.tmp+0x22a06)

==2073156==Register values:
eax = 0x00000000  ebx = 0x56d2480c  ecx = 0xffc42d98  edx = 0xee6f4b40  
edi = 0x56d1f548  esi = 0x000001d3  ebp = 0xffc42e68  esp = 0xffc42e40  
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/lib/i386-linux-gnu/libc.so.6+0x8e182) (BuildId: ece90bd35626def53dbc8fa6ec5935e7e697fc8b) in pthread_detach
==2073156==ABORTING

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
58.22s: libFuzzer-x86_64-default-Linux :: out-of-process-fuzz.test
55.89s: ThreadSanitizer-x86_64 :: bench_threads.cpp
54.56s: libFuzzer-x86_64-libcxx-Linux :: out-of-process-fuzz.test
48.28s: libFuzzer-i386-default-Linux :: fork.test
48.06s: libFuzzer-x86_64-static-libcxx-Linux :: out-of-process-fuzz.test
47.58s: libFuzzer-i386-static-libcxx-Linux :: fork_corpus_groups.test
47.23s: libFuzzer-i386-default-Linux :: fork_corpus_groups.test
46.72s: libFuzzer-i386-libcxx-Linux :: fork_corpus_groups.test

```

</details>

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


More information about the llvm-commits mailing list