[clang] [CIR] Fix union layout calculations- remove getLargestMember (PR #199292)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 08:05:19 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 96830 tests passed
* 2112 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-r5u45v9d/tsd_dtor_leak-029461.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 0x000000000a55fce8 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 0x000000000a55cc51 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000a560b01 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# | #3 0x000000000a560958 __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 0x000000000a560958 __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 0x000000000a560958 find<const int *, int> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3897:14
# | #6 0x000000000a560958 is_contained<const int (&)[10], int> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1952:12
# | #7 0x000000000a560958 SignalHandlerTerminate(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:464:7
# | #8 0x00007e1eb86ae330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #9 0x00007e1eb8707b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #10 0x00007e1eb86ae27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #11 0x00007e1eb86918ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #12 0x00007e1eb869181b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #13 0x00007e1eb86a4517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #14 0x00000000094c1e53 AdvancePastEmptyBuckets /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1274:5
# | #15 0x00000000094c1e53 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1262:5
# | #16 0x00000000094c1e53 llvm::GlobalsAAResult::DeletionCallbackHandle::deleted() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/GlobalsModRef.cpp:220:22
# | #17 0x0000000009f2b296 llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:0:40
# | #18 0x0000000009f2b98f isUsedByMetadata /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Value.h:568:42
# | #19 0x0000000009f2b98f llvm::Value::~Value() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:80:7
# | #20 0x0000000009e6f4de operator delete /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/GlobalVariable.h:104:37
# | #21 0x0000000009e6f4de deleteNode /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:42:39
# | #22 0x0000000009e6f4de erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:205:5
# | #23 0x0000000009e6f4de erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:209:39
# | #24 0x0000000009e6f4de eraseGlobalVariable /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Module.h:567:61
# | #25 0x0000000009e6f4de llvm::GlobalVariable::eraseFromParent() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Globals.cpp:539:16
# | #26 0x000000000a22f09b size /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:83:32
# | #27 0x000000000a22f09b operator[] /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:300:18
# | #28 0x000000000a22f09b (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 0x000000000a2252dd ~IRBuilder /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2858:7
# | #30 0x000000000a2252dd instrumentModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2871:5
# | #31 0x000000000a2252dd 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 0x0000000009f09407 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 0x000000000aeb6fb6 ~SmallPtrSetImplBase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:89:9
# | #34 0x000000000aeb6fb6 ~PreservedAnalyses /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:112:7
# | #35 0x000000000aeb6fb6 (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 0x000000000aeac23c emitAssembly /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1292:23
# | #37 0x000000000aeac23c 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 0x000000000aec2ed4 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #39 0x000000000aec2ed4 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:313:3
# | #40 0x000000000e47b739 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
# | #41 0x000000000e47b739 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
# | #42 0x000000000e47b739 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 0x000000000e47b739 clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:190:3
# | #44 0x000000000b437ff6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:10
# | #45 0x000000000b39654a getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #46 0x000000000b39654a operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #47 0x000000000b39654a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1021:23
# | #48 0x000000000b531a24 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1666:16
# | #49 0x000000000b531a24 _M_get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1363:66
# | #50 0x000000000b531a24 operator-> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1357:9
# | #51 0x000000000b531a24 getFrontendOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:314:12
# | #52 0x000000000b531a24 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:319:14
# | #53 0x000000000765c640 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 0x0000000007658435 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 0x0000000007657400 clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:277:12
# | #56 0x000000000766891d main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #57 0x00007e1eb86931ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #58 0x00007e1eb869328b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #59 0x0000000007655da5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23+0x7655da5)
# | 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 12056e1a274bed4dd4a95e7fcc72377e14a7da4d)
# | 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-r5u45v9d/tsd_dtor_leak-cd89ab.cpp
# | clang: note: diagnostic msg: /tmp/lit-tmp-r5u45v9d/tsd_dtor_leak-cd89ab.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-r5u45v9d/tsd_dtor_leak-10c5a4.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 0x000000000a55fce8 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 0x000000000a55cc51 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000a560b01 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# | #3 0x000000000a560958 __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 0x000000000a560958 __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 0x000000000a560958 find<const int *, int> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3897:14
# | #6 0x000000000a560958 is_contained<const int (&)[10], int> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1952:12
# | #7 0x000000000a560958 SignalHandlerTerminate(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:464:7
# | #8 0x00007c29503e7330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #9 0x00007c2950440b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #10 0x00007c29503e727e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #11 0x00007c29503ca8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #12 0x00007c29503ca81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #13 0x00007c29503dd517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #14 0x00000000094c1e53 AdvancePastEmptyBuckets /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1274:5
# | #15 0x00000000094c1e53 operator++ /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1262:5
# | #16 0x00000000094c1e53 llvm::GlobalsAAResult::DeletionCallbackHandle::deleted() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/GlobalsModRef.cpp:220:22
# | #17 0x0000000009f2b296 llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:0:40
# | #18 0x0000000009f2b98f isUsedByMetadata /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Value.h:568:42
# | #19 0x0000000009f2b98f llvm::Value::~Value() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Value.cpp:80:7
# | #20 0x0000000009e6f4de operator delete /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/GlobalVariable.h:104:37
# | #21 0x0000000009e6f4de deleteNode /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:42:39
# | #22 0x0000000009e6f4de erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:205:5
# | #23 0x0000000009e6f4de erase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ilist.h:209:39
# | #24 0x0000000009e6f4de eraseGlobalVariable /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Module.h:567:61
# | #25 0x0000000009e6f4de llvm::GlobalVariable::eraseFromParent() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Globals.cpp:539:16
# | #26 0x000000000a22f09b size /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:83:32
# | #27 0x000000000a22f09b operator[] /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallVector.h:300:18
# | #28 0x000000000a22f09b (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 0x000000000a2252dd ~IRBuilder /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2858:7
# | #30 0x000000000a2252dd instrumentModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:2871:5
# | #31 0x000000000a2252dd 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 0x0000000009f09407 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 0x000000000aeb6fb6 ~SmallPtrSetImplBase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:89:9
# | #34 0x000000000aeb6fb6 ~PreservedAnalyses /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:112:7
# | #35 0x000000000aeb6fb6 (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 0x000000000aeac23c emitAssembly /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1292:23
# | #37 0x000000000aeac23c 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 0x000000000aec2ed4 ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:403:6
# | #39 0x000000000aec2ed4 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:313:3
# | #40 0x000000000e47b739 __normal_iterator /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator.h:1077:20
# | #41 0x000000000e47b739 begin /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:874:16
# | #42 0x000000000e47b739 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 0x000000000e47b739 clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:190:3
# | #44 0x000000000b437ff6 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:10
# | #45 0x000000000b39654a getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #46 0x000000000b39654a operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #47 0x000000000b39654a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1021:23
# | #48 0x000000000b531a24 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1666:16
# | #49 0x000000000b531a24 _M_get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1363:66
# | #50 0x000000000b531a24 operator-> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1357:9
# | #51 0x000000000b531a24 getFrontendOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:314:12
# | #52 0x000000000b531a24 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:319:14
# | #53 0x000000000765c640 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 0x0000000007658435 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 0x0000000007657400 clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:277:12
# | #56 0x000000000766891d main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #57 0x00007c29503cc1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #58 0x00007c29503cc28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #59 0x0000000007655da5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23+0x7655da5)
# | 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 12056e1a274bed4dd4a95e7fcc72377e14a7da4d)
# | 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-r5u45v9d/tsd_dtor_leak-269f88.cpp
# | clang: note: diagnostic msg: /tmp/lit-tmp-r5u45v9d/tsd_dtor_leak-269f88.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/199292
More information about the cfe-commits
mailing list