[libcxx-commits] [clang] [libcxx] [clang] Enable GNU __attribute__((init_priority(...))) on z/OS. (PR #199573)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 26 07:01:46 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 95242 tests passed
* 2888 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### AddressSanitizer-x86_64-linux
<details>
<summary>AddressSanitizer-x86_64-linux.TestCases/Posix/tsd_dtor_leak.cpp</summary>

```
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
# .---command stderr------------
# | clang-23: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1259: DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst> &llvm::DenseMapIterator<const llvm::Value *, const llvm::GlobalValue *>::operator++() [KeyT = const llvm::Value *, ValueT = const llvm::GlobalValue *, KeyInfoT = llvm::DenseMapInfo<const llvm::Value *>, Bucket = llvm::detail::DenseMapPair<const llvm::Value *, const llvm::GlobalValue *>, IsConst = false]: Assertion `isHandleInSync() && "invalid iterator access!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23 -cc1 -triple x86_64-unknown-linux-gnu -O1 -emit-obj -dumpdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp- -disable-free -clear-ast-before-backend -main-file-name tsd_dtor_leak.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fno-optimize-sibling-calls -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -gkey-instructions -debug-info-kind=line-tables-only -dwarf-version=5 -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Posix -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Posix -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../include/x86_64-unknown-linux-gnu -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -pthread -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fsanitize=address -fsanitize-system-ignorelist=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/share/asan_ignorelist.txt -fno-sanitize-memory-param-retval -fsanitize-address-use-after-scope -fsanitize-address-globals-dead-stripping -fno-assume-sane-operator-new -faddrsig -fdwarf2-cfi-asm -o /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-ef9c75.o -x c++ /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp
# | 1.	<eof> parser at end of file
# | 2.	Optimizer
# | 3.	Running pass "asan<use-after-scope>" on module "/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp"
# |  #0 0x00000000094784a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
# |  #1 0x0000000009475411 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x00000000094792c1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x0000000009479118 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8
# |  #4 0x0000000009479118 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2117:14
# |  #5 0x0000000009479118 find<const int *, int> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3897:14
# |  #6 0x0000000009479118 is_contained<const int (&)[10], int> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1952:12
# |  #7 0x0000000009479118 SignalHandlerTerminate(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:464:7
# |  #8 0x00007be040cc1330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #9 0x00007be040d1ab2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #10 0x00007be040cc127e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #11 0x00007be040ca48ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #12 0x00007be040ca481b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #13 0x00007be040cb7517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #14 0x00000000083da613 AdvancePastEmptyBuckets /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1274:5
# | #15 0x00000000083da613 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1262:5
# | #16 0x00000000083da613 llvm::GlobalsAAResult::DeletionCallbackHandle::deleted() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/GlobalsModRef.cpp:220:22
# | #17 0x0000000008e43a56 llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:0:40
# | #18 0x0000000008e4414f isUsedByMetadata /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Value.h:568:42
# | #19 0x0000000008e4414f llvm::Value::~Value() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:80:7
# | #20 0x0000000008d87c9e operator delete /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/GlobalVariable.h:104:37
# | #21 0x0000000008d87c9e deleteNode /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:42:39
# | #22 0x0000000008d87c9e erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:205:5
# | #23 0x0000000008d87c9e erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:209:39
# | #24 0x0000000008d87c9e eraseGlobalVariable /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Module.h:567:61
# | #25 0x0000000008d87c9e llvm::GlobalVariable::eraseFromParent() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Globals.cpp:539:16
# | #26 0x000000000914785b size /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:83:32
# | #27 0x000000000914785b operator[] /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:300:18
# | #28 0x000000000914785b (anonymous namespace)::ModuleAddressSanitizer::instrumentGlobals(llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&, bool*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2707:5
# | #29 0x000000000913da9d ~IRBuilder /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2858:7
# | #30 0x000000000913da9d instrumentModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2871:5
# | #31 0x000000000913da9d llvm::AddressSanitizerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1366:31
# | #32 0x0000000008e21bc7 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:80:8
# | #33 0x0000000009dce766 ~SmallPtrSetImplBase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:89:9
# | #34 0x0000000009dce766 ~PreservedAnalyses /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:112:7
# | #35 0x0000000009dce766 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1210:5
# | #36 0x0000000009dc39ec emitAssembly /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1292:23
# | #37 0x0000000009dc39ec clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1478:13
# | #38 0x0000000009dda684 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #39 0x0000000009dda684 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:313:3
# | #40 0x000000000b88d489 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
# | #41 0x000000000b88d489 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
# | #42 0x000000000b88d489 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> > > > > /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/TemplateInstCallback.h:54:16
# | #43 0x000000000b88d489 clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:190:3
# | #44 0x000000000a34f5a6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:10
# | #45 0x000000000a2adb3a getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #46 0x000000000a2adb3a operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #47 0x000000000a2adb3a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1021:23
# | #48 0x000000000a448c18 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1666:16
# | #49 0x000000000a448c18 _M_get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1363:66
# | #50 0x000000000a448c18 operator-> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1357:9
# | #51 0x000000000a448c18 getFrontendOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:314:12
# | #52 0x000000000a448c18 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:319:14
# | #53 0x0000000006574e00 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
# | #54 0x0000000006570bf5 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:229:12
# | #55 0x000000000656fbc0 clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:277:12
# | #56 0x00000000065810dd main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #57 0x00007be040ca61ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #58 0x00007be040ca628b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #59 0x000000000656e565 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23+0x656e565)
# | clang: error: unable to execute command: Aborted
# | clang: error: clang frontend command failed with exit code -2 (use -v to see invocation)
# | clang version 23.0.0git (https://github.com/llvm/llvm-project 8991f52bac75d068954e32e4f7ac499ed1201724)
# | Target: x86_64-unknown-linux-gnu
# | Thread model: posix
# | InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | Build config: +assertions
# | clang: note: diagnostic msg: 
# | ********************
# | 
# | PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
# | Preprocessed source(s) and associated run script(s) are located at:
# | clang: note: diagnostic msg: /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-7f4200.cpp
# | clang: note: diagnostic msg: /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-7f4200.sh
# | clang: note: diagnostic msg: 
# | 
# | ********************
# `-----------------------------
# error: command failed with exit status: -6

--

```
</details>

### AddressSanitizer-x86_64-linux-dynamic
<details>
<summary>AddressSanitizer-x86_64-linux-dynamic.TestCases/Posix/tsd_dtor_leak.cpp</summary>

```
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -shared-libasan -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libasan -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp -pthread -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp
# .---command stderr------------
# | clang-23: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1259: DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst> &llvm::DenseMapIterator<const llvm::Value *, const llvm::GlobalValue *>::operator++() [KeyT = const llvm::Value *, ValueT = const llvm::GlobalValue *, KeyInfoT = llvm::DenseMapInfo<const llvm::Value *>, Bucket = llvm::detail::DenseMapPair<const llvm::Value *, const llvm::GlobalValue *>, IsConst = false]: Assertion `isHandleInSync() && "invalid iterator access!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23 -cc1 -triple x86_64-unknown-linux-gnu -O1 -emit-obj -dumpdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Posix/Output/tsd_dtor_leak.cpp.tmp- -disable-free -clear-ast-before-backend -main-file-name tsd_dtor_leak.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fno-optimize-sibling-calls -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -gkey-instructions -debug-info-kind=line-tables-only -dwarf-version=5 -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Posix -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Posix -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../include/x86_64-unknown-linux-gnu -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -pthread -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fsanitize=address -fsanitize-system-ignorelist=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/share/asan_ignorelist.txt -fno-sanitize-memory-param-retval -fsanitize-address-use-after-scope -fsanitize-address-globals-dead-stripping -fno-assume-sane-operator-new -faddrsig -fdwarf2-cfi-asm -o /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-01cd01.o -x c++ /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp
# | 1.	<eof> parser at end of file
# | 2.	Optimizer
# | 3.	Running pass "asan<use-after-scope>" on module "/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Posix/tsd_dtor_leak.cpp"
# |  #0 0x00000000094784a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
# |  #1 0x0000000009475411 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x00000000094792c1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x0000000009479118 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8
# |  #4 0x0000000009479118 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2117:14
# |  #5 0x0000000009479118 find<const int *, int> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3897:14
# |  #6 0x0000000009479118 is_contained<const int (&)[10], int> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1952:12
# |  #7 0x0000000009479118 SignalHandlerTerminate(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:464:7
# |  #8 0x00007aa0c7940330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #9 0x00007aa0c7999b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #10 0x00007aa0c794027e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #11 0x00007aa0c79238ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #12 0x00007aa0c792381b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #13 0x00007aa0c7936517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #14 0x00000000083da613 AdvancePastEmptyBuckets /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1274:5
# | #15 0x00000000083da613 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1262:5
# | #16 0x00000000083da613 llvm::GlobalsAAResult::DeletionCallbackHandle::deleted() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/GlobalsModRef.cpp:220:22
# | #17 0x0000000008e43a56 llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:0:40
# | #18 0x0000000008e4414f isUsedByMetadata /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Value.h:568:42
# | #19 0x0000000008e4414f llvm::Value::~Value() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:80:7
# | #20 0x0000000008d87c9e operator delete /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/GlobalVariable.h:104:37
# | #21 0x0000000008d87c9e deleteNode /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:42:39
# | #22 0x0000000008d87c9e erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:205:5
# | #23 0x0000000008d87c9e erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:209:39
# | #24 0x0000000008d87c9e eraseGlobalVariable /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Module.h:567:61
# | #25 0x0000000008d87c9e llvm::GlobalVariable::eraseFromParent() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Globals.cpp:539:16
# | #26 0x000000000914785b size /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:83:32
# | #27 0x000000000914785b operator[] /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:300:18
# | #28 0x000000000914785b (anonymous namespace)::ModuleAddressSanitizer::instrumentGlobals(llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&, bool*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2707:5
# | #29 0x000000000913da9d ~IRBuilder /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2858:7
# | #30 0x000000000913da9d instrumentModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2871:5
# | #31 0x000000000913da9d llvm::AddressSanitizerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1366:31
# | #32 0x0000000008e21bc7 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:80:8
# | #33 0x0000000009dce766 ~SmallPtrSetImplBase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:89:9
# | #34 0x0000000009dce766 ~PreservedAnalyses /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:112:7
# | #35 0x0000000009dce766 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1210:5
# | #36 0x0000000009dc39ec emitAssembly /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1292:23
# | #37 0x0000000009dc39ec clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1478:13
# | #38 0x0000000009dda684 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #39 0x0000000009dda684 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:313:3
# | #40 0x000000000b88d489 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
# | #41 0x000000000b88d489 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
# | #42 0x000000000b88d489 finalize<std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> >, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback> > > > > /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/TemplateInstCallback.h:54:16
# | #43 0x000000000b88d489 clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:190:3
# | #44 0x000000000a34f5a6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:10
# | #45 0x000000000a2adb3a getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #46 0x000000000a2adb3a operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #47 0x000000000a2adb3a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1021:23
# | #48 0x000000000a448c18 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1666:16
# | #49 0x000000000a448c18 _M_get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1363:66
# | #50 0x000000000a448c18 operator-> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1357:9
# | #51 0x000000000a448c18 getFrontendOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:314:12
# | #52 0x000000000a448c18 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:319:14
# | #53 0x0000000006574e00 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
# | #54 0x0000000006570bf5 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:229:12
# | #55 0x000000000656fbc0 clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:277:12
# | #56 0x00000000065810dd main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #57 0x00007aa0c79251ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #58 0x00007aa0c792528b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #59 0x000000000656e565 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23+0x656e565)
# | clang: error: unable to execute command: Aborted
# | clang: error: clang frontend command failed with exit code -2 (use -v to see invocation)
# | clang version 23.0.0git (https://github.com/llvm/llvm-project 8991f52bac75d068954e32e4f7ac499ed1201724)
# | Target: x86_64-unknown-linux-gnu
# | Thread model: posix
# | InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | Build config: +assertions
# | clang: note: diagnostic msg: 
# | ********************
# | 
# | PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
# | Preprocessed source(s) and associated run script(s) are located at:
# | clang: note: diagnostic msg: /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-df568e.cpp
# | clang: note: diagnostic msg: /tmp/lit-tmp-0sscvbi4/tsd_dtor_leak-df568e.sh
# | clang: note: diagnostic msg: 
# | 
# | ********************
# `-----------------------------
# error: command failed with exit status: -6

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the libcxx-commits mailing list