matsc-at-sics-se / unison

Unison's source code
http://unison-code.github.io/
Other
5 stars 0 forks source link

llc crashes #22

Closed matsc-at-sics-se closed 6 years ago

matsc-at-sics-se commented 6 years ago

kff-clang-fft.ll.txt

+ llc kff-clang-fft.ll -unison -unison-verbose -unison-no-clean -unison-import-flags=STOP -unison-single-function=rearrange
llc: /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:686: void llvm::MIPrinter::printStackObjectReference(int): Assertion `ObjectInfo != StackObjectOperandMapping.end() && "Invalid frame index"' failed.
#0 0x000000000265b0e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/matsc/llvm/lib/Support/Unix/Signals.inc:322:0
#1 0x000000000265b438 PrintStackTraceSignalHandler(void*) /home/matsc/llvm/lib/Support/Unix/Signals.inc:380:0
#2 0x000000000265996f llvm::sys::RunSignalHandlers() /home/matsc/llvm/lib/Support/Signals.cpp:44:0
#3 0x000000000265aafc SignalHandler(int) /home/matsc/llvm/lib/Support/Unix/Signals.inc:210:0
#4 0x00007f2833e89390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#5 0x00007f2833028428 gsignal /build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007f283302a02a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007f2833020bd7 __assert_fail_base /build/glibc-Cl5G7W/glibc-2.23/assert/assert.c:92:0
#8 0x00007f2833020c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x0000000001f8873d llvm::MIPrinter::printStackObjectReference(int) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:685:0
#10 0x0000000001f89ab6 llvm::MIPrinter::print(llvm::MachineMemOperand const&) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:933:0
#11 0x0000000001f8832c llvm::MIPrinter::print(llvm::MachineInstr const&) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:624:0
#12 0x0000000001f87ce8 llvm::MIPrinter::print(llvm::MachineBasicBlock const&) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:548:0
#13 0x0000000001f8547c llvm::MIRPrinter::print(llvm::MachineFunction const&) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:194:0
#14 0x0000000001f8a14d llvm::printMIR(llvm::raw_ostream&, llvm::MachineFunction const&, llvm::MIRAuxiliaryInfo&) /home/matsc/llvm/lib/CodeGen/MIRPrinter.cpp:1030:0
#15 0x0000000001e26651 (anonymous namespace)::MIRPrintingPass::runOnMachineFunction(llvm::MachineFunction&) /home/matsc/llvm/lib/CodeGen/MIRPrintingPass.cpp:65:0
#16 0x0000000001da6b5d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/matsc/llvm/lib/CodeGen/MachineFunctionPass.cpp:44:0
#17 0x00000000021a76ac llvm::FPPassManager::runOnFunction(llvm::Function&) /home/matsc/llvm/lib/IR/LegacyPassManager.cpp:1550:0
#18 0x00000000021a7845 llvm::FPPassManager::runOnModule(llvm::Module&) /home/matsc/llvm/lib/IR/LegacyPassManager.cpp:1571:0
#19 0x00000000021a7bc0 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /home/matsc/llvm/lib/IR/LegacyPassManager.cpp:1627:0
#20 0x00000000021a82d5 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/matsc/llvm/lib/IR/LegacyPassManager.cpp:1730:0
#21 0x00000000021a84e1 llvm::legacy::PassManager::run(llvm::Module&) /home/matsc/llvm/lib/IR/LegacyPassManager.cpp:1762:0
#22 0x0000000000d6b001 compileModule(char**, llvm::LLVMContext&) /home/matsc/llvm/tools/llc/llc.cpp:417:0
#23 0x0000000000d69c4e main /home/matsc/llvm/tools/llc/llc.cpp:212:0
#24 0x00007f2833013830 __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#25 0x0000000000d681d9 _start (/usr/local/bin/llc+0xd681d9)
Stack dump:
0.  Program arguments: llc kff-clang-fft.ll -unison -unison-verbose -unison-no-clean -unison-import-flags=STOP -unison-single-function=rearrange 
1.  Running pass 'Function Pass Manager' on module 'kff-clang-fft.ll'.
2.  Running pass 'MIR Printing Pass' on function '@dft'
/home/matsc/bin/ll2mir.sh: line 5:  3280 Aborted                 (core dumped) llc $1.ll -unison -unison-verbose -unison-no-clean -unison-import-flags=STOP -unison-single-function=$2
matsc-at-sics-se commented 6 years ago

Duplicates #27, which should be easier to debug. Closing.