https://llvm.org/bugs/show_bug.cgi?id=30542
Bug ID: 30542 Summary: Crash in InnerLoopVectorizer::vectorizeLoop Product: libraries Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Loop Optimizer Assignee: unassignedb...@nondot.org Reporter: wenzel.ja...@epfl.ch CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17366 --> https://llvm.org/bugs/attachment.cgi?id=17366&action=edit Gzipped preprocessed source code file I ran into the following issue with Clang trunk (r282487) on a Xeon Phi machine. /usr/local/bin/clang++ -DHAVE_CONFIG_H -DILMIMF_EXPORTS -DILM_IMF_TEST_IMAGEDIR=\"/home/wjakob/mitsuba2/IlmImfTest/\" -DIlmImf_EXPORTS -Iext_build/openexr/OpenEXR/IlmImf -Iext/openexr/OpenEXR/IlmImf -Iext/openexr/IlmBase/Iex -Iext/openexr/IlmBase/Imath -Iext/openexr/IlmBase/IlmThread -Iext/openexr/IlmBase/Half -Iext_build/openexr/IlmBase/config -Iext_build/openexr/OpenEXR/config -Iext/openexr/OpenEXR/IlmImfUtil -Iext/openexr/OpenEXR/exrmaketiled -Iext/openexr/OpenEXR/exrenvmap -Iext/openexr/OpenEXR/exrmakepreview -Iext/openexr/OpenEXR/exrmultiview -Iext/openexr/OpenEXR/IlmImfFuzzTest -Wno-switch -Wno-tautological-compare -Wno-deprecated-register -O3 -DNDEBUG -fPIC -march=native -stdlib=libc++ -MD -MT ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o -MF ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o.d -o ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o -c ext/openexr/OpenEXR/IlmImf/ImfMisc.cpp #0 0x00000000010fc195 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/bin/clang-4.0+0x10fc195) #1 0x00000000010fa0ce llvm::sys::RunSignalHandlers() (/usr/local/bin/clang-4.0+0x10fa0ce) #2 0x00000000010fa34a SignalHandler(int) (/usr/local/bin/clang-4.0+0x10fa34a) #3 0x00007f4a6068f100 __restore_rt (/lib64/libpthread.so.0+0xf100) #4 0x00000000011e611c (anonymous namespace)::InnerLoopVectorizer::predicateInstructions() (/usr/local/bin/clang-4.0+0x11e611c) #5 0x00000000011fcfec (anonymous namespace)::InnerLoopVectorizer::vectorizeLoop() (/usr/local/bin/clang-4.0+0x11fcfec) #6 0x00000000012038f8 llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/usr/local/bin/clang-4.0+0x12038f8) #7 0x0000000001206455 llvm::LoopVectorizePass::runImpl(llvm::Function&, llvm::ScalarEvolution&, llvm::LoopInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::BlockFrequencyInfo&, llvm::TargetLibraryInfo*, llvm::DemandedBits&, llvm::AAResults&, llvm::AssumptionCache&, std::function<llvm::LoopAccessInfo const& (llvm::Loop&)>&, llvm::OptimizationRemarkEmitter&) (/usr/local/bin/clang-4.0+0x1206455) #8 0x000000000120693a (anonymous namespace)::LoopVectorize::runOnFunction(llvm::Function&) (/usr/local/bin/clang-4.0+0x120693a) #9 0x0000000000d74fa9 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/local/bin/clang-4.0+0xd74fa9) #10 0x0000000000d750a3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/local/bin/clang-4.0+0xd750a3) #11 0x0000000000d756d3 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/local/bin/clang-4.0+0xd756d3) #12 0x00000000012610b6 (anonymous namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/local/bin/clang-4.0+0x12610b6) #13 0x00000000012633d2 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/local/bin/clang-4.0+0x12633d2) #14 0x000000000184a0ae clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/usr/local/bin/clang-4.0+0x184a0ae) #15 0x0000000001c77b1b clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang-4.0+0x1c77b1b) #16 0x000000000184d00f clang::CodeGenAction::ExecuteAction() (/usr/local/bin/clang-4.0+0x184d00f) #17 0x000000000158759e clang::FrontendAction::Execute() (/usr/local/bin/clang-4.0+0x158759e) #18 0x000000000155f0ad clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang-4.0+0x155f0ad) #19 0x000000000161ca81 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang-4.0+0x161ca81) #20 0x00000000007a2378 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang-4.0+0x7a2378) #21 0x000000000075cbb9 main (/usr/local/bin/clang-4.0+0x75cbb9) #22 0x00007f4a5f1f7b15 __libc_start_main (/lib64/libc.so.6+0x21b15) #23 0x000000000079dd51 _start (/usr/local/bin/clang-4.0+0x79dd51) Stack dump: 0. Program arguments: /usr/local/bin/clang-4.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name ImfMisc.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu knl -target-feature +sse2 -target-feature +cx16 -target-feature -tbm -target-feature -avx512ifma -target-feature -avx512dq -target-feature -fma4 -target-feature +prfchw -target-feature +bmi2 -target-feature -xsavec -target-feature +fsgsbase -target-feature +popcnt -target-feature +aes -target-feature -pcommit -target-feature -xsaves -target-feature +avx512er -target-feature -clwb -target-feature +avx512f -target-feature -pku -target-feature -smap -target-feature +mmx -target-feature -xop -target-feature +rdseed -target-feature -hle -target-feature -sse4a -target-feature -avx512bw -target-feature -clflushopt -target-feature +xsave -target-feature -avx512vl -target-feature -invpcid -target-feature +avx512cd -target-feature +avx -target-feature -rtm -target-feature +fma -target-feature +bmi -target-feature -mwaitx -target-feature +rdrnd -target-feature +sse4.1 -target-feature +sse4.2 -target-feature +avx2 -target-feature +sse -target-feature +lzcnt -target-feature +pclmul -target-feature +prefetchwt1 -target-feature +f16c -target-feature +ssse3 -target-feature -sgx -target-feature +cmov -target-feature -avx512vbmi -target-feature +movbe -target-feature +xsaveopt -target-feature -sha -target-feature +adx -target-feature +avx512pf -target-feature +sse3 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/wjakob/mitsuba2/ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.gcno -resource-dir /usr/local/bin/../lib/clang/4.0.0 -dependency-file ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o.d -sys-header-deps -MT ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o -D HAVE_CONFIG_H -D ILMIMF_EXPORTS -D ILM_IMF_TEST_IMAGEDIR="/home/wjakob/mitsuba2/IlmImfTest/" -D IlmImf_EXPORTS -I ext_build/openexr/OpenEXR/IlmImf -I ext/openexr/OpenEXR/IlmImf -I ext/openexr/IlmBase/Iex -I ext/openexr/IlmBase/Imath -I ext/openexr/IlmBase/IlmThread -I ext/openexr/IlmBase/Half -I ext_build/openexr/IlmBase/config -I ext_build/openexr/OpenEXR/config -I ext/openexr/OpenEXR/IlmImfUtil -I ext/openexr/OpenEXR/exrmaketiled -I ext/openexr/OpenEXR/exrenvmap -I ext/openexr/OpenEXR/exrmakepreview -I ext/openexr/OpenEXR/exrmultiview -I ext/openexr/OpenEXR/IlmImfFuzzTest -D NDEBUG -I/opt/intel/compilers_and_libraries_2017.0.098/linux/ipp/include -I/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/include -I/opt/intel/compilers_and_libraries_2017.0.098/linux/tbb/include -I/opt/intel/compilers_and_libraries_2017.0.098/linux/daal/include -internal-isystem /usr/local/bin/../include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/4.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wno-switch -Wno-tautological-compare -Wno-deprecated-register -fdeprecated-macro -fdebug-compilation-dir /home/wjakob/mitsuba2 -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o ext_build/openexr/OpenEXR/IlmImf/CMakeFiles/IlmImf.dir/ImfMisc.cpp.o -x c++ ext/openexr/OpenEXR/IlmImf/ImfMisc.cpp 1. <eof> parser at end of file 2. Per-module optimization passes 3. Running pass 'Function Pass Manager' on module 'ext/openexr/OpenEXR/IlmImf/ImfMisc.cpp'. 4. Running pass 'Loop Vectorization' on function '@_ZN3Imf17bytesPerLineTableERKNS_6HeaderERNSt3__16vectorImNS3_9allocatorImEEEE' clang-4.0: error: unable to execute command: Segmentation fault (core dumped) clang-4.0: error: clang frontend command failed due to signal (use -v to see invocation) clang version 4.0.0 (trunk 282487) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin clang-4.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-4.0: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-4.0: note: diagnostic msg: /tmp/ImfMisc-f8476c.cpp clang-4.0: note: diagnostic msg: /tmp/ImfMisc-f8476c.sh clang-4.0: note: diagnostic msg: ******************** -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs