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.
348 Discussions

dpcpp ICE Segmentation fault in MaybeElementDependentArrayFiller

vzecca
Beginner
357 Views

cat dpcpperr8.c
//dpcpp ICE Segmentation fault in MaybeElementDependentArrayFiller
wchar_t *p = (wchar_t [5]){ (L"p") };

dpcpp dpcpperr8.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.3.0/linux/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -sycl-std=2020 -fsycl-unnamed-lambda -include /tmp/dpcpperr8-header-0d2a18.h -dependency-filter /tmp/dpcpperr8-header-0d2a18.h -fsycl-is-host -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name dpcpperr8.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 -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/dpcpperr8-f59dde.o -x c++ dpcpperr8.c
1. <eof> parser at end of file
2. dpcpperr8.c:2:10: LLVM IR generation of declaration 'p'
3. dpcpperr8.c:2:10: Generating code for declaration 'p'
#0 0x0000556d4a12068a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f68a)
#1 0x0000556d4a120430 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f430)
#2 0x0000556d4a120914 SignalHandler(int) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x438f914)
#3 0x000014ce1c38ea20 (/usr/lib64/libpthread.so.0+0x13a20)
#4 0x0000556d486146eb MaybeElementDependentArrayFiller(clang::Expr const*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x28836eb)
#5 0x0000556d4860aeb1 (anonymous namespace)::ArrayExprEvaluator::VisitInitListExpr(clang::InitListExpr const*, clang::QualType) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2879eb1)
#6 0x0000556d489d482c Evaluate(clang::APValue&, (anonymous namespace)::EvalInfo&, clang::Expr const*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2c4382c)
#7 0x0000556d489d37d3 EvaluateAsRValue((anonymous namespace)::EvalInfo&, clang::Expr const*, clang::APValue&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2c427d3)
#8 0x0000556d489d32a6 clang::Expr::EvaluateAsRValue(clang::Expr::EvalResult&, clang::ASTContext const&, bool) const (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2c422a6)
#9 0x0000556d492e9bc5 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::Expr const*, clang::QualType) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3558bc5)
#10 0x0000556d492e9ae6 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::Expr const*, clang::QualType) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3558ae6)
#11 0x0000556d4a68c64f (anonymous namespace)::tryEmitGlobalCompoundLiteral(clang::CodeGen::CodeGenModule&, clang::CodeGen::CodeGenFunction*, clang::CompoundLiteralExpr const*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x48fb64f)
#12 0x0000556d4a68d12b (anonymous namespace)::ConstantLValueEmitter::VisitCompoundLiteralExpr(clang::CompoundLiteralExpr const*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x48fc12b)
#13 0x0000556d490ee11d clang::StmtVisitorBase<llvm::make_const_ptr, (anonymous namespace)::ConstantLValueEmitter, (anonymous namespace)::ConstantLValue>::Visit(clang::Stmt const*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x335d11d)
#14 0x0000556d490ebfa1 clang::CodeGen::ConstantEmitter::tryEmitPrivate(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x335afa1)
#15 0x0000556d490ec846 clang::CodeGen::ConstantEmitter::tryEmitPrivateForMemory(clang::APValue const&, clang::QualType) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x335b846)
#16 0x0000556d4916f166 clang::CodeGen::ConstantEmitter::tryEmitForInitializer(clang::VarDecl const&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x33de166)
#17 0x0000556d4916d959 clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*, bool) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x33dc959)
#18 0x0000556d49150513 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x33bf513)
#19 0x0000556d48650320 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x28bf320)
#20 0x0000556d4ac2b745 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x4e9a745)
#21 0x0000556d4ac29bd2 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x4e98bd2)
#22 0x0000556d494662f5 clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x36d52f5)
#23 0x0000556d49465507 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x36d4507)
#24 0x0000556d482e7f4e clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x2556f4e)
#25 0x0000556d482e74b5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x25564b5)
#26 0x0000556d495a4427 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x3813427)
#27 0x0000556d495a0676 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x380f676)
#28 0x0000556d4964a9e8 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x38b99e8)
#29 0x0000556d4923cad6 main (/opt/intel/oneapi/compiler/2021.3.0/linux/bin/clang+++0x34abad6)
#30 0x000014ce1c1d1b75 (/usr/lib64/libc.so.6+0x27b75)
#31 0x0000556d4c30dc78 _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
VidyalathaB_Intel
Moderator
342 Views

Hi,

Thanks for reaching out to us.

The issue raised by you is reproducible.

We are working on this issue internally. we will get back to you soon.

Regards,

Vidya.




ShivaniK_Intel
Moderator
187 Views

 

Hi,

 

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

 

Thanks & Regards

Shivani

 

SantoshY_Intel
Moderator
145 Views

Hi,

 

As your issue is fixed in the latest oneAPI 2022.1, I assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Thanks & Regards,

Santosh

 

Reply