[clang] [compiler-rt] [compiler-rt] adding safestack support for sunos platforms. (PR #95648)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 29 10:37:41 PDT 2024


llvm-ci wrote:

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

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

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)
...
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/i386-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m32', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
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: 9209 tests, 80 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: libFuzzer-x86_64-default-Linux :: fuzzer-leak.test (9100 of 9209)
******************** TEST 'libFuzzer-x86_64-default-Linux :: fuzzer-leak.test' FAILED ********************
Exit Code: 77

Command Output (stderr):
--
RUN: at line 3: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest
RUN: at line 4: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/ThreadedLeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-ThreadedLeakTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/ThreadedLeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-ThreadedLeakTest
RUN: at line 5: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTimeoutTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTimeoutTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTimeoutTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTimeoutTest
RUN: at line 7: rm -rf /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus && mkdir -p /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ rm -rf /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ mkdir -p /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
RUN: at line 8: not  /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=100000 -detect_leaks=1 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/fuzzer-leak.test --check-prefix=LEAK_DURING
+ not /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=100000 -detect_leaks=1 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/fuzzer-leak.test --check-prefix=LEAK_DURING
RUN: at line 17: /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=0 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=0 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 3404642523
INFO: Loaded 1 modules   (4 inline 8-bit counters): 4 [0x556e728ec858, 0x556e728ec85c), 
INFO: Loaded 1 PC tables (4 PCs): 4 [0x556e728ec860,0x556e728ec8a0), 
INFO:        1 files found in /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: seed corpus: files: 1 min: 1b max: 1b total: 1b rss: 31Mb

=================================================================
==3454399==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x556e728deb4d in operator new(unsigned long) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:86:3
    #1 0x556e728e0fb4 in LLVMFuzzerTestOneInput /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp:13:12
    #2 0x556e7277c8ef in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:614:13
    #3 0x556e7277c0a3 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool, bool*) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:516:7
    #4 0x556e7277daef in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile>>&) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:829:7
    #5 0x556e7277de78 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile>>&) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:867:3
    #6 0x556e72774a9b in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:915:6
Step 18 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/i386-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m32', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-Wthread-safety', '-Wthread-safety-reference', '-Wthread-safety-beta', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/x86_64-unknown-linux-gnu". This path was found by running ['/b/sanitizer-x86_64-linux/build/build_default/bin/clang', '--target=x86_64-unknown-linux-gnu', '-m64', '-nobuiltininc', '-I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include', '-idirafter', '/b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include', '-resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build', '-Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
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: 9209 tests, 80 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: libFuzzer-x86_64-default-Linux :: fuzzer-leak.test (9100 of 9209)
******************** TEST 'libFuzzer-x86_64-default-Linux :: fuzzer-leak.test' FAILED ********************
Exit Code: 77

Command Output (stderr):
--
RUN: at line 3: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest
RUN: at line 4: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/ThreadedLeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-ThreadedLeakTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/ThreadedLeakTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-ThreadedLeakTest
RUN: at line 5: /b/sanitizer-x86_64-linux/build/build_default/bin/clang    -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta  -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux  --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTimeoutTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTimeoutTest
+ /b/sanitizer-x86_64-linux/build/build_default/bin/clang -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -nobuiltininc -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -idirafter /b/sanitizer-x86_64-linux/build/build_default/lib/clang/19/include -resource-dir=/b/sanitizer-x86_64-linux/build/compiler_rt_build -Wl,-rpath,/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/linux --driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer -I/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer -m64 /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTimeoutTest.cpp -o /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTimeoutTest
RUN: at line 7: rm -rf /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus && mkdir -p /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ rm -rf /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ mkdir -p /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
RUN: at line 8: not  /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=100000 -detect_leaks=1 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus 2>&1 | FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/fuzzer-leak.test --check-prefix=LEAK_DURING
+ not /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=100000 -detect_leaks=1 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ FileCheck /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/fuzzer-leak.test --check-prefix=LEAK_DURING
RUN: at line 17: /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=0 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
+ /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-LeakTest -runs=0 /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 3404642523
INFO: Loaded 1 modules   (4 inline 8-bit counters): 4 [0x556e728ec858, 0x556e728ec85c), 
INFO: Loaded 1 PC tables (4 PCs): 4 [0x556e728ec860,0x556e728ec8a0), 
INFO:        1 files found in /b/sanitizer-x86_64-linux/build/compiler_rt_build/test/fuzzer/X86_64DefaultLinuxConfig/Output/fuzzer-leak.test.tmp-corpus
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: seed corpus: files: 1 min: 1b max: 1b total: 1b rss: 31Mb

=================================================================
==3454399==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x556e728deb4d in operator new(unsigned long) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:86:3
    #1 0x556e728e0fb4 in LLVMFuzzerTestOneInput /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/test/fuzzer/LeakTest.cpp:13:12
    #2 0x556e7277c8ef in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:614:13
    #3 0x556e7277c0a3 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool, bool*) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:516:7
    #4 0x556e7277daef in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile>>&) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:829:7
    #5 0x556e7277de78 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, std::__Fuzzer::allocator<fuzzer::SizedFile>>&) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:867:3
    #6 0x556e72774a9b in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:915:6

```

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


More information about the cfe-commits mailing list