Skip to content
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

[sanitizer_common] AND signals in BlockSignals instead of deleting #113443

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

thurstond
Copy link
Contributor

My earlier patch #98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly.

Fixes #113385

My earlier patch llvm#98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly.

Fixes llvm#113385
@llvmbot
Copy link
Member

llvmbot commented Oct 23, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Thurston Dang (thurstond)

Changes

My earlier patch #98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly.

Fixes #113385


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

1 Files Affected:

  • (modified) compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp (+24-12)
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index 33107eb0b42993..1f74abfb39b31e 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -164,33 +164,45 @@ void SetSigProcMask(__sanitizer_sigset_t *set, __sanitizer_sigset_t *oldset) {
   CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, set, oldset));
 }
 
+// Deletes the specified signal from newset, if it is not present in oldset
+// Equivalently: newset[signum] = newset[signum] & oldset[signum]
+void internal_sigandset_individual(__sanitizer_sigset_t *newset,
+                                   __sanitizer_sigset_t *oldset, int signum) {
+  if (!internal_sigismember(oldset, signum))
+    internal_sigdelset(newset, signum);
+}
+
 // Block asynchronous signals
 void BlockSignals(__sanitizer_sigset_t *oldset) {
-  __sanitizer_sigset_t set;
-  internal_sigfillset(&set);
+  __sanitizer_sigset_t currentset;
+  SetSigProcMask(NULL, &currentset);
+
+  __sanitizer_sigset_t newset;
+  internal_sigfillset(&newset);
 #  if SANITIZER_LINUX && !SANITIZER_ANDROID
   // Glibc uses SIGSETXID signal during setuid call. If this signal is blocked
   // on any thread, setuid call hangs.
   // See test/sanitizer_common/TestCases/Linux/setuid.c.
-  internal_sigdelset(&set, 33);
+  internal_sigdelset(&newset, 33);
 #  endif
 #  if SANITIZER_LINUX
   // Seccomp-BPF-sandboxed processes rely on SIGSYS to handle trapped syscalls.
   // If this signal is blocked, such calls cannot be handled and the process may
   // hang.
-  internal_sigdelset(&set, 31);
+  internal_sigdelset(&newset, 31);
 
   // Don't block synchronous signals
-  internal_sigdelset(&set, SIGSEGV);
-  internal_sigdelset(&set, SIGBUS);
-  internal_sigdelset(&set, SIGILL);
-  internal_sigdelset(&set, SIGTRAP);
-  internal_sigdelset(&set, SIGABRT);
-  internal_sigdelset(&set, SIGFPE);
-  internal_sigdelset(&set, SIGPIPE);
+  // but also don't unblock signals that the user had deliberately blocked.
+  internal_sigandset_individual(&newset, &currentset, SIGSEGV);
+  internal_sigandset_individual(&newset, &currentset, SIGBUS);
+  internal_sigandset_individual(&newset, &currentset, SIGILL);
+  internal_sigandset_individual(&newset, &currentset, SIGTRAP);
+  internal_sigandset_individual(&newset, &currentset, SIGABRT);
+  internal_sigandset_individual(&newset, &currentset, SIGFPE);
+  internal_sigandset_individual(&newset, &currentset, SIGPIPE);
 #  endif
 
-  SetSigProcMask(&set, oldset);
+  SetSigProcMask(&newset, oldset);
 }
 
 ScopedBlockSignals::ScopedBlockSignals(__sanitizer_sigset_t *copy) {

Copy link
Collaborator

@vitalybuka vitalybuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to test, but I guess it's hard with lit-test.
Maybe in common unit test.

@vitalybuka
Copy link
Collaborator

After the merge, we need to request cherry pick into 19

@thurstond
Copy link
Contributor Author

It would be nice to test, but I guess it's hard with lit-test. Maybe in common unit test.

I've added a test, please review.

@thurstond thurstond requested a review from vitalybuka October 29, 2024 21:22
Copy link

github-actions bot commented Oct 29, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

void signal_handler(int signum) { received_sig = signum; }

TEST(SanitizerCommon, BlockSignals) {
// No signals blocked
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of large test with 3 {}
please split into 3

TEST(SanitizerCommon, BlockSignal{Name1, Name2, Name3}) {
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


received_sig = -1;
signal(SIGPIPE, signal_handler);
raise(SIGPIPE);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to sleep?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Split into separate test cases
@thurstond thurstond merged commit 25fd366 into llvm:main Oct 31, 2024
5 of 6 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 31, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-libc-amdgpu-runtime running on omp-vega20-1 while building compiler-rt at step 6 "test-openmp".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-openmp) failure: test (failure)
******************** TEST 'libomp :: tasking/issue-94260-2.c' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 1
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang -fopenmp   -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -fno-omit-frame-pointer -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test/ompt /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test/tasking/issue-94260-2.c -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp -lm -latomic && /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp
# executed command: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang -fopenmp -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -fno-omit-frame-pointer -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test/ompt /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/openmp/runtime/test/tasking/issue-94260-2.c -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp -lm -latomic
# executed command: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp
# note: command had no output on stdout or stderr
# error: command failed with exit status: -11

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 31, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux running on sanitizer-buildbot7 while building compiler-rt at step 2 "annotate".

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

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)
...
[179/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64-with-call.o
[180/183] Generating Msan-aarch64-with-call-Test
[181/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[182/183] Generating Msan-aarch64-Test
[182/183] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-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: 5587 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.
FAIL: ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S (2106 of 5587)
******************** TEST 'ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
RUN: at line 5: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp | FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp
+ FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S:8:16: error: CHECK-NEXT: is not on the line after the previous match
// CHECK-NEXT: constructor 200
               ^
<stdin>:3:1: note: 'next' match was here
constructor 200
^
<stdin>:1:16: note: previous match ended here
constructor 100
               ^
<stdin>:2:1: note: non-matching line after previous match is here
constructor 65535
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S

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

Input was:
<<<<<<
        1: constructor 100 
        2: constructor 65535 
        3: constructor 200 
next:8     !~~~~~~~~~~~~~~  error: match on wrong line
        4: main 
        5: destructor 
>>>>>>

Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
[179/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64-with-call.o
[180/183] Generating Msan-aarch64-with-call-Test
[181/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[182/183] Generating Msan-aarch64-Test
[182/183] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-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: 5587 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.
FAIL: ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S (2106 of 5587)
******************** TEST 'ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
RUN: at line 5: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp | FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp
+ FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S:8:16: error: CHECK-NEXT: is not on the line after the previous match
// CHECK-NEXT: constructor 200
               ^
<stdin>:3:1: note: 'next' match was here
constructor 200
^
<stdin>:1:16: note: previous match ended here
constructor 100
               ^
<stdin>:2:1: note: non-matching line after previous match is here
constructor 65535
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S

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

Input was:
<<<<<<
        1: constructor 100 
        2: constructor 65535 
        3: constructor 200 
next:8     !~~~~~~~~~~~~~~  error: match on wrong line
        4: main 
        5: destructor 
>>>>>>

Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[179/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64-with-call.o
[180/183] Generating Msan-aarch64-with-call-Test
[181/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[182/183] Generating Msan-aarch64-Test
[182/183] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-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: 2827 of 5588 tests, 48 workers --
Testing:  0.. 10..
FAIL: ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S (549 of 2827)
******************** TEST 'ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
RUN: at line 5: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp | FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp
+ FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S:8:16: error: CHECK-NEXT: expected string not found in input
// CHECK-NEXT: constructor 200
               ^
<stdin>:3:16: note: scanning from here
constructor 100
               ^
<stdin>:5:1: note: possible intended match here
destructor
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S

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

Input was:
<<<<<<
          1: constructor 200 
          2: constructor 65535 
          3: constructor 100 
next:8'0                    X error: no match found
          4: main 
next:8'0     ~~~~~
          5: destructor 
next:8'0     ~~~~~~~~~~~
next:8'1     ?           possible intended match
>>>>>>

Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[179/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64-with-call.o
[180/183] Generating Msan-aarch64-with-call-Test
[181/183] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[182/183] Generating Msan-aarch64-Test
[182/183] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-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: 5587 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.
FAIL: ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S (2107 of 5587)
******************** TEST 'ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
RUN: at line 5: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp | FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/build_default/./lib/../lib/clang/20/lib/aarch64-unknown-linux-gnu/liborc_rt.a /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp
+ FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S:9:16: error: CHECK-NEXT: expected string not found in input
// CHECK-NEXT: constructor 65535
               ^
<stdin>:3:16: note: scanning from here
constructor 200
               ^
<stdin>:5:1: note: possible intended match here
destructor
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S

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

Input was:
<<<<<<
          1: constructor 65535 
          2: constructor 100 
          3: constructor 200 
next:9'0                    X error: no match found
          4: main 
next:9'0     ~~~~~
          5: destructor 
next:9'0     ~~~~~~~~~~~
next:9'1     ?           possible intended match
>>>>>>

Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/aarch64-unknown-linux-gnu". This path was found by running ['/home/b/sanitizer-aarch64-linux/build/build_default/bin/clang', '--target=aarch64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include', '-resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build', '-Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/b/sanitizer-aarch64-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: 5401 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40
FAIL: ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S (2328 of 5401)
******************** TEST 'ORC-aarch64-linux :: TestCases/Linux/aarch64/priority-static-initializer.S' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include -idirafter /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include -resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build -Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux  -c -o /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/include -idirafter /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/20/include -resource-dir=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build -Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux -c -o /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
clang: warning: -Wl,-rpath,/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux: 'linker' input unused [-Wunused-command-line-argument]
RUN: at line 5: /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux/liborc_rt-aarch64.a /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp | FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ FileCheck /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/llvm-jitlink -orc-runtime=/home/b/sanitizer-aarch64-linux/build/compiler_rt_build/lib/linux/liborc_rt-aarch64.a /home/b/sanitizer-aarch64-linux/build/compiler_rt_build/test/orc/AARCH64LinuxConfig/TestCases/Linux/aarch64/Output/priority-static-initializer.S.tmp
/home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S:8:16: error: CHECK-NEXT: is not on the line after the previous match
// CHECK-NEXT: constructor 200
               ^
<stdin>:3:1: note: 'next' match was here
constructor 200
^
<stdin>:1:16: note: previous match ended here
constructor 100
               ^
<stdin>:2:1: note: non-matching line after previous match is here
constructor 65535
^

Input file: <stdin>
Check file: /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/orc/TestCases/Linux/aarch64/priority-static-initializer.S

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

Input was:
<<<<<<
        1: constructor 100 
        2: constructor 65535 
        3: constructor 200 
next:8     !~~~~~~~~~~~~~~  error: match on wrong line
        4: main 
        5: destructor 
>>>>>>

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 31, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-android running on sanitizer-buildbot-android while building compiler-rt at step 2 "annotate".

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

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: AddressSanitizer-arm-android :: TestCases/Linux/malloc_delete_mismatch.cpp (90 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/read_binary_name_regtest.c (91 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/recoverable-lsan.cpp (92 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/recvfrom.cpp (93 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/release_to_os_test.cpp (94 of 1544)
XFAIL: AddressSanitizer-arm-android :: TestCases/Linux/ptrace.cpp (95 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/sanbox_read_proc_self_maps_test.cpp (96 of 1544)
PASS: AddressSanitizer-arm-android :: TestCases/Linux/preinit_test.cpp (97 of 1544)
XFAIL: AddressSanitizer-arm-android :: TestCases/Linux/shmctl.cpp (98 of 1544)
PASS: AddressSanitizer-arm-android :: TestCases/Linux/new_delete_mismatch.cpp (99 of 1544)
FAIL: AddressSanitizer-arm-android :: TestCases/Linux/quarantine_size_mb.cpp (100 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Linux/quarantine_size_mb.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
RUN: at line 3: env ASAN_OPTIONS=abort_on_error=0:quarantine_size=10485760:verbosity=1:hard_rss_limit_mb=50  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp  2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp  --check-prefix=Q10
+ env ASAN_OPTIONS=abort_on_error=0:quarantine_size=10485760:verbosity=1:hard_rss_limit_mb=50 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
+ FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp --check-prefix=Q10

--

********************
PASS: AddressSanitizer-arm-android :: TestCases/Linux/odr_indicators.cpp (101 of 1544)
FAIL: AddressSanitizer-arm-android :: TestCases/Linux/pthread_create_version.cpp (102 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Linux/pthread_create_version.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
AddressSanitizer:DEADLYSIGNAL
=================================================================
==12470==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0xe8b0d194 bp 0xfffbef18 sp 0xfffbeaa8 T0)
==12470==The signal is caused by a READ memory access.
==12470==Hint: address points to the zero page.
    #0 0xe8b0d194 in __sanitizer_internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.cpp:59:12
    #1 0xe8b0ee54 in internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.h:45:10
    #2 0xe8b0ee54 in __sanitizer::ScopedBlockSignals::ScopedBlockSignals(unsigned long*) /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:211:5
    #3 0xe8b8a1e4 in pthread_create /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:262:22
    #4 0x0eb41bb0 in main /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/pthread_create_version.cpp:19:3
    #5 0xe913e3f0 in __libc_init (/apex/com.android.runtime/lib/bionic/libc.so+0x323f0) (BuildId: 5309b06428e2b939f0b06c3660d91188)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/pthread_create_version.cpp:19:3 in main
==12470==ABORTING

--
Step 16 (run lit tests [arm/aosp_coral-userdebug/AOSP.MASTER]) failure: run lit tests [arm/aosp_coral-userdebug/AOSP.MASTER] (failure)
...
PASS: AddressSanitizer-arm-android :: TestCases/Linux/malloc_delete_mismatch.cpp (90 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/read_binary_name_regtest.c (91 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/recoverable-lsan.cpp (92 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/recvfrom.cpp (93 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/release_to_os_test.cpp (94 of 1544)
XFAIL: AddressSanitizer-arm-android :: TestCases/Linux/ptrace.cpp (95 of 1544)
UNSUPPORTED: AddressSanitizer-arm-android :: TestCases/Linux/sanbox_read_proc_self_maps_test.cpp (96 of 1544)
PASS: AddressSanitizer-arm-android :: TestCases/Linux/preinit_test.cpp (97 of 1544)
XFAIL: AddressSanitizer-arm-android :: TestCases/Linux/shmctl.cpp (98 of 1544)
PASS: AddressSanitizer-arm-android :: TestCases/Linux/new_delete_mismatch.cpp (99 of 1544)
FAIL: AddressSanitizer-arm-android :: TestCases/Linux/quarantine_size_mb.cpp (100 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Linux/quarantine_size_mb.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
RUN: at line 3: env ASAN_OPTIONS=abort_on_error=0:quarantine_size=10485760:verbosity=1:hard_rss_limit_mb=50  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp  2>&1 | FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp  --check-prefix=Q10
+ env ASAN_OPTIONS=abort_on_error=0:quarantine_size=10485760:verbosity=1:hard_rss_limit_mb=50 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Linux/Output/quarantine_size_mb.cpp.tmp
+ FileCheck /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/quarantine_size_mb.cpp --check-prefix=Q10

--

********************
PASS: AddressSanitizer-arm-android :: TestCases/Linux/odr_indicators.cpp (101 of 1544)
FAIL: AddressSanitizer-arm-android :: TestCases/Linux/pthread_create_version.cpp (102 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Linux/pthread_create_version.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
AddressSanitizer:DEADLYSIGNAL
=================================================================
==12470==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0xe8b0d194 bp 0xfffbef18 sp 0xfffbeaa8 T0)
==12470==The signal is caused by a READ memory access.
==12470==Hint: address points to the zero page.
    #0 0xe8b0d194 in __sanitizer_internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.cpp:59:12
    #1 0xe8b0ee54 in internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.h:45:10
    #2 0xe8b0ee54 in __sanitizer::ScopedBlockSignals::ScopedBlockSignals(unsigned long*) /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:211:5
    #3 0xe8b8a1e4 in pthread_create /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:262:22
    #4 0x0eb41bb0 in main /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/pthread_create_version.cpp:19:3
    #5 0xe913e3f0 in __libc_init (/apex/com.android.runtime/lib/bionic/libc.so+0x323f0) (BuildId: 5309b06428e2b939f0b06c3660d91188)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Linux/pthread_create_version.cpp:19:3 in main
==12470==ABORTING

--
Step 17 (run sanitizer_common tests [arm/aosp_coral-userdebug/AOSP.MASTER]) failure: run sanitizer_common tests [arm/aosp_coral-userdebug/AOSP.MASTER] (failure)
...
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/4 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/8
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/8 (35 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/2
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/2 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/6
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/6 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/0
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/0 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/4
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/4 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/8
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/8 (35 ms)
[----------] 10 tests from FileSizes/SanitizerCommonFileTest (73 ms total)

[----------] 3 tests from SanitizerCommonEmpty/SanitizerCommon
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/2
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/2 (0 ms)
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/6
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/6 (0 ms)
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/10
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/10 (0 ms)
[----------] 3 tests from SanitizerCommonEmpty/SanitizerCommon (0 ms total)

[----------] 1 test from PackUnpacks/StackStorePackTest
[ RUN      ] PackUnpacks/StackStorePackTest.Failed/0
[       OK ] PackUnpacks/StackStorePackTest.Failed/0 (80 ms)
[----------] 1 test from PackUnpacks/StackStorePackTest (81 ms total)

[----------] Global test environment tear-down
[==========] 92 tests from 37 test suites ran. (6789 ms total)
[  PASSED  ] 92 tests.
Note: This is test shard 4 of 4.
[==========] Running 92 tests from 37 test suites.
[----------] Global test environment set-up.
[----------] 27 tests from SanitizerCommon
[ RUN      ] SanitizerCommon.CompactSizeClassMap
[       OK ] SanitizerCommon.CompactSizeClassMap (4 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32Compact
[       OK ] SanitizerCommon.SizeClassAllocator32Compact (846 ms)
[ RUN      ] SanitizerCommon.LargeMmapAllocatorMapUnmapCallback
[       OK ] SanitizerCommon.LargeMmapAllocatorMapUnmapCallback (0 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32Iteration
[       OK ] SanitizerCommon.SizeClassAllocator32Iteration (47 ms)
[ RUN      ] SanitizerCommon.AtomicStoreLoad
[       OK ] SanitizerCommon.AtomicStoreLoad (0 ms)
[ RUN      ] SanitizerCommon.BlockSignalsPlain

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 19 (run instrumented asan tests [arm/aosp_coral-userdebug/AOSP.MASTER]) failure: run instrumented asan tests [arm/aosp_coral-userdebug/AOSP.MASTER] (failure)
...
[ RUN      ] AddressSanitizerInterface.GetHeapSizeTest
[       OK ] AddressSanitizerInterface.GetHeapSizeTest (0 ms)
[ RUN      ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest
[       OK ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest (0 ms)
[ RUN      ] AddressSanitizerInterface.PoisonedRegion
[       OK ] AddressSanitizerInterface.PoisonedRegion (2 ms)
[ DISABLED ] AddressSanitizerInterface.DISABLED_StressLargeMemset
[ DISABLED ] AddressSanitizerInterface.DISABLED_StressSmallMemset
[ DISABLED ] AddressSanitizerInterface.DISABLED_InvalidPoisonAndUnpoisonCallsTest
[----------] 3 tests from AddressSanitizerInterface (3 ms total)

[----------] 19 tests from AddressSanitizer
[ RUN      ] AddressSanitizer.MemCpyOOBTest
[       OK ] AddressSanitizer.MemCpyOOBTest (8963 ms)
[ RUN      ] AddressSanitizer.OOBRightTest
[       OK ] AddressSanitizer.OOBRightTest (30842 ms)
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh
[ RUN      ] AddressSanitizer.StrLenOOBTest
[       OK ] AddressSanitizer.StrLenOOBTest (3959 ms)
[ RUN      ] AddressSanitizer.StrCpyOOBTest
[       OK ] AddressSanitizer.StrCpyOOBTest (1837 ms)
[ RUN      ] AddressSanitizer.StrCmpOOBTest
[       OK ] AddressSanitizer.StrCmpOOBTest (1813 ms)
[ RUN      ] AddressSanitizer.StrCatOOBTest
[       OK ] AddressSanitizer.StrCatOOBTest (1808 ms)
[ RUN      ] AddressSanitizer.StrtollOOBTest
[       OK ] AddressSanitizer.StrtollOOBTest (2099 ms)
[ RUN      ] AddressSanitizer.HasFeatureAddressSanitizerTest
[       OK ] AddressSanitizer.HasFeatureAddressSanitizerTest (0 ms)
[ RUN      ] AddressSanitizer.CallocReturnsZeroMem
[       OK ] AddressSanitizer.CallocReturnsZeroMem (9 ms)
[ DISABLED ] AddressSanitizer.DISABLED_TSDTest
[ RUN      ] AddressSanitizer.IgnoreTest
[       OK ] AddressSanitizer.IgnoreTest (0 ms)
[ RUN      ] AddressSanitizer.SignalTest
[       OK ] AddressSanitizer.SignalTest (314 ms)
[ RUN      ] AddressSanitizer.ReallocTest
[       OK ] AddressSanitizer.ReallocTest (20 ms)
[ RUN      ] AddressSanitizer.WrongFreeTest
[       OK ] AddressSanitizer.WrongFreeTest (234 ms)
[ RUN      ] AddressSanitizer.LongJmpTest
[       OK ] AddressSanitizer.LongJmpTest (0 ms)
[ RUN      ] AddressSanitizer.ThreadStackReuseTest

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Serial 96061FFBA000GW
Step 26 (run lit tests [arm/bluejay-userdebug/TQ3A.230805.001]) failure: run lit tests [arm/bluejay-userdebug/TQ3A.230805.001] (failure)
...
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/clang/20/lib/armv7-unknown-linux-android24". This path was found by running ['/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang', '--target=armv7-unknown-linux-android', '--target=armv7-linux-androideabi24', '--sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot', '--gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-print-runtime-dir'].
llvm-lit: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/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: 1544 tests, 12 workers --
FAIL: AddressSanitizer-arm-android :: TestCases/Posix/tsd_dtor_leak.cpp (1 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Posix/tsd_dtor_leak.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 3: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan -O1 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan -O1 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
RUN: at line 4: env ASAN_OPTIONS=abort_on_error=0:quarantine_size_mb=0  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
+ env ASAN_OPTIONS=abort_on_error=0:quarantine_size_mb=0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
AddressSanitizer:DEADLYSIGNAL
=================================================================
==18018==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0xee7c5194 bp 0xff8f31d8 sp 0xff8f2d68 T0)
==18018==The signal is caused by a READ memory access.
==18018==Hint: address points to the zero page.
    #0 0xee7c5194 in __sanitizer_internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.cpp:59:12
    #1 0xee7c6e54 in internal_memcpy /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_libc.h:45:10
    #2 0xee7c6e54 in __sanitizer::ScopedBlockSignals::ScopedBlockSignals(unsigned long*) /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:211:5
    #3 0xee8421e4 in pthread_create /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:262:22
    #4 0x0cd73fd4 in main /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp:31:5
    #5 0xee175f08 in __libc_init (/apex/com.android.runtime/lib/bionic/libc.so+0x32f08) (BuildId: d40bc637a5e47a9f583f4637d5de96bf)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp:31:5 in main
==18018==ABORTING

--

********************
FAIL: AddressSanitizer-arm-android :: TestCases/Posix/current_allocated_bytes.cpp (2 of 1544)
******************** TEST 'AddressSanitizer-arm-android :: TestCases/Posix/current_allocated_bytes.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64  -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -fuse-ld=lld  -shared-libasan -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/current_allocated_bytes.cpp -pthread -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/current_allocated_bytes.cpp.tmp &&  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/current_allocated_bytes.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/sanitizer_common/android_commands/android_compile.py /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only --target=armv7-linux-androideabi24 --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --gcc-toolchain=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/toolchains/llvm/prebuilt/linux-x86_64 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fuse-ld=lld -shared-libasan -O0 /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/compiler-rt/test/asan/TestCases/Posix/current_allocated_bytes.cpp -pthread -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/current_allocated_bytes.cpp.tmp
+ /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_arm/test/asan/ARMAndroidConfig/TestCases/Posix/Output/current_allocated_bytes.cpp.tmp
AddressSanitizer:DEADLYSIGNAL
Step 27 (run sanitizer_common tests [arm/bluejay-userdebug/TQ3A.230805.001]) failure: run sanitizer_common tests [arm/bluejay-userdebug/TQ3A.230805.001] (failure)
...
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/4 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/8
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToBufferHalf/8 (28 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/2
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/2 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/6
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVector/6 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/0
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/0 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/4
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/4 (0 ms)
[ RUN      ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/8
[       OK ] FileSizes/SanitizerCommonFileTest.ReadFileToVectorHalf/8 (28 ms)
[----------] 10 tests from FileSizes/SanitizerCommonFileTest (58 ms total)

[----------] 3 tests from SanitizerCommonEmpty/SanitizerCommon
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/2
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/2 (0 ms)
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/6
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/6 (0 ms)
[ RUN      ] SanitizerCommonEmpty/SanitizerCommon.Intersect/10
[       OK ] SanitizerCommonEmpty/SanitizerCommon.Intersect/10 (0 ms)
[----------] 3 tests from SanitizerCommonEmpty/SanitizerCommon (0 ms total)

[----------] 1 test from PackUnpacks/StackStorePackTest
[ RUN      ] PackUnpacks/StackStorePackTest.Failed/0
[       OK ] PackUnpacks/StackStorePackTest.Failed/0 (55 ms)
[----------] 1 test from PackUnpacks/StackStorePackTest (55 ms total)

[----------] Global test environment tear-down
[==========] 92 tests from 37 test suites ran. (6232 ms total)
[  PASSED  ] 92 tests.
Note: This is test shard 4 of 4.
[==========] Running 92 tests from 37 test suites.
[----------] Global test environment set-up.
[----------] 27 tests from SanitizerCommon
[ RUN      ] SanitizerCommon.CompactSizeClassMap
[       OK ] SanitizerCommon.CompactSizeClassMap (4 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32Compact
[       OK ] SanitizerCommon.SizeClassAllocator32Compact (1102 ms)
[ RUN      ] SanitizerCommon.LargeMmapAllocatorMapUnmapCallback
[       OK ] SanitizerCommon.LargeMmapAllocatorMapUnmapCallback (0 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32Iteration
[       OK ] SanitizerCommon.SizeClassAllocator32Iteration (56 ms)
[ RUN      ] SanitizerCommon.AtomicStoreLoad
[       OK ] SanitizerCommon.AtomicStoreLoad (0 ms)
[ RUN      ] SanitizerCommon.BlockSignalsPlain

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Step 28 (run asan tests [arm/bluejay-userdebug/TQ3A.230805.001]) failure: run asan tests [arm/bluejay-userdebug/TQ3A.230805.001] (failure)
...
[       OK ] FakeStack.GetFrame (0 ms)
[----------] 2 tests from FakeStack (0 ms total)

[----------] 2 tests from AddressSanitizer
[ RUN      ] AddressSanitizer.NoInstMallocTest
[       OK ] AddressSanitizer.NoInstMallocTest (230 ms)
[ DISABLED ] AddressSanitizer.DISABLED_InternalPrintShadow
[ RUN      ] AddressSanitizer.ThreadedOneSizeMallocStressTest

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Note: This is test shard 3 of 4.
[==========] Running 4 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from FakeStack
[ RUN      ] FakeStack.FlagsOffset
[       OK ] FakeStack.FlagsOffset (0 ms)
[ RUN      ] FakeStack.Allocate
[       OK ] FakeStack.Allocate (44 ms)
[----------] 2 tests from FakeStack (44 ms total)

[----------] 2 tests from AddressSanitizer
[ RUN      ] AddressSanitizer.ThreadedMallocStressTest

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Note: This is test shard 4 of 4.
[==========] Running 4 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from FakeStack
[ RUN      ] FakeStack.CreateDestroy
[       OK ] FakeStack.CreateDestroy (44 ms)
[ RUN      ] FakeStack.RecursiveStressTest
[       OK ] FakeStack.RecursiveStressTest (79 ms)
[----------] 2 tests from FakeStack (124 ms total)

[----------] 2 tests from AddressSanitizer
[ DISABLED ] AddressSanitizer.DISABLED_InternalPrintShadow
[ RUN      ] AddressSanitizer.QuarantineTest
[       OK ] AddressSanitizer.QuarantineTest (11 ms)
[ RUN      ] AddressSanitizer.LoadStoreCallbacks
[       OK ] AddressSanitizer.LoadStoreCallbacks (0 ms)
[----------] 2 tests from AddressSanitizer (11 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 2 test suites ran. (136 ms total)
[  PASSED  ] 4 tests.

  YOU HAVE 1 DISABLED TEST

Step 29 (run instrumented asan tests [arm/bluejay-userdebug/TQ3A.230805.001]) failure: run instrumented asan tests [arm/bluejay-userdebug/TQ3A.230805.001] (failure)
...
[ RUN      ] AddressSanitizerInterface.GetHeapSizeTest
[       OK ] AddressSanitizerInterface.GetHeapSizeTest (0 ms)
[ RUN      ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest
[       OK ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest (0 ms)
[ RUN      ] AddressSanitizerInterface.PoisonedRegion
[       OK ] AddressSanitizerInterface.PoisonedRegion (2 ms)
[ DISABLED ] AddressSanitizerInterface.DISABLED_StressLargeMemset
[ DISABLED ] AddressSanitizerInterface.DISABLED_StressSmallMemset
[ DISABLED ] AddressSanitizerInterface.DISABLED_InvalidPoisonAndUnpoisonCallsTest
[----------] 3 tests from AddressSanitizerInterface (3 ms total)

[----------] 19 tests from AddressSanitizer
[ RUN      ] AddressSanitizer.MemCpyOOBTest
[       OK ] AddressSanitizer.MemCpyOOBTest (3376 ms)
[ RUN      ] AddressSanitizer.OOBRightTest
[       OK ] AddressSanitizer.OOBRightTest (11813 ms)
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh
[ RUN      ] AddressSanitizer.StrLenOOBTest
[       OK ] AddressSanitizer.StrLenOOBTest (1679 ms)
[ RUN      ] AddressSanitizer.StrCpyOOBTest
[       OK ] AddressSanitizer.StrCpyOOBTest (797 ms)
[ RUN      ] AddressSanitizer.StrCmpOOBTest
[       OK ] AddressSanitizer.StrCmpOOBTest (803 ms)
[ RUN      ] AddressSanitizer.StrCatOOBTest
[       OK ] AddressSanitizer.StrCatOOBTest (757 ms)
[ RUN      ] AddressSanitizer.StrtollOOBTest
[       OK ] AddressSanitizer.StrtollOOBTest (900 ms)
[ RUN      ] AddressSanitizer.HasFeatureAddressSanitizerTest
[       OK ] AddressSanitizer.HasFeatureAddressSanitizerTest (0 ms)
[ RUN      ] AddressSanitizer.CallocReturnsZeroMem
[       OK ] AddressSanitizer.CallocReturnsZeroMem (13 ms)
[ DISABLED ] AddressSanitizer.DISABLED_TSDTest
[ RUN      ] AddressSanitizer.IgnoreTest
[       OK ] AddressSanitizer.IgnoreTest (0 ms)
[ RUN      ] AddressSanitizer.SignalTest
[       OK ] AddressSanitizer.SignalTest (225 ms)
[ RUN      ] AddressSanitizer.ReallocTest
[       OK ] AddressSanitizer.ReallocTest (32 ms)
[ RUN      ] AddressSanitizer.WrongFreeTest
[       OK ] AddressSanitizer.WrongFreeTest (106 ms)
[ RUN      ] AddressSanitizer.LongJmpTest
[       OK ] AddressSanitizer.LongJmpTest (0 ms)
[ RUN      ] AddressSanitizer.ThreadStackReuseTest

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

Serial 17031FQCB00176

thurstond added a commit that referenced this pull request Oct 31, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 1, 2024

LLVM Buildbot has detected a new failure on builder clang-solaris11-sparcv9 running on solaris11-sparcv9 while building compiler-rt at step 4 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 4 (build stage 1) failure: 'ninja -j8' (failure)
...
[2955/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_libignore.cpp.o
[2956/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux_s390.cpp.o
[2957/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_mac.cpp.o
[2958/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_netbsd.cpp.o
[2959/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_platform_limits_freebsd.cpp.o
[2960/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_platform_limits_linux.cpp.o
[2961/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_mutex.cpp.o
[2962/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_platform_limits_netbsd.cpp.o
[2963/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_platform_limits_posix.cpp.o
[2964/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux.cpp.o
FAILED: projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux.cpp.o 
/opt/llvm/19/bin/clang++ -DHAVE_RPC_XDR_H=1 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/projects/compiler-rt/lib/sanitizer_common -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/compiler-rt/lib/sanitizer_common -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/include -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/include/llvm/Support/Solaris -I/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/compiler-rt/lib/sanitizer_common/.. -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wno-unused-parameter  -O -DNDEBUG -m32 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -nostdinc++ -Wno-format -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++17 -MD -MT projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux.cpp.o -MF projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux.cpp.o.d -o projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_linux.cpp.o -c /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:172:5: error: use of undeclared identifier 'internal_sigdelset'
  172 |     internal_sigdelset(&newset, signum);
      |     ^
1 error generated.
[2965/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_platform_limits_solaris.cpp.o
[2966/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_libc.cpp.o
[2967/5540] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.sparc.dir/sanitizer_posix.cpp.o
[2968/5540] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ThreadSafeModule.cpp.o
[2969/5540] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/JITLinkRedirectableSymbolManager.cpp.o
[2970/5540] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/SpeculateAnalyses.cpp.o
[2971/5540] Building CXX object lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/ReOptimizeLayer.cpp.o
ninja: build stopped: subcommand failed.

smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
…lvm#113443)

My earlier patch llvm#98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly. It also adds tests.

Fixes llvm#113385

---------

Co-authored-by: Vitaly Buka <[email protected]>
smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
…lvm#113443)

My earlier patch llvm#98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly. It also adds tests.

Fixes llvm#113385

---------

Co-authored-by: Vitaly Buka <[email protected]>
smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
…lvm#113443)

My earlier patch llvm#98200 caused a regression because it unconditionally unblocked synchronous signals, even if the user program had deliberately blocked them. This patch fixes the issue by checking the current signal mask, as suggested by Vitaly. It also adds tests.

Fixes llvm#113385

---------

Co-authored-by: Vitaly Buka <[email protected]>
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
thurstond added a commit to thurstond/llvm-project that referenced this pull request Nov 11, 2024
…leting (llvm#113443)" for non-Android Linux only

The original patch (25fd366) was reverted in 083a5cd because it broke some buildbots.

This revised patch makes two changes:
- No-op the change for Android: this had mysterious (but reproducible) test failures.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build breakage on solaris, which does not support internal_sigismember.
- Two other buildbot failures were non-sanitizer tests and are therefore unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385
thurstond added a commit that referenced this pull request Nov 14, 2024
…leting (#113443)" for non-Android Linux only (#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch #98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes #113385
akshayrdeodhar pushed a commit to akshayrdeodhar/llvm-project that referenced this pull request Nov 18, 2024
…leting (llvm#113443)" for non-Android Linux only (llvm#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-llvm#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385
tru pushed a commit that referenced this pull request Nov 19, 2024
…leting (#113443)" for non-Android Linux only (#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch #98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes #113385

(cherry picked from commit 531acf9)
nikic pushed a commit to rust-lang/llvm-project that referenced this pull request Nov 20, 2024
…leting (llvm#113443)" for non-Android Linux only (llvm#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-llvm#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385

(cherry picked from commit 531acf9)
adrian-prantl pushed a commit to adrian-prantl/llvm-project that referenced this pull request Dec 4, 2024
…leting (llvm#113443)" for non-Android Linux only (llvm#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-llvm#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385

(cherry picked from commit 531acf9)
(cherry picked from commit 6925f3c)
adrian-prantl pushed a commit to adrian-prantl/llvm-project that referenced this pull request Dec 5, 2024
…leting (llvm#113443)" for non-Android Linux only (llvm#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-llvm#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385

(cherry picked from commit 531acf9)
(cherry picked from commit 6925f3c)
adrian-prantl pushed a commit to adrian-prantl/llvm-project that referenced this pull request Dec 5, 2024
…leting (llvm#113443)" for non-Android Linux only (llvm#115790)

The original patch (25fd366) was
reverted in 083a5cd because it broke
some buildbots.

This revised patch makes two changes:
- Reverts to *pre-llvm#98200* behavior for Android. This avoids a build
breakage on Android.
- Only define KeepUnblocked if SANITIZER_LINUX: this avoids a build
breakage on solaris, which does not support internal_sigdelset.
N.B. Other buildbot failures were non-sanitizer tests and are therefore
unrelated.

Original commit message:
    My earlier patch llvm#98200
    caused a regression because it unconditionally unblocked synchronous
    signals, even if the user program had deliberately blocked them.
    This patch fixes the issue by checking the current signal mask, as
    suggested by Vitaly. It also adds tests.
    Fixes llvm#113385

(cherry picked from commit 531acf9)
(cherry picked from commit 6925f3c)
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.

Sanitizers unblock user blocked signals
4 participants