Skip to content

[RISCV] Fix Test Prefixes in Debug Test #141895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025

Conversation

lenary
Copy link
Member

@lenary lenary commented May 29, 2025

No description provided.

@lenary lenary requested review from MaskRay and dlav-sc May 29, 2025 04:54
@llvmbot
Copy link
Member

llvmbot commented May 29, 2025

@llvm/pr-subscribers-debuginfo

Author: Sam Elliott (lenary)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/141895.diff

1 Files Affected:

  • (modified) llvm/test/DebugInfo/RISCV/relax-debug-frame.ll (+6-6)
diff --git a/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll b/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
index 8ab1a67eb1b38..25ee7b495dc81 100644
--- a/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
+++ b/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
@@ -4,12 +4,12 @@
 ; RUN:     | FileCheck -check-prefix=RELAX-DWARFDUMP %s
 ;
 ; RELAX:      Section ({{.*}}) .rela.eh_frame {
-; REALX-NEXT:   0x1C R_RISCV_32_PCREL .L0 0x0 
-; REALX-NEXT:   0x30 R_RISCV_32_PCREL .L0 0x0 
-; REALX-NEXT:   0x48 R_RISCV_32_PCREL .L0 0x0 
-; REALX-NEXT:   0x4C R_RISCV_ADD32 .L0 0x0 
-; REALX-NEXT:   0x4C R_RISCV_SUB32 .L0 0x0 
-; REALX-NEXT:   0x57 R_RISCV_SET6 .L0 0x0 
+; RELAX-NEXT:   0x1C R_RISCV_32_PCREL .L0 0x0
+; RELAX-NEXT:   0x30 R_RISCV_32_PCREL .L0 0x0
+; RELAX-NEXT:   0x48 R_RISCV_32_PCREL .L0 0x0
+; RELAX-NEXT:   0x4C R_RISCV_ADD32 .L0 0x0
+; RELAX-NEXT:   0x4C R_RISCV_SUB32 .L0 0x0
+; RELAX-NEXT:   0x57 R_RISCV_SET6 .L0 0x0
 ; RELAX-NEXT-EMPTY:
 
 ; RELAX-DWARFDUMP-NOT: error: failed to compute relocation

@lenary lenary merged commit 94bcd9c into llvm:main May 29, 2025
11 of 13 checks passed
@lenary lenary deleted the pr/riscv-fix-relax-test branch May 29, 2025 06:15
@llvm-ci
Copy link
Collaborator

llvm-ci commented May 29, 2025

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

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

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)
...
PASS: MemorySanitizer-POWERPC64LE :: dtor-vtable.cpp (2542 of 2610)
PASS: ThreadSanitizer-powerpc64le :: mutex_lock_destroyed.cpp (2543 of 2610)
PASS: ThreadSanitizer-powerpc64le :: fd_close_norace3.cpp (2544 of 2610)
PASS: SanitizerCommon-msan-powerpc64le-Linux :: max_allocation_size.cpp (2545 of 2610)
PASS: Profile-powerpc64le :: instrprof-value-prof.test (2546 of 2610)
PASS: ThreadSanitizer-powerpc64le :: large_malloc_meta.cpp (2547 of 2610)
PASS: Profile-powerpc64le :: Linux/instrprof-value-prof-warn.test (2548 of 2610)
PASS: ThreadSanitizer-powerpc64le :: thread_leak3.c (2549 of 2610)
PASS: ThreadSanitizer-powerpc64le :: signal_thread_sigctx_race.cpp (2550 of 2610)
PASS: ThreadSanitizer-powerpc64le :: custom_mutex2.cpp (2551 of 2610)
FAIL: ThreadSanitizer-powerpc64le :: signal_in_mutex_lock.cpp (2552 of 2610)
******************** TEST 'ThreadSanitizer-powerpc64le :: signal_in_mutex_lock.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./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/../ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp -lstdc++ -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp # RUN: at line 1
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./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/../ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp -lstdc++ -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp:78: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=3222092)
^~~~~~~~~~~~~~~~~~~~~~~~~

