CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
184 stars 29 forks source link

Clang crashes during compilation #716

Closed pvelesko closed 8 months ago

pvelesko commented 9 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: /opt/install/llvm/15.0/bin/clang++ -DCHIP_EXPORTS -DHAVE_LEVEL0 -DHAVE_OPENCL -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE -D__HIP_PLATFORM_SPIRV__= -I/opt/actions-runner/_work/chipStar/chipStar/bitcode -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/include/cuspv -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/src -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/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 -g -fPIC -Wno-format-extra-args -mf16c -Wall -gdwarf-4 -O1 -std=c++17 -MD -MT CMakeFiles/CHIP.dir/src/backend/Level0/CHIPBackendLevel0.cc.o -MF CMakeFiles/CHIP.dir/src/backend/Level0/CHIPBackendLevel0.cc.o.d -o CMakeFiles/CHIP.dir/src/backend/Level0/CHIPBackendLevel0.cc.o -c /opt/actions-runner/_work/chipStar/chipStar/src/backend/Level0/CHIPBackendLevel0.cc
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/opt/actions-runner/_work/chipStar/chipStar/src/backend/Level0/CHIPBackendLevel0.cc'.
4.  Running pass 'Debug Variable Analysis' on function '@_ZN6spdlog6logger3logIJmmPKvEEEvNS_10source_locENS_5level10level_enumEPKcDpRKT_'
 #0 0x00005[606](https://github.com/CHIP-SPV/chipStar/actions/runs/7004165847/job/19082314965#step:3:607)fcfa4a48 PrintStackTraceSignalHandler(void*) Signals.cpp:0:0
 #1 0x00005606fcfa25bc llvm::sys::CleanupOnSignal(unsigned long) (/opt/install/llvm/15.0/bin/clang+++0x20225bc)
 #2 0x00005606fcee96c8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #3 0x00007fac40094520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00005606fc550a39 llvm::LexicalScopes::getOrCreateAbstractScope(llvm::DILocalScope const*) (/opt/install/llvm/15.0/bin/clang+++0x15d0a39)
 #5 0x00005606fc5517c3 llvm::LexicalScopes::getOrCreateInlinedScope(llvm::DILocalScope const*, llvm::DILocation const*) (/opt/install/llvm/15.0/bin/clang+++0x15d17c3)
 #6 0x00005606fc55290a llvm::LexicalScopes::extractLexicalScopes(llvm::SmallVectorImpl<std::pair<llvm::MachineInstr const*, llvm::MachineInstr const*>>&, llvm::DenseMap<llvm::MachineInstr const*, llvm::LexicalScope*, llvm::DenseMapInfo<llvm::MachineInstr const*, void>, llvm::detail::DenseMapPair<llvm::MachineInstr const*, llvm::LexicalScope*>>&) (/opt/install/llvm/15.0/bin/clang+++0x15d290a)
 #7 0x00005606fc5537f4 llvm::LexicalScopes::initialize(llvm::MachineFunction const&) (/opt/install/llvm/15.0/bin/clang+++0x15d37f4)
 #8 0x00005606fc564388 (anonymous namespace)::LDVImpl::runOnMachineFunction(llvm::MachineFunction&, bool) LiveDebugVariables.cpp:0:0
 #9 0x00005606fc31b3a3 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#10 0x00005606fc81be80 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/install/llvm/15.0/bin/clang+++0x189be80)
