llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.11k stars 12.01k forks source link

Crash during UnrealEngine 5.3.2 build from sources on linux #73993

Open antidotcb opened 11 months ago

antidotcb commented 11 months ago
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/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang++ @../Intermediate/Build/Linux/x64/UnrealFrontend/Development/ToolWidgets/Module.ToolWidgets.cpp.o.rsp
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '../Intermediate/Build/Linux/x64/UnrealFrontend/Development/ToolWidgets/Module.ToolWidgets.cpp'.
4.  Running pass 'Live DEBUG_VALUE analysis' on function '@_ZN2UE4Core7Private17TDestructorCallerI9TDelegateIF11FSlateColorvE26FDefaultDelegateUserPolicyEE8DestructEPv'
 #0 0x0000000001f35e87 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1f35e87)
 #1 0x0000000001f33f74 llvm::sys::RunSignalHandlers() (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1f33f74)
 #2 0x0000000001f34771 llvm::sys::CleanupOnSignal(unsigned long) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1f34771)
 #3 0x0000000001eba9e0 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #4 0x00007f082a642520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #5 0x0000000001610f35 LiveDebugValues::InstrRefBasedLDV::transferRegisterDef(llvm::MachineInstr&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1610f35)
 #6 0x0000000001628483 LiveDebugValues::InstrRefBasedLDV::depthFirstVLocAndEmit(unsigned int, llvm::DenseMap<llvm::LexicalScope const*, llvm::DILocation const*, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::DILocation const*>> const&, llvm::DenseMap<llvm::LexicalScope const*, llvm::SmallSet<llvm::DebugVariable, 4u, std::less<llvm::DebugVariable>>, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::SmallSet<llvm::DebugVariable, 4u, std::less<llvm::DebugVariable>>>> const&, llvm::DenseMap<llvm::LexicalScope const*, llvm::SmallPtrSet<llvm::MachineBasicBlock*, 4u>, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::SmallPtrSet<llvm::MachineBasicBlock*, 4u>>>&, llvm::SmallVector<llvm::SmallVector<std::pair<llvm::DebugVariable, LiveDebugValues::DbgValue>, 8u>, 8u>&, std::unique_ptr<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> [], std::default_delete<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> []>>&, std::unique_ptr<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> [], std::default_delete<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> []>>&, llvm::SmallVectorImpl<LiveDebugValues::VLocTracker>&, llvm::MachineFunction&, llvm::DenseMap<llvm::DebugVariable, unsigned int, llvm::DenseMapInfo<llvm::DebugVariable, void>, llvm::detail::DenseMapPair<llvm::DebugVariable, unsigned int>>&, llvm::TargetPassConfig const&)::'lambda'(llvm::MachineBasicBlock&)::operator()(llvm::MachineBasicBlock&) const InstrRefBasedImpl.cpp:0:0
 #7 0x0000000001628cda LiveDebugValues::InstrRefBasedLDV::depthFirstVLocAndEmit(unsigned int, llvm::DenseMap<llvm::LexicalScope const*, llvm::DILocation const*, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::DILocation const*>> const&, llvm::DenseMap<llvm::LexicalScope const*, llvm::SmallSet<llvm::DebugVariable, 4u, std::less<llvm::DebugVariable>>, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::SmallSet<llvm::DebugVariable, 4u, std::less<llvm::DebugVariable>>>> const&, llvm::DenseMap<llvm::LexicalScope const*, llvm::SmallPtrSet<llvm::MachineBasicBlock*, 4u>, llvm::DenseMapInfo<llvm::LexicalScope const*, void>, llvm::detail::DenseMapPair<llvm::LexicalScope const*, llvm::SmallPtrSet<llvm::MachineBasicBlock*, 4u>>>&, llvm::SmallVector<llvm::SmallVector<std::pair<llvm::DebugVariable, LiveDebugValues::DbgValue>, 8u>, 8u>&, std::unique_ptr<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> [], std::default_delete<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> []>>&, std::unique_ptr<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> [], std::default_delete<std::unique_ptr<LiveDebugValues::ValueIDNum [], std::default_delete<LiveDebugValues::ValueIDNum []>> []>>&, llvm::SmallVectorImpl<LiveDebugValues::VLocTracker>&, llvm::MachineFunction&, llvm::DenseMap<llvm::DebugVariable, unsigned int, llvm::DenseMapInfo<llvm::DebugVariable, void>, llvm::detail::DenseMapPair<llvm::DebugVariable, unsigned int>>&, llvm::TargetPassConfig const&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1628cda)
 #8 0x000000000162b4fa LiveDebugValues::InstrRefBasedLDV::ExtendRanges(llvm::MachineFunction&, llvm::MachineDominatorTree*, llvm::TargetPassConfig*, unsigned int, unsigned int) (.part.1515) InstrRefBasedImpl.cpp:0:0
 #9 0x000000000145c8d2 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.64) MachineFunctionPass.cpp:0:0
#10 0x00000000018ffe36 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x18ffe36)
#11 0x0000000001900023 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1900023)
#12 0x00000000019008a1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x19008a1)
#13 0x000000000226b8e4 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x226b8e4)
#14 0x0000000002eb8565 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x2eb8565)
#15 0x0000000003ab60c9 clang::ParseAST(clang::Sema&, bool, bool) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x3ab60c9)
#16 0x0000000002eb8f45 clang::CodeGenAction::ExecuteAction() (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x2eb8f45)
#17 0x00000000028dc951 clang::FrontendAction::Execute() (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x28dc951)
#18 0x0000000002880aea clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x2880aea)
#19 0x00000000029a553b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x29a553b)
#20 0x0000000000b22c54 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0xb22c54)
#21 0x0000000000b1dd70 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#22 0x0000000002727c95 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::string*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#23 0x0000000001ebaac5 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x1ebaac5)
#24 0x000000000272aa06 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::string*, bool*) const (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x272aa06)
#25 0x00000000026fe401 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x26fe401)
#26 0x00000000026fede0 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x26fede0)
#27 0x00000000027053df clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0x27053df)
#28 0x0000000000b20559 clang_main(int, char**) (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0xb20559)
#29 0x00007f082a629d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#30 0x00007f082a629e40 call_init ./csu/../csu/libc-start.c:128:20
#31 0x00007f082a629e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#32 0x0000000000b19d07 _start (/home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang+++0xb19d07)
clang++: error: clang frontend command failed with exit code 132 (use -v to see invocation)
clang version 16.0.6 (github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/danylo/UE/UnrealEngine-5.3.2-release/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/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/UnrealBuildTool/842d46b4/Module-19c21c.cpp
clang++: note: diagnostic msg: /tmp/UnrealBuildTool/842d46b4/Module-19c21c.sh
clang++: note: diagnostic msg: 
********************

files.zip

asl commented 11 months ago

Does the problem reproduce with the latest LLVM / clang?