Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
349 Discussions

dpcpp SIGSEGV in llvm::SelectionDAG::getTargetExternalSymbol

vzecca
Beginner
396 Views

dpcpp dpcpperr4.c -w
PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -sycl-std=2020 -fsycl-unnamed-lambda -include /tmp/dpcpperr4-header-c27cff.h -dependency-filter /tmp/dpcpperr4-header-c27cff.h -fsycl-is-host -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name dpcpperr4.c -mrelocation-model static -fveclib=SVML -mframe-pointer=none -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -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 -munwind-tables -target-cpu x86-64 -mllvm -x86-enable-unaligned-vector-move=true -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/home/vitti/f95/cc -resource-dir /opt/intel/oneapi/compiler/2021.3.0/linux/lib/clang/13.0.0 -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/bin/../include/sycl -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/bin/../include -I/opt/intel/oneapi/vpl/2021.4.0/include -I/opt/intel/oneapi/tbb/2021.3.0/env/../include -I/opt/intel/oneapi/mpi/2021.3.0//include -I/opt/intel/oneapi/mkl/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/ippcp/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/dpl/2021.4.0/linux/include -I/opt/intel/oneapi/dpcpp-ct/2021.3.0/include -I/opt/intel/oneapi/dnnl/2021.3.0/cpu_dpcpp_gpu_dpcpp/lib -I/opt/intel/oneapi/dev-utilities/2021.3.0/include -I/opt/intel/oneapi/dal/2021.3.0/include -I/opt/intel/oneapi/compiler/2021.3.0/linux/include -I/opt/intel/oneapi/ccl/2021.3.0/include/cpu_gpu_dpcpp -I/opt/intel/oneapi/vpl/2021.4.0/include -I/opt/intel/oneapi/tbb/2021.3.0/env/../include -I/opt/intel/oneapi/mpi/2021.3.0//include -I/opt/intel/oneapi/mkl/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/ippcp/2021.3.0/include -I/opt/intel/oneapi/ipp/2021.3.0/include -I/opt/intel/oneapi/dpl/2021.4.0/linux/include -I/opt/intel/oneapi/dpcpp-ct/2021.3.0/include -I/opt/intel/oneapi/dnnl/2021.3.0/cpu_dpcpp_gpu_dpcpp/lib -I/opt/intel/oneapi/dev-utilities/2021.3.0/include -I/opt/intel/oneapi/dal/2021.3.0/include -I/opt/intel/oneapi/compiler/2021.3.0/linux/include -I/opt/intel/oneapi/ccl/2021.3.0/include/cpu_gpu_dpcpp -cxx-isystem /opt/intel/oneapi/clck/2021.3.0/include -cxx-isystem /opt/intel/oneapi/clck/2021.3.0/include -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/bin/../compiler/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/lib/clang/13.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/intel/oneapi/compiler/2021.3.0/linux/lib/clang/13.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -w -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/home/vitti/f95/cc -ferror-limit 19 -fheinous-gnu-extensions -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -fintel-compatibility -mllvm -disable-hir-generate-mkl-call -mllvm -intel-libirc-allowed -mllvm -loopopt=0 -mllvm -enable-lv -o /tmp/dpcpperr4-fc7217.o -x c++ dpcpperr4.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'dpcpperr4.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function ''
#0 0x000055e20737d68a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f68a)
#1 0x000055e20737d430 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f430)
#2 0x000055e20737d914 SignalHandler(int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f914)
#3 0x000014e113d4ba20 (/usr/lib64/libpthread.so.0+0x13a20)
#4 0x000014e113c06a7a __strlen_sse2 (/usr/lib64/libc.so.6+0x9fa7a)
#5 0x000055e206187c78 llvm::SelectionDAG::getTargetExternalSymbol(char const*, llvm::EVT, unsigned int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3199c78)
#6 0x000055e206186157 llvm::X86TargetLowering::LowerGlobalOrExternal(llvm::SDValue, llvm::SelectionDAG&, bool, bool) const (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3198157)
#7 0x000055e206181fc2 llvm::X86TargetLowering::LowerCall(llvm::TargetLowering::CallLoweringInfo&, llvm::SmallVectorImpl<llvm::SDValue>&) const (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3193fc2)
#8 0x000055e205e41b5c llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2e53b5c)
#9 0x000055e2081a6c64 llvm::DAGTypeLegalizer::ExpandIntRes_XMULO(llvm::SDNode*, llvm::SDValue&, llvm::SDValue&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x51b8c64)
#10 0x000055e2069ef52c llvm::DAGTypeLegalizer::ExpandIntegerResult(llvm::SDNode*, unsigned int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3a0152c)
#11 0x000055e205dd4140 llvm::DAGTypeLegalizer::run() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2de6140)
#12 0x000055e205dd16b4 llvm::SelectionDAG::LegalizeTypes() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2de36b4)
#13 0x000055e205dca137 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2ddc137)
#14 0x000055e205dc6f23 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2dd8f23)
#15 0x000055e205dbf2a7 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2dd12a7)
#16 0x000055e205dbec55 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2dd0c55)
#17 0x000055e205c056c9 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2c176c9)
#18 0x000055e20553f2d7 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x25512d7)
#19 0x000055e20553f11f llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x255111f)
#20 0x000055e20656fd3a llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3581d3a)
#21 0x000055e20656a114 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x357c114)
#22 0x000055e206569224 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x357b224)
#23 0x000055e2066c3353 clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x36d5353)
#24 0x000055e2066c2507 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x36d4507)
#25 0x000055e205544f4e clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2556f4e)
#26 0x000055e2055444b5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x25564b5)
#27 0x000055e206801427 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3813427)
#28 0x000055e2067fd676 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x380f676)
#29 0x000055e2068a79e8 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x38b99e8)
#30 0x000055e206499ad6 main (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x34abad6)
#31 0x000014e113b8eb75 (/usr/lib64/libc.so.6+0x27b75)
#32 0x000055e20956ac78 _start (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x657cc78)
dpcpp: error: unable to execute command: Segmentation fault (core dumped)
dpcpp: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2021.3.0 (2021.3.0.20210619)
Target: x86_64-unknown-linux-gnu
Thread model: posix

0 Kudos
3 Replies
RahulV_intel
Moderator
380 Views

Hi,


Thanks for reporting this bug. The issue is reproducible at our end. We are working on it internally and will get to you soon.


Regards,

Rahul


Viet_H_Intel
Moderator
359 Views

I've escalated this case to our Developer.

Thanks,


Viet_H_Intel
Moderator
145 Views

This issue has been fixed. Please upgrade your compiler to this version.

I am going to close this thread.

$ dpcpp t2.cpp -w

$ dpcpp -v

Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)



Reply