#11 0x00005606fc81bfb4 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/install/llvm/15.0/bin/clang+++0x189bfb4)
#12 0x00005606fc81c94d llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/install/llvm/15.0/bin/clang+++0x189c94d)
#13 0x00005606fd3163e9 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>>) (/opt/install/llvm/15.0/bin/clang+++0x23963e9)
#14 0x00005606fe0ac59e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/install/llvm/15.0/bin/clang+++0x312c59e)
#15 0x00005606fec7c6e9 clang::ParseAST(clang::Sema&, bool, bool) (/opt/install/llvm/15.0/bin/clang+++0x3cfc6e9)
#16 0x00005606fda49ca9 clang::FrontendAction::Execute() (/opt/install/llvm/15.0/bin/clang+++0x2ac9ca9)
#17 0x00005606fd9dafb1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/install/llvm/15.0/bin/clang+++0x2a5afb1)
#18 0x00005606fdb0338b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/install/llvm/15.0/bin/clang+++0x2b8338b)
#19 0x00005606fbbe07fd cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/install/llvm/15.0/bin/clang+++0xc[607](https://github.com/CHIP-SPV/chipStar/actions/runs/7004165847/job/19082314965#step:3:608)fd)
#20 0x00005606fbbda033 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#21 0x00005606fd83faa9 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#22 0x00005606fcee97d7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/install/llvm/15.0/bin/clang+++0x1f697d7)
#23 0x00005606fd83fe4c clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#24 0x00005606fd80cda9 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/install/llvm/15.0/bin/clang+++0x288cda9)
#25 0x00005606fd80d80d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/opt/install/llvm/15.0/bin/clang+++0x288d80d)
#26 0x00005606fd81d16c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/opt/install/llvm/15.0/bin/clang+++0x289d16c)
#27 0x00005606fbbde6d7 clang_main(int, char**) (/opt/install/llvm/15.0/bin/clang+++0xc5e6d7)
#28 0x00007fac4007bd90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#29 0x00007fac4007be40 call_init ./csu/../csu/libc-start.c:128:20
#30 0x00007fac4007be40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#31 0x00005606fbbd9765 _start (/opt/install/llvm/15.0/bin/clang+++0xc59765)
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 15.0.6 (git@github.com:CHIP-SPV/llvm-project.git 31233417513505db770574f3857f090cdcea3828)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/15.0/bin
clang-15: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/CHIPBackendLevel0-d5ff1a.cpp
clang-15: note: diagnostic msg: /tmp/CHIPBackendLevel0-d5ff1a.sh
clang-15: note: diagnostic msg:
Clang crash:

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: /opt/install/llvm/17.0/bin/clang-17 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple spirv64 -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name standalone_main.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -tune-cpu generic -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -resource-dir /opt/install/llvm/17.0/lib/clang/17 -dependency-file CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o.d -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -sys-header-deps -canonical-system-headers -internal-isystem /opt/install/llvm/17.0/lib/clang/17 -idirafter /opt/actions-runner/_work/chipStar/chipStar/build/include -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I //opt/actions-runner/_work/chipStar/chipStar/build/include -D KERNELS_PATH=/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/ -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -D __HIP_PLATFORM_SPIRV__= -I /opt/actions-runner/_work/chipStar/chipStar/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/include -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/17.0/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/install/llvm/17.0/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/install/llvm/17.0/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -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 -Wno-format-extra-args -Wall -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcuda-include-gpubinary /tmp/standalone_main-86b3e1.hipfb -cuid=d7b952cca3ca0fd7 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/standalone_main.cc
1.  <eof> parser at end of file
2.  Optimizer
#0 0x00005609bdd9dcb2 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/install/llvm/17.0/bin/clang-17+0x1dcecb2)
#1 0x00005609bdd9b3cb SignalHandler(int) Signals.cpp:0:0
#2 0x00007ff74b04b520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x00005609cfd8d0e8 
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 17.0.0 (git@github.com:CHIP-SPV/llvm-project.git 61c6190747f4df6e60eb93b372c4310d779e2886)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/17.0/bin
clang++: note: diagnostic msg: Error generating preprocessed source(s).

make[3]: *** [catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/build.make:76: catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o] Error 1
failed to execute:/opt/install/llvm/17.0/bin/clang++ -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I//opt/actions-runner/_work/chipStar/chipStar/build/include -DKERNELS_PATH="/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/" -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/lib/../include/level_zero -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -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 --std=c++17 -g -fPIC -Wno-format-extra-args -mf16c -Wall -gdwarf-4 -O1 -std=c++17 -MD -c -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/standalone_main.cc -D__HIP_PLATFORM_SPIRV__= --offload=spirv64 -nohipwrapperinc --hip-path=/opt/actions-runner/_work/chipStar/chipStar/build --target=x86_64-unknown-linux-gnu   -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/build/include -o CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -MF CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o.d
make[2]: *** [CMakeFiles/Makefile2:20330: catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:5679: catch/CMakeFiles/build_tests.dir/rule] Error 2
make: *** [Makefile:1408: build_tests] Error 2
Observed the clang crash here as well:

