LLVM trunk crash with knl target
| Bugzilla Link | 27584 |
| Resolution | FIXED |
| Resolved on | May 15, 2016 07:31 |
| Version | trunk |
| OS | Linux |
| Attachments | Reproducer |
| Reporter | LLVM Bugzilla Contributor |
| CC | @dbabokin,@delena,@hfinkel,@igor-breger |
Extended Description
Reproducer (see attachments):
clang++ -O3 -march=knl out crash.cpp
clang -v: clang version 3.9.0 (trunk 268042) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.2 Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.5 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64
Output:
clang-3.9: /export/users/amitrokh/llvm/llvm-trunk/lib/IR/Constants.cpp:1987: static llvm::Constant* llvm::ConstantExpr::getGetElementPtr(llvm::Type*, llvm::Constant*, llvm::ArrayRefllvm::Value*, bool, llvm::Type*): Assertion `Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && "getelementptr index type missmatch"' failed.
#0 0x000000000110e885 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110e885)
#1 0x000000000110c636 llvm::sys::RunSignalHandlers() (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110c636)
#2 0x000000000110c861 SignalHandler(int) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110c861)
#3 0x00007fea7b487100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#4 0x00007fea7a6b55f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#5 0x00007fea7a6b6ce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#6 0x00007fea7a6ae566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#7 0x00007fea7a6ae612 (/lib64/libc.so.6+0x2e612)
#8 0x0000000000d35ae4 llvm::ConstantExpr::getGetElementPtr(llvm::Type*, llvm::Constant*, llvm::ArrayRefllvm::Value*, bool, llvm::Type*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd35ae4)
#9 0x00000000009b4abc llvm::SimplifyGEPInst(llvm::Type*, llvm::ArrayRefllvm::Value*, llvm::DataLayout const&, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*, llvm::AssumptionCache*, llvm::Instruction const*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x9b4abc)
#10 0x00000000009be85d llvm::SimplifyInstruction(llvm::Instruction*, llvm::DataLayout const&, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*, llvm::AssumptionCache*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x9be85d)
#11 0x000000000116a994 llvm::UnrollLoop(llvm::Loop*, unsigned int, unsigned int, bool, bool, unsigned int, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::DominatorTree*, llvm::AssumptionCache*, bool) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x116a994)
#12 0x000000000101c560 tryToUnrollLoop(llvm::Loop*, llvm::DominatorTree&, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, bool, llvm::Optional
-
<eof> parser at end of file -
Per-module optimization passes -
Running pass 'Function Pass Manager' on module 'crash.cpp'. -
Running pass 'Loop Pass Manager' on function '@_Z4initv' -
Running pass 'Unroll loops' on basic block '%vector.body'
clang-3.9: error: unable to execute command: Aborted (core dumped) clang-3.9: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.9.0 (trunk 268042) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin clang-3.9: 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-3.9: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.9: note: diagnostic msg: /tmp/out-11e039.c clang-3.9: note: diagnostic msg: /tmp/crash-637796.cpp clang-3.9: note: diagnostic msg: /tmp/out-11e039.sh clang-3.9: note: diagnostic msg:
mentioned in issue llvm/llvm-bugzilla-archive#27585
Fixed. Committed revision 269590.
*** Bug llvm/llvm-bugzilla-archive#27585 has been marked as a duplicate of this bug. ***