Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

icpx ICE Segmentation fault

vzecca
Beginner
375 Views

icpx icpxerr7.C
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.1.2/linux/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name icpxerr7.C -mrelocation-model static -fveclib=SVML -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /opt/intel/oneapi/compiler/2021.1.2/linux/lib/clang/12.0.0 -I/opt/intel/oneapi/dpcpp-ct/2021.1.1/include -I/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib -I/opt/intel/oneapi/ccl/2021.1.1/include/cpu_gpu_dpcpp -I/opt/intel/oneapi/vpl/2021.1.1/include -I/opt/intel/oneapi/ipp/2021.1.1/include -I/opt/intel/oneapi/tbb/2021.1.1/env/../include -I/opt/intel/oneapi/ippcp/2021.1.1/include -I/opt/intel/oneapi/dev-utilities/2021.1.1/include -I/opt/intel/oneapi/mkl/latest/include -I/opt/intel/oneapi/mpi/2021.1.1//include -I/opt/intel/oneapi/dal/2021.1.1/include -I/opt/intel/oneapi/dpl/2021.1.2/linux/include -I/opt/intel/oneapi/compiler/2021.1.2/linux/include -cxx-isystem /opt/intel/oneapi/clck/2021.1.1/include -internal-isystem /opt/intel/oneapi/compiler/2021.1.2/linux/bin/../compiler/include -internal-isystem /home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1 -internal-isystem /home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/x86_64-pc-linux-gnu -internal-isystem /home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/backward -internal-isystem /usr/local/include -internal-isystem /opt/intel/oneapi/compiler/2021.1.2/linux/lib/clang/12.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdeprecated-macro -fdebug-compilation-dir /home/vitti/f95/cc -ferror-limit 19 -disable-cpudispatch-ifuncs -fheinous-gnu-extensions -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -fintel-compatibility -mllvm -disable-hir-generate-mkl-call -mllvm -intel-libirc-allowed -mllvm -loopopt=0 -mllvm -enable-lv -o /tmp/icpxerr7-64f016.o -x c++ icpxerr7.C
1. <eof> parser at end of file
2. icpxerr7.C:2:7: LLVM IR generation of declaration 'intu_rvref'
3. icpxerr7.C:2:7: Generating code for declaration 'intu_rvref'
#0 0x000055b99a0af8f7 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17788f7)
#1 0x000055b99a0ae0b0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17770b0)
#2 0x000055b99a0afbc1 SignalHandler(int) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1778bc1)
#3 0x000014800e7b6960 __restore_rt (/usr/lib64/libpthread.so.0+0x13960)
#4 0x000055b99c7ed763 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb6763)
#5 0x000055b99c7ee342 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb7342)
#6 0x000055b99a514adb clang::CodeGen::CodeGenModule::GetAddrOfGlobalTemporary(clang::MaterializeTemporaryExpr const*, clang::Expr const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1bddadb)
#7 0x000055b99a4a4043 (anonymous namespace)::ConstantLValueEmitter::VisitMaterializeTemporaryExpr(clang::MaterializeTemporaryExpr const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1b6d043)
#8 0x000055b99d039d87 clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::ConstantLValueEmitter, (anonymous namespace)::ConstantLValue>::Visit(clang::Stmt const*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x4702d87)
#9 0x000055b99c7edaae clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb6aae)
#10 0x000055b99c7ee342 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3eb7342)
#11 0x000055b99d039026 clang::CodeGen::ConstantEmitter::tryEmitForInitializer(clang::VarDecl const&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x4702026)
#12 0x000055b99d06345e clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*, bool) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x472c45e)
#13 0x000055b99d0616e3 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x472a6e3)
#14 0x000055b99c7f257c clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3ebb57c)
#15 0x000055b99c887175 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f50175)
#16 0x000055b99c886f64 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f4ff64)
#17 0x000055b99c88b275 clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x3f54275)
#18 0x000055b99d2edb17 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x49b6b17)
#19 0x000055b99d1eb81e clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x48b481e)
#20 0x000055b99d191a12 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x485aa12)
#21 0x000055b99d202502 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x48cb502)
#22 0x000055b99caeaa9c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b3a9c)
#23 0x000055b99cae9721 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b2721)
#24 0x000055b99cae8d72 main (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41b1d72)
#25 0x000014800e5f9b75 __libc_start_main (/usr/lib64/libc.so.6+0x27b75)
#26 0x000055b99cae63e2 _start (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x41af3e2)
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler 2021.1.2 (2020.10.0.1214)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2021.1.2/linux/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/icpxerr7-b9fcc9.cpp
clang++: note: diagnostic msg: /tmp/icpxerr7-b9fcc9.sh
clang++: note: diagnostic msg:

********************
[vitti cc]$cat /tmp/icpxerr7-b9fcc9.cpp
# 1 "<built-in>"
# 1 "icpxerr7.C"
// icpx ICE in clang::CodeGen::ConstantEmitter::tryEmitPrivate
int(&&intu_rvref)[]{1,2,3,4};
[vitti cc]$cat /tmp/icpxerr7-b9fcc9.sh
# Crash reproducer for Intel(R) oneAPI DPC++ Compiler 2021.1.2 (2020.10.0.1214)
# Driver args: "--driver-mode=g++" "--intel" "icpxerr7.C"
# Original command: "/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang++" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "icpxerr7.C" "-mrelocation-model" "static" "-fveclib=SVML" "-mframe-pointer=none" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-fno-split-dwarf-inlining" "-debugger-tuning=gdb" "-resource-dir" "/opt/intel/oneapi/compiler/2021.1.2/linux/lib/clang/12.0.0" "-I/opt/intel/oneapi/dpcpp-ct/2021.1.1/include" "-I/opt/intel/oneapi/dnnl/2021.1.1/cpu_dpcpp_gpu_dpcpp/lib" "-I/opt/intel/oneapi/ccl/2021.1.1/include/cpu_gpu_dpcpp" "-I/opt/intel/oneapi/vpl/2021.1.1/include" "-I/opt/intel/oneapi/ipp/2021.1.1/include" "-I/opt/intel/oneapi/tbb/2021.1.1/env/../include" "-I/opt/intel/oneapi/ippcp/2021.1.1/include" "-I/opt/intel/oneapi/dev-utilities/2021.1.1/include" "-I/opt/intel/oneapi/mkl/latest/include" "-I/opt/intel/oneapi/mpi/2021.1.1//include" "-I/opt/intel/oneapi/dal/2021.1.1/include" "-I/opt/intel/oneapi/dpl/2021.1.2/linux/include" "-I/opt/intel/oneapi/compiler/2021.1.2/linux/include" "-cxx-isystem" "/opt/intel/oneapi/clck/2021.1.1/include" "-internal-isystem" "/opt/intel/oneapi/compiler/2021.1.2/linux/bin/../compiler/include" "-internal-isystem" "/home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1" "-internal-isystem" "/home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/x86_64-pc-linux-gnu" "-internal-isystem" "/home/vitti/local/gcc-150321-full/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/backward" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/opt/intel/oneapi/compiler/2021.1.2/linux/lib/clang/12.0.0/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-O2" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/vitti/f95/cc" "-ferror-limit" "19" "-disable-cpudispatch-ifuncs" "-fheinous-gnu-extensions" "-fgnuc-version=4.2.1" "-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-fintel-compatibility" "-mllvm" "-disable-hir-generate-mkl-call" "-mllvm" "-intel-libirc-allowed" "-mllvm" "-loopopt=0" "-mllvm" "-enable-lv" "-o" "/tmp/icpxerr7-64f016.o" "-x" "c++" "icpxerr7.C"
"/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang++" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "--mrelax-relocations" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "icpxerr7.C" "-mrelocation-model" "static" "-fveclib=SVML" "-mframe-pointer=none" "-fmath-errno" "-fno-rounding-math" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "x86-64" "-fno-split-dwarf-inlining" "-debugger-tuning=gdb" "-cxx-isystem" "/opt/intel/oneapi/clck/2021.1.1/include" "-O2" "-fdeprecated-macro" "-ferror-limit" "19" "-disable-cpudispatch-ifuncs" "-fheinous-gnu-extensions" "-fgnuc-version=4.2.1" "-fcxx-exceptions" "-fexceptions" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-fintel-compatibility" "-mllvm" "-disable-hir-generate-mkl-call" "-mllvm" "-intel-libirc-allowed" "-mllvm" "-loopopt=0" "-mllvm" "-enable-lv" "-x" "c++" "icpxerr7-b9fcc9.cpp"

Labels (1)
0 Kudos
4 Replies
RahulV_intel
Moderator
353 Views

Hi,


Thanks for reporting this bug. The crash is reproducible. We are working on this internally and will get back to you.


Regards,

Rahul


Viet_H_Intel
Moderator
341 Views

This is a known issue and will be fixed in the next release.

Thanks,


Viet_H_Intel
Moderator
317 Views

We have released oneAPI 2021.2, which fixed this issue.

$ cat t1.cpp

int(&&intu_rvref)[]{1,2,3,4};

$ icpx t1.cpp -c -V

Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2021.2.0 Build 20210317

 

Thanks,

 

Viet_H_Intel
Moderator
308 Views

Since this issue is now fixed in oneAPI 2021.2, I am going to close this thread.

Thanks,


Reply