[  0%] Built target KERNELS
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: /opt/install/llvm/15.0/bin/clang-15 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple spirv64 -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name hip_test_context.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -resource-dir /opt/install/llvm/15.0/lib/clang/15.0.6 -dependency-file CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o.d -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -sys-header-deps -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6 -idirafter /opt/actions-runner/_work/chipStar/chipStar/build/include -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I //opt/actions-runner/_work/chipStar/chipStar/build/include -D KERNELS_PATH=/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/ -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -D NDEBUG -D __HIP_PLATFORM_SPIRV__= -I /opt/actions-runner/_work/chipStar/chipStar/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/include -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/15.0/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -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 -Wno-format-extra-args -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -no-opaque-pointers -fcuda-include-gpubinary /tmp/hip_test_context-1ab052.hipfb -cuid=46f0c2c59e176fc7 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/hip_test_context.cc
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/hip_test_context.cc'.
4.  Running pass 'Block Frequency Analysis' on function '@_ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE23_M_insert_subexpr_beginEv'
clang-15: error: unable to execute command: Segmentation fault (core dumped)
clang-15: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 15.0.6 (git@github.com:CHIP-SPV/llvm-project.git 31233417513505db770574f3857f090cdcea3828)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/15.0/bin
clang-15: note: diagnostic msg: Error generating preprocessed source(s).

failed to execute:/opt/install/llvm/15.0/bin/clang++ -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I//opt/actions-runner/_work/chipStar/chipStar/build/include -DKERNELS_PATH="/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/" -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/lib/../include/level_zero -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -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 --std=c++17 -O3 -DNDEBUG -fPIC -Wno-format-extra-args -mf16c -std=c++17 -MD -c -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/hip_test_context.cc -D__HIP_PLATFORM_SPIRV__= --offload=spirv64 -Xclang -no-opaque-pointers -nohipwrapperinc --hip-path=/opt/actions-runner/_work/chipStar/chipStar/build --target=x86_64-unknown-linux-gnu   -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/build/include -o CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -MF CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o.d
make[3]: *** [catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/build.make:90: catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o] Error 1
[ 63%] Building CXX object CMakeFiles/CHIP.dir/src/backend/Level0/CHIPBackendLevel0.cc.o
/opt/actions-runner/_work/chipStar/chipStar/src/CHIPBindings.cc:3752:10: warning: unused variable 'dstSlicePitch' [-Wunused-variable]
  size_t dstSlicePitch = DstPitch * YSize;
         ^
/opt/actions-runner/_work/chipStar/chipStar/src/CHIPBindings.cc:3666:10: warning: variable 'Width' set but not used [-Wunused-but-set-variable]
  size_t Width;
         ^
/opt/actions-runner/_work/chipStar/chipStar/src/CHIPBindings.cc:3751:10: warning: unused variable 'srcSlicePitch' [-Wunused-variable]
  size_t srcSlicePitch = SrcPitch * YSize;
         ^
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: /opt/install/llvm/15.0/bin/clang++ -DCHIP_EXPORTS -DHAVE_LEVEL0 -DHAVE_OPENCL -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE -D__HIP_PLATFORM_SPIRV__= -I/opt/actions-runner/_work/chipStar/chipStar/bitcode -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/include/cuspv -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/src -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/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 -g -fPIC -Wno-format-extra-args -mf16c -Wall -gdwarf-4 -O1 -std=c++17 -MD -MT CMakeFiles/CHIP.dir/src/CHIPBindings.cc.o -MF CMakeFiles/CHIP.dir/src/CHIPBindings.cc.o.d -o CMakeFiles/CHIP.dir/src/CHIPBindings.cc.o -c /opt/actions-runner/_work/chipStar/chipStar/src/CHIPBindings.cc
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/opt/actions-runner/_work/chipStar/chipStar/src/CHIPBindings.cc'.
4.  Running pass 'Block Frequency Analysis' on function '@hipDriverGetVersion'
Segmentation fault (core dumped)
pjaaskel commented 9 months ago

Can you add more info? Crashes reliably with the input program or randomly with any input program, only with LLVM 15, etc?

pvelesko commented 9 months ago

