| Issue |
181567
|
| Summary |
Segfaults when building llvm-bolt with clang 21.1.8
|
| Labels |
clang,
BOLT
|
| Assignees |
|
| Reporter |
MasterDuke17
|
Clang is crashing twice in Arch Linux when attempting to update the llvm-bolt AUR package from 21.1.1-1 to 21.1.8-1. Below is the console output from the second of the crashes. I'm trying to include the diagnostic files, but the .cpp is 25mb and it seems GitHub isn't letting me.
```
[975/1952] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o
FAILED: [code=1] lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o
/usr/bin/clang++ -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -DHAS_LOGF128 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/dan/.cache/yay/llvm-bolt/src/build/lib/Analysis -I/home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/lib/Analysis -I/home/dan/.cache/yay/llvm-bolt/src/build/include -I/home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/include -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o -MF lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o.d -o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o -c /home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
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: /usr/bin/clang++ -DEXPERIMENTAL_KEY_INSTRUCTIONS -DGTEST_HAS_RTTI=0 -DHAS_LOGF128 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/dan/.cache/yay/llvm-bolt/src/build/lib/Analysis -I/home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/lib/Analysis -I/home/dan/.cache/yay/llvm-bolt/src/build/include -I/home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/include -march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o -MF lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o.d -o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o -c /home/dan/.cache/yay/llvm-bolt/src/llvm-project-21.1.8.src/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
1. <eof> parser at end of file
#0 0x00007fe16b1081ed llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/Unix/Signals.inc:834:22
#1 0x00007fe16b105cc7 llvm::sys::RunSignalHandlers() /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/Signals.cpp:104:20
#2 0x00007fe16b105cc7 llvm::sys::CleanupOnSignal(unsigned long) /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/Unix/Signals.inc:373:31
#3 0x00007fe16afda6b9 HandleCrash /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/CrashRecoveryContext.cpp:73:5
#4 0x00007fe16afda6b9 CrashRecoverySignalHandler /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/CrashRecoveryContext.cpp:390:62
#5 0x00007fe16a24d2d0 (/usr/lib/libc.so.6+0x3e2d0)
#6 0x00007fe174aba66c clang::Decl::isInAnonymousNamespace() const /usr/src/debug/clang/clang-21.1.8.src/lib/AST/DeclBase.cpp:424:7
#7 0x00007fe174ac4516 clang::Decl::getTranslationUnitDecl() /usr/include/llvm/Support/Casting.h:493:5
#8 0x00007fe174ac4516 clang::Decl::getTranslationUnitDecl() const /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclBase.h:480:59
#9 0x00007fe174ac4516 clang::Decl::getASTContext() const /usr/src/debug/clang/clang-21.1.8.src/lib/AST/DeclBase.cpp:530:49
#10 0x00007fe174ac4516 clang::StoredDeclsList::getASTContext() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:139:41
#11 0x00007fe174ac4516 clang::StoredDeclsList::getASTContext() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:135:15
#12 0x00007fe174ac4516 clang::StoredDeclsList::MaybeDeallocList() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:112:34
#13 0x00007fe174ac4516 clang::StoredDeclsList::MaybeDeallocList() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:108:8
#14 0x00007fe174ac4516 clang::StoredDeclsList::~StoredDeclsList() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:121:21
#15 0x00007fe174ac4516 llvm::DenseMapBase<llvm::SmallDenseMap<clang::DeclarationName, clang::StoredDeclsList, 4u, llvm::DenseMapInfo<clang::DeclarationName, void>, llvm::detail::DenseMapPair<clang::DeclarationName, clang::StoredDeclsList>>, clang::DeclarationName, clang::StoredDeclsList, llvm::DenseMapInfo<clang::DeclarationName, void>, llvm::detail::DenseMapPair<clang::DeclarationName, clang::StoredDeclsList>>::destroyAll() /usr/include/llvm/ADT/DenseMap.h:430:31
#16 0x00007fe174ac4516 llvm::SmallDenseMap<clang::DeclarationName, clang::StoredDeclsList, 4u, llvm::DenseMapInfo<clang::DeclarationName, void>, llvm::detail::DenseMapPair<clang::DeclarationName, clang::StoredDeclsList>>::~SmallDenseMap() /usr/include/llvm/ADT/DenseMap.h:984:21
#17 0x00007fe174ac4516 clang::StoredDeclsMap::~StoredDeclsMap() /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/DeclContextInternals.h:302:7
#18 0x00007fe174ac4516 clang::StoredDeclsMap::DestroyAll(clang::StoredDeclsMap*, bool) /usr/src/debug/clang/clang-21.1.8.src/lib/AST/DeclBase.cpp:2234:14
#19 0x00007fe17488feec llvm::SmallVectorBase<unsigned int>::size() const /usr/include/llvm/ADT/SmallVector.h:79:32
#20 0x00007fe17488feec llvm::SmallVectorTemplateCommon<std::pair<void (*)(void*), void*>, void>::end() /usr/include/llvm/ADT/SmallVector.h:270:41
#21 0x00007fe17488feec clang::ASTContext::cleanup() /usr/src/debug/clang/clang-21.1.8.src/lib/AST/ASTContext.cpp:965:21
#22 0x00007fe175ff3c3f clang::ASTContext::getAllocator() const /usr/src/debug/clang/clang-21.1.8.src/include/clang/AST/ASTContext.h:803:12
#23 0x00007fe175ff3c3f clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /usr/src/debug/clang/clang-21.1.8.src/lib/CodeGen/CodeGenAction.cpp:311:19
#24 0x00007fe174771736 __gnu_cxx::__normal_iterator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>*, std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>>>>::__normal_iterator(std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>* const&) /usr/include/c++/15.2.1/bits/stl_iterator.h:1059:9
#25 0x00007fe174771736 std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>>>::begin() /usr/include/c++/15.2.1/bits/stl_vector.h:999:16
#26 0x00007fe174771736 void clang::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>>>>>(std::vector<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>, std::allocator<std::unique_ptr<clang::TemplateInstantiationCallback, std::default_delete<clang::TemplateInstantiationCallback>>>>&, clang::Sema const&) /usr/src/debug/clang/clang-21.1.8.src/include/clang/Sema/TemplateInstCallback.h:54:3
#27 0x00007fe174771736 clang::ParseAST(clang::Sema&, bool, bool) /usr/src/debug/clang/clang-21.1.8.src/lib/Parse/ParseAST.cpp:190:11
#28 0x00007fe17684ea9c clang::CompilerInstance::shouldBuildGlobalModuleIndex() const /usr/src/debug/clang/clang-21.1.8.src/lib/Frontend/CompilerInstance.cpp:86:58
#29 0x00007fe17684ea9c clang::FrontendAction::Execute() /usr/src/debug/clang/clang-21.1.8.src/lib/Frontend/FrontendAction.cpp:1225:38
#30 0x00007fe1767aff0f llvm::Error::getPtr() const /usr/include/llvm/Support/Error.h:281:12
#31 0x00007fe1767aff0f llvm::Error::operator bool() /usr/include/llvm/Support/Error.h:241:22
#32 0x00007fe1767aff0f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /usr/src/debug/clang/clang-21.1.8.src/lib/Frontend/CompilerInstance.cpp:1055:42
#33 0x00007fe1768abcec std::__shared_ptr<clang::FrontendOptions, (__gnu_cxx::_Lock_policy)2>::get() const /usr/include/c++/15.2.1/bits/shared_ptr_base.h:1673:16
#34 0x00007fe1768abcec std::__shared_ptr_access<clang::FrontendOptions, (__gnu_cxx::_Lock_policy)2, false, false>::_M_get() const /usr/include/c++/15.2.1/bits/shared_ptr_base.h:1370:69
#35 0x00007fe1768abcec std::__shared_ptr_access<clang::FrontendOptions, (__gnu_cxx::_Lock_policy)2, false, false>::operator*() const /usr/include/c++/15.2.1/bits/shared_ptr_base.h:1358:40
#36 0x00007fe1768abcec clang::CompilerInvocation::getFrontendOpts() /usr/src/debug/clang/clang-21.1.8.src/include/clang/Frontend/CompilerInvocation.h:259:48
#37 0x00007fe1768abcec clang::CompilerInstance::getFrontendOpts() /usr/src/debug/clang/clang-21.1.8.src/include/clang/Frontend/CompilerInstance.h:304:39
#38 0x00007fe1768abcec clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /usr/src/debug/clang/clang-21.1.8.src/lib/FrontendTool/ExecuteCompilerInvocation.cpp:300:29
#39 0x0000561c26da2e9a cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /usr/src/debug/clang/clang-21.1.8.src/tools/driver/cc1_main.cpp:297:40
#40 0x0000561c26da6b61 ExecuteCC1Tool /usr/src/debug/clang/clang-21.1.8.src/tools/driver/driver.cpp:223:20
#41 0x00007fe1763f3295 operator() /usr/src/debug/clang/clang-21.1.8.src/lib/Driver/Job.cpp:436:32
#42 0x00007fe1763f3295 callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef> >, std::string*, bool*) const::<lambda()> > /usr/include/llvm/ADT/STLFunctionalExtras.h:46:52
#43 0x00007fe16afdaaf8 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) /usr/src/debug/llvm/llvm-21.1.8.src/lib/Support/CrashRecoveryContext.cpp:428:1
#44 0x00007fe1763fee35 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const /usr/src/debug/clang/clang-21.1.8.src/lib/Driver/Job.cpp:440:10
#45 0x00007fe17641228b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const /usr/src/debug/clang/clang-21.1.8.src/lib/Driver/Compilation.cpp:196:22
#46 0x00007fe17641268c clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const /usr/src/debug/clang/clang-21.1.8.src/lib/Driver/Compilation.cpp:251:5
#47 0x00007fe176424e65 llvm::SmallVectorBase<unsigned int>::empty() const /usr/include/llvm/ADT/SmallVector.h:82:46
#48 0x00007fe176424e65 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) /usr/src/debug/clang/clang-21.1.8.src/lib/Driver/Driver.cpp:2246:28
#49 0x0000561c26da8b85 llvm::SmallVectorBase<unsigned int>::size() const /usr/include/llvm/ADT/SmallVector.h:79:32
#50 0x0000561c26da8b85 llvm::SmallVectorTemplateCommon<std::pair<int, clang::driver::Command const*>, void>::end() /usr/include/llvm/ADT/SmallVector.h:270:41
#51 0x0000561c26da8b85 clang_main(int, char**, llvm::ToolContext const&) /usr/src/debug/clang/clang-21.1.8.src/tools/driver/driver.cpp:408:26
#52 0x0000561c26d9a2b0 main /usr/src/debug/clang/clang-21.1.8.src/build/tools/driver/clang-driver.cpp:18:1
#53 0x00007fe16a2366c1 __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:83:3
#54 0x00007fe16a2367f9 call_init /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:128:20
#55 0x00007fe16a2367f9 __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:347:5
#56 0x0000561c26d9a315 _start (/usr/bin/clang+++0xb315)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 21.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
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/ModuleSummaryAnalysis-03d529.cpp
clang++: note: diagnostic msg: /tmp/ModuleSummaryAnalysis-03d529.sh
clang++: note: diagnostic msg:
********************
[978/1952] Building CXX object lib/Transforms/InstCombine/CMakeFiles/LLVMInstCombine.dir/InstructionCombining.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: llvm-bolt-exit status 4
-> Failed to install the following packages. Manual intervention is required:
llvm-bolt - exit status 4
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs