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

icpx ICE Segmentation violation

vzecca
Beginner
525 Views

icpx icpxerr6.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 icpxerr6.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/icpxerr6-81bf25.o -x c++ icpxerr6.C
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'icpxerr6.C'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function ''
#0 0x000055700227b8f7 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17788f7)
#1 0x000055700227a0b0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x17770b0)
#2 0x000055700227bbc1 SignalHandler(int) (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x1778bc1)
#3 0x000014f154da3960 __restore_rt (/usr/lib64/libpthread.so.0+0x13960)
#4 0x00005570054b57ad (/opt/intel/oneapi/compiler/2021.1.2/linux/bin/clang+++0x49b27ad)
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/icpxerr6-10a81d.cpp
clang++: note: diagnostic msg: /tmp/icpxerr6-10a81d.sh
clang++: note: diagnostic msg:

********************
[vitti cc]$cat /tmp/icpxerr6-10a81d.cpp
# 1 "<built-in>"
# 1 "icpxerr6.C"
// icpx ICE in llvm::FoldingSetBase::FindNodeOrInsertPos
int main ()
{
void *co_h;

bool d = __builtin_coro_done (co_h);

}
[vitti cc]$cat /tmp/icpxerr6-10a81d.sh
# Crash reproducer for Intel(R) oneAPI DPC++ Compiler 2021.1.2 (2020.10.0.1214)
# Driver args: "--driver-mode=g++" "--intel" "icpxerr6.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" "icpxerr6.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/icpxerr6-81bf25.o" "-x" "c++" "icpxerr6.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" "icpxerr6.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++" "icpxerr6-10a81d.cpp"

0 Kudos
5 Replies
PrasanthD_intel
Moderator
498 Views

Hi Vittorio,


Thanks for reporting the ICE.

The crash is reproducible. We are working on it and get back to you soon.


Regards

Prasanth


Viet_H_Intel
Moderator
486 Views

I've submitted this to our Developer.

Thank for reporting this error.


Viet_H_Intel
Moderator
461 Views

Coroutines in LLVM is working in progress, You can refer to this document: https://llvm.org/docs/Coroutines.html. In the meantime, you can add -fcoroutines-ts to compile your code.

$ icpx t6.cpp -fcoroutines-ts

$ cat t6.cpp

//#include<coroutine>

int main ()

{

void *co_h;


bool d = __builtin_coro_done (co_h);


}



SantoshY_Intel
Moderator
350 Views

Hi,


Thank you for your patience. The issue raised by you has been fixed in the intel oneAPI 2021.4 version. So, could you please download and let us know if this resolves your issue.


Best Regards,

Santosh


SantoshY_Intel
Moderator
305 Views

Hi,


As we haven't heard back from you, we are closing this thread. For any further queries, please post a new question as this thread will no longer be monitored by intel.


Thanks & Regards,

Santosh


Reply