Input file: <stdin>
Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp

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

Input was:
<<<<<<
        1: ================== 
        2: WARNING: ThreadSanitizer: signal handler spoils errno (pid=3222092) 
not:78     !~~~~~~~~~~~~~~~~~~~~~~~~                                            error: no match expected
        3:  Signal 27 handler invoked at: 
        4:  #0 SigprofHandler(int, siginfo_t*, void*) /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp:29 (signal_in_mutex_lock.cpp.tmp+0x1002d0) 
        5:  #1 __gthread_mutex_lock(pthread_mutex_t*) /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ppc64le-redhat-linux/bits/gthr-default.h:748:12 (signal_in_mutex_lock.cpp.tmp+0x1004b8) 
        6:  #2 std::mutex::lock() /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/std_mutex.h:103:17 (signal_in_mutex_lock.cpp.tmp+0x100dc8) 
        7:  #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/std_mutex.h:162:19 (signal_in_mutex_lock.cpp.tmp+0x100864) 
        .
        .
        .
>>>>>>

--

Step 9 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
PASS: MemorySanitizer-POWERPC64LE :: dtor-vtable.cpp (2542 of 2610)
PASS: ThreadSanitizer-powerpc64le :: mutex_lock_destroyed.cpp (2543 of 2610)
PASS: ThreadSanitizer-powerpc64le :: fd_close_norace3.cpp (2544 of 2610)
PASS: SanitizerCommon-msan-powerpc64le-Linux :: max_allocation_size.cpp (2545 of 2610)
PASS: Profile-powerpc64le :: instrprof-value-prof.test (2546 of 2610)
PASS: ThreadSanitizer-powerpc64le :: large_malloc_meta.cpp (2547 of 2610)
PASS: Profile-powerpc64le :: Linux/instrprof-value-prof-warn.test (2548 of 2610)
PASS: ThreadSanitizer-powerpc64le :: thread_leak3.c (2549 of 2610)
PASS: ThreadSanitizer-powerpc64le :: signal_thread_sigctx_race.cpp (2550 of 2610)
PASS: ThreadSanitizer-powerpc64le :: custom_mutex2.cpp (2551 of 2610)
FAIL: ThreadSanitizer-powerpc64le :: signal_in_mutex_lock.cpp (2552 of 2610)
******************** TEST 'ThreadSanitizer-powerpc64le :: signal_in_mutex_lock.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./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/../ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp -lstdc++ -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp 2>&1 | FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp # RUN: at line 1
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./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/../ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp -lstdc++ -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tsan/POWERPC64LEConfig/Output/signal_in_mutex_lock.cpp.tmp
+ FileCheck /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp:78: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=3222092)
^~~~~~~~~~~~~~~~~~~~~~~~~

Input file: <stdin>
Check file: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp

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

Input was:
<<<<<<
        1: ================== 
        2: WARNING: ThreadSanitizer: signal handler spoils errno (pid=3222092) 
not:78     !~~~~~~~~~~~~~~~~~~~~~~~~                                            error: no match expected
        3:  Signal 27 handler invoked at: 
        4:  #0 SigprofHandler(int, siginfo_t*, void*) /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/tsan/signal_in_mutex_lock.cpp:29 (signal_in_mutex_lock.cpp.tmp+0x1002d0) 
        5:  #1 __gthread_mutex_lock(pthread_mutex_t*) /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ppc64le-redhat-linux/bits/gthr-default.h:748:12 (signal_in_mutex_lock.cpp.tmp+0x1004b8) 
        6:  #2 std::mutex::lock() /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/std_mutex.h:103:17 (signal_in_mutex_lock.cpp.tmp+0x100dc8) 
        7:  #3 std::lock_guard<std::mutex>::lock_guard(std::mutex&) /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/std_mutex.h:162:19 (signal_in_mutex_lock.cpp.tmp+0x100864) 
        .
        .
        .
>>>>>>

--


google-yfyang pushed a commit to google-yfyang/llvm-project that referenced this pull request May 29, 2025
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants