Closed pvelesko closed 6 months ago
Further segfaults:
clang++: /tmp/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1291: llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>& llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, Bucket, IsConst>::operator++() [with KeyT = llvm::PoisoningVH<llvm::BasicBlock>; ValueT = std::unique_ptr<{anonymous}::LazyValueInfoCache::BlockCacheEntry>; KeyInfoT = llvm::DenseMapInfo<llvm::PoisoningVH<llvm::BasicBlock>, void>; Bucket = llvm::detail::DenseMapPair<llvm::PoisoningVH<llvm::BasicBlock>, std::unique_ptr<{anonymous}::LazyValueInfoCache::BlockCacheEntry> >; bool 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: /space/pvelesko/install/llvm/17.0/bin/clang++ -DCHIP_EXPORTS -DHAVE_LEVEL0 -DHAVE_OPENCL -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_WARN -D__HIP_PLATFORM_SPIRV__= -I/space/pvelesko/chipStar/fix-icpx-include/bitcode -I/space/pvelesko/chipStar/fix-icpx-include/HIP/include -I/space/pvelesko/chipStar/fix-icpx-include/include -I/space/pvelesko/chipStar/fix-icpx-include/include/cuspv -I/space/pvelesko/chipStar/fix-icpx-include/build/include -I/space/pvelesko/chipStar/fix-icpx-include/src -I/space/pvelesko/chipStar/fix-icpx-include/build/bitcode -I/space/pvelesko/chipStar/fix-icpx-include/CHIP -I/space/pvelesko/chipStar/fix-icpx-include/PUBLIC -I/space/pvelesko/install/intel-compute-runtime/level-zero/23.43.27642.21/lib/../include/level_zero -Wno-duplicate-decl-specifier -Wno-tautological-constant-compare -Wno-c++20-extensions -Wno-unused-result -Wno-delete-abstract-non-virtual-dtor -Wno-deprecated-declarations -Wunused-command-line-argument -O3 -DNDEBUG -std=c++17 -fPIC -Wno-format-extra-args -mf16c -MD -MT CMakeFiles/CHIP.dir/src/spirv.cc.o -MF CMakeFiles/CHIP.dir/src/spirv.cc.o.d -o CMakeFiles/CHIP.dir/src/spirv.cc.o -c /space/pvelesko/chipStar/fix-icpx-include/src/spirv.cc
1. <eof> parser at end of file
2. Optimizer
#0 0x00007f36344d07e2 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x8747e2)
#1 0x00007f36344cdf1f llvm::sys::RunSignalHandlers() (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x871f1f)
#2 0x00007f36343cec28 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f363382b520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f363387f9fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f363387f9fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007f363387f9fc pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007f363382b476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f36338117f3 abort ./stdlib/abort.c:81:7
#9 0x00007f363381171b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007f3633822e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#11 0x00007f36362f2c4c (anonymous namespace)::LazyValueInfoCache::eraseValue(llvm::Value*) LazyValueInfo.cpp:0:0
#12 0x00007f3634737d1f llvm::ValueHandleBase::ValueIsRAUWd(llvm::Value*, llvm::Value*) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0xadbd1f)
#13 0x00007f3634738543 llvm::Value::doRAUW(llvm::Value*, llvm::Value::ReplaceMetadataUses) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0xadc543)
#14 0x00007f36359e364e processPHI(llvm::PHINode*, llvm::LazyValueInfo*, llvm::DominatorTree*, llvm::SimplifyQuery const&) CorrelatedValuePropagation.cpp:0:0
#15 0x00007f36359e839f runImpl(llvm::Function&, llvm::LazyValueInfo*, llvm::DominatorTree*, llvm::SimplifyQuery const&) CorrelatedValuePropagation.cpp:0:0
#16 0x00007f36359ea70e llvm::CorrelatedValuePropagationPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x1d8e70e)
#17 0x00007f3637435e75 llvm::detail::PassModel<llvm::Function, llvm::CorrelatedValuePropagationPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x37d9e75)
#18 0x00007f363aa80234 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x1e39234)
#19 0x00007f36361b5778 llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x2559778)
#20 0x00007f36374337b5 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::CGSCCToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x37d77b5)
#21 0x00007f36361af5d5 llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x25535d5)
#22 0x00007f3635e0a2f5 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x21ae2f5)
#23 0x00007f36361b679d llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x255a79d)
#24 0x00007f3635e0a2a5 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::DevirtSCCRepeatedPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x21ae2a5)
#25 0x00007f36361b12a8 llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x25552a8)
#26 0x00007f3635e0fb22 llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x21b3b22)
#27 0x00007f3637432f05 llvm::detail::PassModel<llvm::Module, llvm::ModuleInlinerWrapperPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x37d6f05)
#28 0x00007f36346fd8b1 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0xaa18b1)
#29 0x00007f363aa81682 (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>>&) BackendUtil.cpp:0:0
#30 0x00007f363aa84a40 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, 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>>) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x1e3da40)
#31 0x00007f363af1db1b clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x22d6b1b)
#32 0x00007f3639603dc9 clang::ParseAST(clang::Sema&, bool, bool) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x9bcdc9)
#33 0x00007f363ba2fbc1 clang::FrontendAction::Execute() (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x2de8bc1)
#34 0x00007f363b9b2fbe clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x2d6bfbe)
#35 0x00007f363bac4ec1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x2e7dec1)
#36 0x0000564a5c4ad4cb cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/space/pvelesko/install/llvm/17.0/bin/clang+++0x144cb)
#37 0x0000564a5c4a61e7 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#38 0x00007f363b5b92dd void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#39 0x00007f36343cf10e llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x77310e)
#40 0x00007f363b5baa24 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#41 0x00007f363b57f6aa clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x29386aa)
#42 0x00007f363b5801dd clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x29391dd)
#43 0x00007f363b58ba1c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/space/pvelesko/install/llvm/17.0/lib/libclang-cpp.so.17rc+0x2944a1c)
#44 0x0000564a5c4ab8c8 clang_main(int, char**, llvm::ToolContext const&) (/space/pvelesko/install/llvm/17.0/bin/clang+++0x128c8)
#45 0x0000564a5c4a4d93 main (/space/pvelesko/install/llvm/17.0/bin/clang+++0xbd93)
#46 0x00007f3633812d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#47 0x00007f3633812e40 call_init ./csu/../csu/libc-start.c:128:20
#48 0x00007f3633812e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#49 0x0000564a5c4a4dd5 _start (/space/pvelesko/install/llvm/17.0/bin/clang+++0xbdd5)
clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
clang version 17.0.0 (https://github.com/CHIP-SPV/llvm-project.git f11f439e3555a82754daa98dc1679ee07dc00403)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /space/pvelesko/install/llvm/17.0/bin
clang++: note: diagnostic msg:
********************
[100%] Building /space/pvelesko/chipStar/fix-icpx-include/bitcode/texture.cl
clang++clang++clang++: : : warning: warning: warning: argument unused during compilation: '-cl-ext=+cl_khr_subgroup' [-Wunused-command-line-argument]argument unused during compilation: '-cl-ext=+cl_khr_subgroup' [-Wunused-command-line-argument]argument unused during compilation: '-cl-ext=+cl_khr_subgroup' [-Wunused-command-line-argument]
[100%] Linking device library bitcode 'hipspv-spirv64.bc'
[100%] Built target devicelib_bc
[100%] Linking CXX shared module ../lib/libLLVMHipSpvPasses.so
[100%] Built target LLVMHipPasses
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: /space/pvelesko/install/llvm/17.0/bin/clang++ -Wno-duplicate-decl-specifier -Wno-tautological-constant-compare -Wno-c++20-extensions -Wno-unused-result -Wno-delete-abstract-non-virtual-dtor -Wno-deprecated-declarations -Wunused-command-line-argument -O3 -DNDEBUG -std=c++17 -fPIE -Wno-format-extra-args -mf16c -MD -MT HIPCC/CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o -MF CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o.d -o CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o -c /space/pvelesko/chipStar/fix-icpx-include/HIPCC/src/hipBin.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/space/pvelesko/chipStar/fix-icpx-include/HIPCC/src/hipBin.cpp'.
4. Running pass 'Register Coalescer' on function '@_ZNSt8__detail9_ExecutorIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEENS5_12regex_traitsIcEELb1EE6_M_dfsENSH_11_Match_modeEl'
#0 0x00007fd929ac47e2 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x8747e2)
#1 0x00007fd929ac1f1f llvm::sys::RunSignalHandlers() (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x871f1f)
#2 0x00007fd9299c2c28 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007fd928e21520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007ffcb0f02188
*** longjmp causes uninitialized stack frame ***: terminated
Aborted (core dumped)
make[3]: *** [HIPCC/CMakeFiles/hipcc.bin.dir/build.make:76: HIPCC/CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o] Error 134
make[2]: *** [CMakeFiles/Makefile2:4371: HIPCC/CMakeFiles/hipcc.bin.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable ../bin/hipconfig.bin
[100%] Built target hipconfig.bin
make[1]: *** [CMakeFiles/Makefile2:21518: samples/0_MatrixMultiply/CMakeFiles/MatrixMultiply.dir/rule] Error 2
make: *** [Makefile:9078: MatrixMultiply] Error 2
[100%] Built target devicelib_bc
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: /space/pvelesko/install/llvm/17.0/bin/clang++ -Wno-duplicate-decl-specifier -Wno-tautological-constant-compare -Wno-c++20-extensions -Wno-unused-result -Wno-delete-abstract-non-virtual-dtor -Wno-deprecated-declarations -Wunused-command-line-argument -O3 -DNDEBUG -std=c++17 -fPIE -Wno-format-extra-args -mf16c -MD -MT HIPCC/CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o -MF CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o.d -o CMakeFiles/hipcc.bin.dir/src/hipBin.cpp.o -c /space/pvelesko/chipStar/fix-icpx-include/HIPCC/src/hipBin.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/space/pvelesko/chipStar/fix-icpx-include/HIPCC/src/hipBin.cpp'.
4. Running pass 'Register Coalescer' on function '@_ZN6HipBinC2Ev'
#0 0x00007f58959927e2 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x8747e2)
#1 0x00007f589598ff1f llvm::sys::RunSignalHandlers() (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x871f1f)
#2 0x00007f5895890c28 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f5894ced520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f5899b7ac90 __GNU_EH_FRAME_HDR (/space/pvelesko/install/llvm/17.0/lib/libLLVM-17rc.so+0x4a5cc90)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 17.0.0 (https://github.com/CHIP-SPV/llvm-project.git f11f439e3555a82754daa98dc1679ee07dc00403)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /space/pvelesko/install/llvm/17.0/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/hipBin-6baadd.cpp
clang++: note: diagnostic msg: /tmp/hipBin-6baadd.sh
clang++: note: diagnostic msg:
********************
Trying to use a statically linked llvm17
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: /space/pvelesko/install/llvm/17.0/static/bin/clang++ -DCHIP_EXPORTS -DHAVE_OPENCL -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_WARN -D__HIP_PLATFORM_SPIRV__= -I/space/pvelesko/chipStar/fix-icpx-include/bitcode -I/space/pvelesko/chipStar/fix-icpx-include/HIP/include -I/space/pvelesko/chipStar/fix-icpx-include/include -I/space/pvelesko/chipStar/fix-icpx-include/include/cuspv -I/space/pvelesko/chipStar/fix-icpx-include/build/include -I/space/pvelesko/chipStar/fix-icpx-include/src -I/space/pvelesko/chipStar/fix-icpx-include/build/bitcode -Wno-duplicate-decl-specifier -Wno-tautological-constant-compare -Wno-c++20-extensions -Wno-unused-result -Wno-delete-abstract-non-virtual-dtor -Wno-deprecated-declarations -Wunused-command-line-argument -O3 -DNDEBUG -std=c++17 -fPIC -Wno-format-extra-args -mf16c -MD -MT CMakeFiles/CHIP.dir/src/CHIPBackend.cc.o -MF CMakeFiles/CHIP.dir/src/CHIPBackend.cc.o.d -o CMakeFiles/CHIP.dir/src/CHIPBackend.cc.o -c /space/pvelesko/chipStar/fix-icpx-include/src/CHIPBackend.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/space/pvelesko/chipStar/fix-icpx-include/src/CHIPBackend.cc'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN8chipstar5QueueD2Ev'
#0 0x0000561a090b298f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1d8398f)
#1 0x0000561a090b09cc llvm::sys::CleanupOnSignal(unsigned long) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1d819cc)
#2 0x0000561a09009a68 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f5359658520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x0000561a09fd858d llvm::SelectionDAGBuilder::LowerCallTo(llvm::CallBase const&, llvm::SDValue, bool, bool, llvm::BasicBlock const*) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2ca958d)
#5 0x0000561a09fc5bf8 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2c96bf8)
#6 0x0000561a09ffa568 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2ccb568)
#7 0x0000561a0a0685d6 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, true>, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, true>, bool&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2d395d6)
#8 0x0000561a0a069aea llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2d3aaea)
#9 0x0000561a0a06be85 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.0) SelectionDAGISel.cpp:0:0
#10 0x0000561a07fab185 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) X86ISelDAGToDAG.cpp:0:0
#11 0x0000561a085dbe50 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#12 0x0000561a08b52ac0 llvm::FPPassManager::runOnFunction(llvm::Function&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1823ac0)
#13 0x0000561a08b52c34 llvm::FPPassManager::runOnModule(llvm::Module&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1823c34)
#14 0x0000561a08b537f0 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x18247f0)
#15 0x0000561a092f46be clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, 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>>) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1fc56be)
#16 0x0000561a0a1be54a clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2e8f54a)
#17 0x0000561a0b0a1d59 clang::ParseAST(clang::Sema&, bool, bool) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x3d72d59)
#18 0x0000561a09af9399 clang::FrontendAction::Execute() (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x27ca399)
#19 0x0000561a09a7fe91 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2750e91)
#20 0x0000561a09bb8163 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x2889163)
#21 0x0000561a07e96e5b cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0xb67e5b)
#22 0x0000561a07e904f4 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#23 0x0000561a098c079d void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#24 0x0000561a09009ea7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x1cdaea7)
#25 0x0000561a098c0b17 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#26 0x0000561a098892db clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x255a2db)
#27 0x0000561a09889d0d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x255ad0d)
#28 0x0000561a0989b10c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0x256c10c)
#29 0x0000561a07e94fcf clang_main(int, char**, llvm::ToolContext const&) (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0xb65fcf)
#30 0x0000561a07de4163 main (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0xab5163)
#31 0x00007f535963fd90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#32 0x00007f535963fe40 call_init ./csu/../csu/libc-start.c:128:20
#33 0x00007f535963fe40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#34 0x0000561a07e8f945 _start (/space/pvelesko/install/llvm/17.0/static/bin/clang+++0xb60945)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 17.0.0 (https://github.com/CHIP-SPV/llvm-project.git f11f439e3555a82754daa98dc1679ee07dc00403)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /space/pvelesko/install/llvm/17.0/static/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/CHIPBackend-43b693.cpp
clang++: note: diagnostic msg: /tmp/CHIPBackend-43b693.sh
clang++: note: diagnostic msg: