[clang] [llvm] [clang][CodeGen][AMDGPU] Enable AMDGPU `printf` for `spirv64-amd-amdhsa` (PR #97132)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 5 06:48:39 PDT 2024


AlexVlx wrote:

> LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `clang,llvm` at step 2 "annotate".
> 
> Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/839
> 
> Here is the relevant piece of the build log for the reference:
> 
> ```
> Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
> ...
> XFAIL: SanitizerCommon-msan-powerpc64le-Linux :: Posix/dump_registers.cpp (365 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: bench_ten_mutexes.cpp (366 of 2450)
> PASS: SanitizerCommon-tsan-powerpc64le-Linux :: Posix/lstat.cpp (367 of 2450)
> PASS: MemorySanitizer-POWERPC64LE :: Linux/glob_altdirfunc.cpp (368 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: atomic_hle.cpp (369 of 2450)
> PASS: LeakSanitizer-Standalone-powerpc64le :: TestCases/Linux/dso-unknown.cpp (370 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: print_full_thread_history.cpp (371 of 2450)
> PASS: LeakSanitizer-Standalone-powerpc64le :: TestCases/disabler.cpp (372 of 2450)
> PASS: SanitizerCommon-tsan-powerpc64le-Linux :: Linux/ptrace.cpp (373 of 2450)
> PASS: ScudoStandalone-Unit :: ./ScudoCUnitTest-powerpc64le-Test/13/14 (374 of 2450)
> FAIL: ThreadSanitizer-powerpc64le :: signal_block.cpp (375 of 2450)
> ******************** TEST 'ThreadSanitizer-powerpc64le :: signal_block.cpp' FAILED ********************
> Exit Code: 1
> 
> Command Output (stderr):
> --
> RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./bin/clang  -fsanitize=thread -Wall  -m64 -fno-function-sections   -gline-tables-only -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/../ -O1 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> + /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./bin/clang -fsanitize=thread -Wall -m64 -fno-function-sections -gline-tables-only -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/../ -O1 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp
> + /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp
> + FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp:59:15: error: CHECK-NOT: excluded string found in input
> // CHECK-NOT: WARNING: ThreadSanitizer:
>               ^
> <stdin>:2:1: note: found here
> WARNING: ThreadSanitizer: signal handler spoils errno (pid=3242989)
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Input file: <stdin>
> Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> 
> -dump-input=help explains the following input dump.
> 
> Input was:
> <<<<<<
>         1: ================== 
>         2: WARNING: ThreadSanitizer: signal handler spoils errno (pid=3242989) 
> 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+0xfea60) 
>         5:  
>         6: 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) 
>         7: ================== 
>         8: DONE 
>         9: ThreadSanitizer: reported 1 warnings 
> >>>>>>
> 
> --
> 
> ********************
> Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
> ...
> XFAIL: SanitizerCommon-msan-powerpc64le-Linux :: Posix/dump_registers.cpp (365 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: bench_ten_mutexes.cpp (366 of 2450)
> PASS: SanitizerCommon-tsan-powerpc64le-Linux :: Posix/lstat.cpp (367 of 2450)
> PASS: MemorySanitizer-POWERPC64LE :: Linux/glob_altdirfunc.cpp (368 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: atomic_hle.cpp (369 of 2450)
> PASS: LeakSanitizer-Standalone-powerpc64le :: TestCases/Linux/dso-unknown.cpp (370 of 2450)
> PASS: ThreadSanitizer-powerpc64le :: print_full_thread_history.cpp (371 of 2450)
> PASS: LeakSanitizer-Standalone-powerpc64le :: TestCases/disabler.cpp (372 of 2450)
> PASS: SanitizerCommon-tsan-powerpc64le-Linux :: Linux/ptrace.cpp (373 of 2450)
> PASS: ScudoStandalone-Unit :: ./ScudoCUnitTest-powerpc64le-Test/13/14 (374 of 2450)
> FAIL: ThreadSanitizer-powerpc64le :: signal_block.cpp (375 of 2450)
> ******************** TEST 'ThreadSanitizer-powerpc64le :: signal_block.cpp' FAILED ********************
> Exit Code: 1
> 
> Command Output (stderr):
> --
> RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./bin/clang  -fsanitize=thread -Wall  -m64 -fno-function-sections   -gline-tables-only -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/../ -O1 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> + /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./bin/clang -fsanitize=thread -Wall -m64 -fno-function-sections -gline-tables-only -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/../ -O1 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp
> + /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_block.cpp.tmp
> + FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp:59:15: error: CHECK-NOT: excluded string found in input
> // CHECK-NOT: WARNING: ThreadSanitizer:
>               ^
> <stdin>:2:1: note: found here
> WARNING: ThreadSanitizer: signal handler spoils errno (pid=3242989)
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Input file: <stdin>
> Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_block.cpp
> 
> -dump-input=help explains the following input dump.
> 
> Input was:
> <<<<<<
>         1: ================== 
>         2: WARNING: ThreadSanitizer: signal handler spoils errno (pid=3242989) 
> 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+0xfea60) 
>         5:  
>         6: 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) 
>         7: ================== 
>         8: DONE 
>         9: ThreadSanitizer: reported 1 warnings 
> >>>>>>
> 
> --
> 
> ********************
> ```

This looks like a fluke, keeping an eye on it nonetheless.

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


More information about the cfe-commits mailing list