This is all the info I have so far - I attached the crashes from other PRs here. Seems to affect both 15 and 17. Seems random.

pvelesko commented 9 months ago

Another crash just now - seems to happen pretty frequently while compiling main for unit tests.

[  0%] Built target KERNELS
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: /opt/install/llvm/16.0/bin/clang-16 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple spirv64 -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name hip_test_context.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -resource-dir /opt/install/llvm/16.0/lib/clang/16 -dependency-file CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o.d -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -sys-header-deps -internal-isystem /opt/install/llvm/16.0/lib/clang/16 -idirafter /opt/actions-runner/_work/chipStar/chipStar/build/include -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I //opt/actions-runner/_work/chipStar/chipStar/build/include -D KERNELS_PATH=/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/ -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -D __HIP_PLATFORM_SPIRV__= -I /opt/actions-runner/_work/chipStar/chipStar/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/include -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/16.0/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/install/llvm/16.0/lib/clang/16/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/install/llvm/16.0/lib/clang/16/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O1 -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 -Wno-format-extra-args -Wall -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcuda-include-gpubinary /tmp/hip_test_context-ad83ab.hipfb -cuid=32847623a90cabc1 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/hip_test_context.cc
1.  <eof> parser at end of file
2.  Optimizer
#0 0x000055a3ff6b1e22 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/install/llvm/16.0/bin/clang-16+0x218ee22)
#1 0x000055a3ff6af53b SignalHandler(int) Signals.cpp:0:0
#2 0x00007f74cec5a520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 16.0.5 (git@github.com:CHIP-SPV/llvm-project.git 6161a08fd1688e57b3bd1c09f50b664673e9e50a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/16.0/bin
clang-16: note: diagnostic msg: Error generating preprocessed source(s).

