[libcxx-commits] [libcxx] [libc++] Increase `atomic_ref`'s required alignment for small types (PR #99654)

LLVM Continuous Integration via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 1 08:53:04 PDT 2024


llvm-ci wrote:

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

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

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)
...
[374/378] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[375/378] Generating Msan-x86_64-with-call-Test
[376/378] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[377/378] Generating Msan-x86_64-Test
[377/378] Running compiler_rt regression tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/rtsan/X86_64LinuxConfig' contained no tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10094 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c (10094 of 10094)
******************** TEST 'SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c' FAILED ********************
Exit Code: -9
Timeout: Reached timeout of 900 seconds

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux/build/build_default/./bin/clang  -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing  -m64 -funwind-tables  -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp && env HWASAN_OPTIONS=die_after_fork=0  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
+ /b/sanitizer-x86_64-linux/build/build_default/./bin/clang -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing -m64 -funwind-tables -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
+ env HWASAN_OPTIONS=die_after_fork=0 /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
HWAddressSanitizer:DEADLYSIGNAL
==3185787==ERROR: HWAddressSanitizer: SEGV on unknown address 0x000000000048 (pc 0x624962d971db bp 0x73408e3a0000 sp 0x73408bbfd250 T3185887)
==3185787==The signal is caused by a READ memory access.
==3185787==Hint: address points to the zero page.
==3185889==ERROR: HWAddressSanitizer: tag-mismatch on address 0x581400005140 at pc 0x624962d53e97
READ of size 155 at 0x581400005140 tags: 04/00 (ptr/mem) in thread T2

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

1 warning(s) in tests
Slowest Tests:
--------------------------------------------------------------------------
900.06s: SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c
132.62s: libFuzzer-x86_64-default-Linux :: out-of-process-fuzz.test
125.61s: libFuzzer-x86_64-libcxx-Linux :: out-of-process-fuzz.test
118.20s: libFuzzer-x86_64-static-libcxx-Linux :: out-of-process-fuzz.test
55.17s: ThreadSanitizer-x86_64 :: bench_threads.cpp
44.42s: libFuzzer-i386-libcxx-Linux :: fork_corpus_groups.test
43.39s: libFuzzer-x86_64-default-Linux :: fork_corpus_groups.test
43.22s: libFuzzer-i386-default-Linux :: fork.test
43.01s: libFuzzer-x86_64-default-Linux :: fork.test
42.96s: libFuzzer-i386-static-libcxx-Linux :: fork_corpus_groups.test
42.76s: libFuzzer-i386-libcxx-Linux :: fork.test
42.74s: libFuzzer-i386-default-Linux :: fork_corpus_groups.test
42.54s: libFuzzer-i386-default-Linux :: value-profile-switch.test
41.75s: libFuzzer-i386-static-libcxx-Linux :: fork.test
41.41s: libFuzzer-x86_64-libcxx-Linux :: fork_corpus_groups.test
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
[374/378] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64-with-call.o
[375/378] Generating Msan-x86_64-with-call-Test
[376/378] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.x86_64.o
[377/378] Generating Msan-x86_64-Test
[377/378] Running compiler_rt regression tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/rtsan/X86_64LinuxConfig' contained no tests
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 10094 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c (10094 of 10094)
******************** TEST 'SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c' FAILED ********************
Exit Code: -9
Timeout: Reached timeout of 900 seconds

Command Output (stderr):
--
RUN: at line 1: /b/sanitizer-x86_64-linux/build/build_default/./bin/clang  -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing  -m64 -funwind-tables  -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp && env HWASAN_OPTIONS=die_after_fork=0  /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
+ /b/sanitizer-x86_64-linux/build/build_default/./bin/clang -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -fsanitize-hwaddress-experimental-aliasing -m64 -funwind-tables -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test -ldl -O0 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c -o /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
+ env HWASAN_OPTIONS=die_after_fork=0 /b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/hwasan-x86_64-Linux/Posix/Output/fork_threaded.c.tmp
HWAddressSanitizer:DEADLYSIGNAL
==3185787==ERROR: HWAddressSanitizer: SEGV on unknown address 0x000000000048 (pc 0x624962d971db bp 0x73408e3a0000 sp 0x73408bbfd250 T3185887)
==3185787==The signal is caused by a READ memory access.
==3185787==Hint: address points to the zero page.
==3185889==ERROR: HWAddressSanitizer: tag-mismatch on address 0x581400005140 at pc 0x624962d53e97
READ of size 155 at 0x581400005140 tags: 04/00 (ptr/mem) in thread T2

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..

1 warning(s) in tests
Slowest Tests:
--------------------------------------------------------------------------
900.06s: SanitizerCommon-hwasan-x86_64-Linux :: Posix/fork_threaded.c
132.62s: libFuzzer-x86_64-default-Linux :: out-of-process-fuzz.test
125.61s: libFuzzer-x86_64-libcxx-Linux :: out-of-process-fuzz.test
118.20s: libFuzzer-x86_64-static-libcxx-Linux :: out-of-process-fuzz.test
55.17s: ThreadSanitizer-x86_64 :: bench_threads.cpp
44.42s: libFuzzer-i386-libcxx-Linux :: fork_corpus_groups.test
43.39s: libFuzzer-x86_64-default-Linux :: fork_corpus_groups.test
43.22s: libFuzzer-i386-default-Linux :: fork.test
43.01s: libFuzzer-x86_64-default-Linux :: fork.test
42.96s: libFuzzer-i386-static-libcxx-Linux :: fork_corpus_groups.test
42.76s: libFuzzer-i386-libcxx-Linux :: fork.test
42.74s: libFuzzer-i386-default-Linux :: fork_corpus_groups.test
42.54s: libFuzzer-i386-default-Linux :: value-profile-switch.test
41.75s: libFuzzer-i386-static-libcxx-Linux :: fork.test
41.41s: libFuzzer-x86_64-libcxx-Linux :: fork_corpus_groups.test

```

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


More information about the libcxx-commits mailing list