failed to execute:/opt/install/llvm/16.0/bin/clang++ -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I//opt/actions-runner/_work/chipStar/chipStar/build/include -DKERNELS_PATH="/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/" -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/lib/../include/level_zero -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -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 --std=c++17 -g -fPIC -Wno-format-extra-args -mf16c -Wall -gdwarf-4 -O1 -std=c++17 -MD -c -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/hip_test_context.cc -D__HIP_PLATFORM_SPIRV__= --offload=spirv64 -nohipwrapperinc --hip-path=/opt/actions-runner/_work/chipStar/chipStar/build --target=x86_64-unknown-linux-gnu   -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/build/include -o CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o -MF CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o.d
make[3]: *** [catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/build.make:90: catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/hip_test_context.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
pjaaskel commented 9 months ago

OK. It's difficult to see how this could be a chipStar issue. My first hunch is a system issue of some kind.

pvelesko commented 9 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: /opt/install/llvm/15.0/bin/clang-15 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple spirv64 -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name standalone_main.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -resource-dir /opt/install/llvm/15.0/lib/clang/15.0.6 -dependency-file CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o.d -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -sys-header-deps -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6 -idirafter /opt/actions-runner/_work/chipStar/chipStar/build/include -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I //opt/actions-runner/_work/chipStar/chipStar/build/include -D KERNELS_PATH=/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/ -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -D NDEBUG -D __HIP_PLATFORM_SPIRV__= -I /opt/actions-runner/_work/chipStar/chipStar/include -I /opt/actions-runner/_work/chipStar/chipStar/HIP/include -I /opt/actions-runner/_work/chipStar/chipStar/build/include -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/15.0/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/install/llvm/15.0/lib/clang/15.0.6/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -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 -Wno-format-extra-args -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/catch/catch_tests/hipTestMain -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -no-opaque-pointers -fcuda-include-gpubinary /tmp/standalone_main-ffeb92.hipfb -cuid=49dc5e3e9461b7a9 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/standalone_main.cc
1.  <eof> parser at end of file
2.  Optimizer
clang-15: error: unable to execute command: Segmentation fault (core dumped)
clang-15: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 15.0.6 (git@github.com:CHIP-SPV/llvm-project.git 31233417513505db770574f3857f090cdcea3828)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/15.0/bin
clang-15: note: diagnostic msg: Error generating preprocessed source(s).

failed to execute:/opt/install/llvm/15.0/bin/clang++ -include /opt/actions-runner/_work/chipStar/chipStar/include/hip/spirv_fixups.h -I//opt/actions-runner/_work/chipStar/chipStar/build/include -DKERNELS_PATH="/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/kernels/" -I/opt/actions-runner/_work/chipStar/chipStar/CHIP -I/opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I/usr/local/lib/../include/level_zero -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/Catch2 -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/./kernels -I/opt/actions-runner/_work/chipStar/chipStar/build/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/external/picojson -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 --std=c++17 -O3 -DNDEBUG -fPIC -Wno-format-extra-args -mf16c -std=c++17 -MD -c -x hip /opt/actions-runner/_work/chipStar/chipStar/HIP/tests/catch/hipTestMain/standalone_main.cc -D__HIP_PLATFORM_SPIRV__= --offload=spirv64 -Xclang -no-opaque-pointers -nohipwrapperinc --hip-path=/opt/actions-runner/_work/chipStar/chipStar/build --target=x86_64-unknown-linux-gnu   -I/opt/actions-runner/_work/chipStar/chipStar/include -I/opt/actions-runner/_work/chipStar/chipStar/HIP/include -I/opt/actions-runner/_work/chipStar/chipStar/build/include -o CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -MT catch/catch_tests/hipTestMain/CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o -MF CMakeFiles/Main_Object_Standalone.dir/standalone_main.cc.o.d
pvelesko commented 9 months ago
PLEASE append the compiler options "-save-temps -v", rebuild the application to to get the full command which is failing and submit a bug report to https://software.intel.com/en-us/support/priority-support which includes the failing command, input files for the command and the crash backtrace (if any).
Stack dump:
0.  Program arguments: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang -cc1 -triple x86_64-unknown-linux-gnu -sycl-std=2020 -fsycl-unique-prefix=7511f39f653e5d06 -include /tmp/icpx-f22428/sycl_chip_interop-header-9c7456.h -dependency-filter /tmp/icpx-f22428/sycl_chip_interop-header-9c7456.h -fsycl-enable-int-header-diags -fsycl-is-host -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name sycl_chip_interop.cpp -fsycl-use-main-file-name -full-main-file-name /opt/actions-runner/_work/chipStar/chipStar/samples/sycl_hip_interop/sycl_hip_interop_driver/sycl_chip_interop.cpp -mrelocation-model static -fveclib=SVML -mframe-pointer=none -menable-no-infs -menable-no-nans -fapprox-func -funsafe-math-optimizations -fno-signed-zeros -mreassociate -freciprocal-math -fdenormal-fp-math=preserve-sign,preserve-sign -ffp-contract=fast -fno-rounding-math -ffast-math -ffinite-math-only -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -mllvm -x86-enable-unaligned-vector-move=true -tune-cpu generic --dependent-lib=sycl-devicelib-host -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/samples/sycl_hip_interop/sycl_hip_interop_driver -resource-dir /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17 -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../include/sycl -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../include -iquote /opt/actions-runner/_work/chipStar/chipStar/samples/sycl_hip_interop/sycl_hip_interop_driver -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/intel/oneapi/mkl/2023.2.0/include -D NDEBUG -D USM -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/15.0/include -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../compiler/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-format-extra-args -Wno-deprecated-declarations -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/samples/sycl_hip_interop/sycl_hip_interop_driver -ferror-limit 19 -fheinous-gnu-extensions -fgpu-rdc -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -mllvm -enable-gvn-hoist -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -fintel-compatibility -fintel-libirc-allowed -mllvm -disable-hir-generate-mkl-call -mllvm -sycl-host -mllvm -loopopt=1 -floopopt-pipeline=light -mllvm -intel-abi-compatible=true -o /tmp/icpx-f22428/sycl_chip_interop-0d25b2.o -x c++ /tmp/icpx-f22428/sycl_chip_interop-2beba4.cpp
1.  <eof> parser at end of file
2.  Optimizer
[100%] Linking CXX executable sycl_chip_interop
 #0 0x000055c05ec43353 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4f85353)
 #1 0x000055c05ec417d0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4f837d0)
 #2 0x000055c05ec4399f SignalHandler(int) Signals.cpp:0:0
 #3 0x00007fb31184f520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x000055c05e7aad37 llvm::User::operator new(unsigned long, unsigned int) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4aecd37)
 #5 0x000055c05e07d7d8 llvm::DomTreeUpdater::validateDeleteBB(llvm::BasicBlock*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x43bf7d8)
 #6 0x000055c05e07d6bf llvm::DomTreeUpdater::deleteBB(llvm::BasicBlock*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x43bf6bf)
 #7 0x000055c0601a66b8 llvm::SCCPPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x64e86b8)
 #8 0x000055c05ffa651d llvm::detail::PassModel<llvm::Function, llvm::SCCPPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassBuilder.cpp:0:0
 #9 0x000055c05e7913a0 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad33a0)
#10 0x000055c05dcd543d 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>&) NVPTXTargetMachine.cpp:0:0
#11 0x000055c05e03d498 llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437f498)
#12 0x000055c05dd9448d 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&) AMDGPUTargetMachine.cpp:0:0
#13 0x000055c05e038945 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&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437a945)
#14 0x000055c05ff860ed 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&) PassBuilder.cpp:0:0
#15 0x000055c05e03ae9d llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437ce9d)
#16 0x000055c05ffb4fcd 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&) PassBuilder.cpp:0:0
#17 0x000055c05e039f4d llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437bf4d)
#18 0x000055c05ff862dd llvm::detail::PassModel<llvm::Module, llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassBuilder.cpp:0:0
#19 0x000055c05e7902c0 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad22c0)
#20 0x000055c05ffe720d llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x632920d)
#21 0x000055c05ff9937d llvm::detail::PassModel<llvm::Module, llvm::ModuleInlinerWrapperPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassBuilder.cpp:0:0
#22 0x000055c05e7902c0 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad22c0)
#23 0x000055c05f66add6 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&) BackendUtil.cpp:0:0
#24 0x000055c05f665306 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::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x59a7306)
#25 0x000055c05f9f1cfc clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) CodeGenAction.cpp:0:0
#26 0x000055c060b5482b clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x6e9682b)
#27 0x000055c05f9f08fa clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5d328fa)
#28 0x000055c05f960efa clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5ca2efa)
#29 0x000055c05f8ed875 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5c2f875)
#30 0x000055c05f9ed4b1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5d2f4b1)
#31 0x000055c05d9a9cdd cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3cebcdd)
#32 0x000055c05d9a5c30 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#33 0x000055c05d9a55c2 clang_main(int, char**, llvm::ToolContext const&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3ce75c2)
#34 0x000055c05d9b2b4e main (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3cf4b4e)
#35 0x00007fb311836d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#36 0x00007fb311836e40 call_init ./csu/../csu/libc-start.c:128:20
#37 0x00007fb311836e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#38 0x000055c05d9a2e29 _start (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3ce4e29)
[100%] Built target sycl_chip_interop
icpx: error: unable to execute command: Segmentation fault (core dumped)
icpx: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2023.2.0 (2023.2.0.20230721)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm
Configuration file: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../bin/icpx.cfg
icpx: note: diagnostic msg: Error generating preprocessed source(s).
pvelesko commented 9 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: /opt/install/llvm/16.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 -g -fPIE -Wno-format-extra-args -mf16c -Wall -gdwarf-4 -O1 -std=c++17 -MD -MT HIPCC/CMakeFiles/hipconfig.bin.dir/src/hipBin.cpp.o -MF CMakeFiles/hipconfig.bin.dir/src/hipBin.cpp.o.d -o CMakeFiles/hipconfig.bin.dir/src/hipBin.cpp.o -c /opt/actions-runner/_work/chipStar/chipStar/HIPCC/src/hipBin.cpp
1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module '/opt/actions-runner/_work/chipStar/chipStar/HIPCC/src/hipBin.cpp'.
4.  Running pass 'CodeGen Prepare' on function '@_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_'
#0 0x000055ab4dfaae22 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/install/llvm/16.0/bin/clang+++0x218ee22)
#1 0x000055ab4dfa8b8c llvm::sys::CleanupOnSignal(unsigned long) (/opt/install/llvm/16.0/bin/clang+++0x218cb8c)
#2 0x000055ab4df024f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f586f160520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000055ab58dceb82 
clang-16: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 16.0.5 (git@github.com:CHIP-SPV/llvm-project.git 6161a08fd1688e57b3bd1c09f50b664673e9e50a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/install/llvm/16.0/bin
clang-16: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-16: note: diagnostic msg: /tmp/hipBin-ebae2f.cpp
clang-16: note: diagnostic msg: /tmp/hipBin-ebae2f.sh
clang-16: note: diagnostic msg: 

********************
make[2]: *** [HIPCC/CMakeFiles/hipconfig.bin.dir/build.make:76: HIPCC/CMakeFiles/hipconfig.bin.dir/src/hipBin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4381: HIPCC/CMakeFiles/hipconfig.bin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
9 warnings generated.
[ 63%] Linking CXX executable ../bin/hipcc.bin
[ 63%] Built target hipcc.bin
linehill commented 9 months ago

I see there are incomplete, cut off stack traces in the crash reports:

#0 0x000055a3ff6b1e22 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/install/llvm/16.0/bin/clang-16+0x218ee22)
#1 0x000055a3ff6af53b SignalHandler(int) Signals.cpp:0:0
#2 0x00007f74cec5a520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
clang-16: error: unable to execute command: Segmentation fault (core dumped)
#2 0x000055ab4df024f8 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f586f160520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000055ab58dceb82 
clang-16: error: clang frontend command failed with exit code 139 (use -v to see invocation)

Can you retrieve the full stack trace of the latest one and post it here? Thanks.

pvelesko commented 9 months ago
PLEASE append the compiler options "-save-temps -v", rebuild the application to to get the full command which is failing and submit a bug report to https://software.intel.com/en-us/support/priority-support which includes the failing command, input files for the command and the crash backtrace (if any).
Stack dump:
0.  Program arguments: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang -cc1 -triple x86_64-unknown-linux-gnu -sycl-std=2020 -fsycl-unique-prefix=7d291410fd90064a -include /tmp/icpx-f49325/sycl_chip_interop-header-d64256.h -dependency-filter /tmp/icpx-f49325/sycl_chip_interop-header-d64256.h -fsycl-enable-int-header-diags -fsycl-is-host -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name sycl_chip_interop.cpp -fsycl-use-main-file-name -full-main-file-name /opt/actions-runner/_work/chipStar/chipStar/samples/sycl_hip_interop/sycl_hip_interop_driver/sycl_chip_interop.cpp -mrelocation-model static -fveclib=SVML -mframe-pointer=none -menable-no-infs -menable-no-nans -fapprox-func -funsafe-math-optimizations -fno-signed-zeros -mreassociate -freciprocal-math -fdenormal-fp-math=preserve-sign,preserve-sign -ffp-contract=fast -fno-rounding-math -ffast-math -ffinite-math-only -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -target-feature +f16c -mllvm -x86-enable-unaligned-vector-move=true -tune-cpu generic --dependent-lib=sycl-devicelib-host -debugger-tuning=gdb -fcoverage-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/samples/sycl_hip_interop/sycl_hip_interop_driver -resource-dir /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17 -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../include/sycl -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../include -iquote /opt/actions-runner/_work/chipStar/chipStar/samples/sycl_hip_interop/sycl_hip_interop_driver -I /opt/actions-runner/_work/chipStar/chipStar/CHIP -I /opt/actions-runner/_work/chipStar/chipStar/PUBLIC -I /usr/local/lib/../include/level_zero -I /opt/intel/oneapi/mkl/2023.2.0/include -D NDEBUG -I/home/pvelesko/install/intel/opencl/2023.10.02/include -I/opt/install/llvm/17.0/include -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../compiler/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/intel/oneapi/compiler/2023.2.1/linux/lib/clang/17/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-format-extra-args -Wno-deprecated-declarations -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/opt/actions-runner/_work/chipStar/chipStar/build/samples/sycl_hip_interop/sycl_hip_interop_driver -ferror-limit 19 -fheinous-gnu-extensions -fgpu-rdc -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -mllvm -enable-gvn-hoist -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -fintel-compatibility -fintel-libirc-allowed -mllvm -disable-hir-generate-mkl-call -mllvm -sycl-host -mllvm -loopopt=1 -floopopt-pipeline=light -mllvm -intel-abi-compatible=true -o /tmp/icpx-f49325/sycl_chip_interop-25d2b1.o -x c++ /tmp/icpx-f49325/sycl_chip_interop-4be5cd.cpp
1.  <eof> parser at end of file
2.  Optimizer
 #0 0x000055b3d80b0353 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4f85353)
 #1 0x000055b3d80ae7d0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4f837d0)
 #2 0x000055b3d80b099f SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f2c46abf520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x000055b3db18aa56 __intel_avx_rep_memcpy (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x805fa56)
 #5 0x000055b3d747a40b llvm::BlockFrequencyInfoImpl<llvm::BasicBlock>::initializeRPOT() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x434f40b)
 #6 0x000055b3d7476cf4 llvm::BlockFrequencyInfoImpl<llvm::BasicBlock>::calculate(llvm::Function const&, llvm::BranchProbabilityInfo const&, llvm::LoopInfo const&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x434bcf4)
 #7 0x000055b3d7476614 llvm::BlockFrequencyInfo::calculate(llvm::Function const&, llvm::BranchProbabilityInfo const&, llvm::LoopInfo const&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x434b614)
 #8 0x000055b3d7478593 llvm::BlockFrequencyAnalysis::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x434d593)
 #9 0x000055b3d93e81bb llvm::detail::AnalysisPassModel<llvm::Function, llvm::BlockFrequencyAnalysis, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>::Invalidator>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassBuilder.cpp:0:0
#10 0x000055b3d7c02c02 llvm::AnalysisManager<llvm::Function>::getResultImpl(llvm::AnalysisKey*, llvm::Function&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad7c02)
#11 0x000055b3d94518f7 llvm::InlinerPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x63268f7)
#12 0x000055b3d940ad3d llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::InlinerPass, 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&) PassBuilder.cpp:0:0
#13 0x000055b3d74a5945 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&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437a945)
#14 0x000055b3d93f30ed 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&) PassBuilder.cpp:0:0
#15 0x000055b3d74a7e9d llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437ce9d)
#16 0x000055b3d9421fcd 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&) PassBuilder.cpp:0:0
#17 0x000055b3d74a6f4d llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x437bf4d)
#18 0x000055b3d93f32dd llvm::detail::PassModel<llvm::Module, llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassBuilder.cpp:0:0
#19 0x000055b3d7bfd2c0 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad22c0)
#20 0x000055b3d945420d llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x632920d)
#21 0x000055b3d940637d llvm::detail::PassModel<llvm::Module, llvm::ModuleInlinerWrapperPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) PassBuilder.cpp:0:0
#22 0x000055b3d7bfd2c0 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x4ad22c0)
#23 0x000055b3d8ad7dd6 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&) BackendUtil.cpp:0:0
#24 0x000055b3d8ad2306 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::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x59a7306)
#25 0x000055b3d8e5ecfc clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) CodeGenAction.cpp:0:0
#26 0x000055b3d9fc182b clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x6e9682b)
#27 0x000055b3d8e5d8fa clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5d328fa)
#28 0x000055b3d8dcdefa clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5ca2efa)
#29 0x000055b3d8d5a875 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5c2f875)
#30 0x000055b3d8e5a4b1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x5d2f4b1)
#31 0x000055b3d6e16cdd cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3cebcdd)
#32 0x000055b3d6e12c30 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#33 0x000055b3d6e125c2 clang_main(int, char**, llvm::ToolContext const&) (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3ce75c2)
#34 0x000055b3d6e1fb4e main (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3cf4b4e)
#35 0x00007f2c46aa6d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#36 0x00007f2c46aa6e40 call_init ./csu/../csu/libc-start.c:128:20
#37 0x00007f2c46aa6e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#38 0x000055b3d6e0fe29 _start (/opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/clang+0x3ce4e29)
icpx: error: unable to execute command: Illegal instruction (core dumped)
icpx: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2023.2.0 (2023.2.0.20230721)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm
Configuration file: /opt/intel/oneapi/compiler/2023.2.1/linux/bin-llvm/../bin/icpx.cfg
[100%] Linking CXX executable sycl_chip_interop_usm
[100%] Built target sycl_chip_interop_usm
icpx: note: diagnostic msg: Error generating preprocessed source(s).
pvelesko commented 8 months ago

moved CI to a new system - no longer seeing this