[llvm-bugs] [Bug 25830] New: compiling this IR causes a segfault - probably has to do with inline assembly
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 15 00:39:15 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25830
Bug ID: 25830
Summary: compiling this IR causes a segfault - probably has to
do with inline assembly
Product: libraries
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: superjoe30 at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15450
--> https://llvm.org/bugs/attachment.cgi?id=15450&action=edit
this IR causes a segfault when compiled with llc
Compile the attached file with `llc test.ll` and observe a segfault:
warning: ignoring debug info with an invalid version (0) in
/home/andy/tmp/test.ll
#0 0x7f27f82d6ed5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSupport.so.3.7+0xbded5)
#1 0x7f27f82d62a1 SignalHandler(int)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSupport.so.3.7+0xbd2a1)
#2 0x7f27f747a460 __restore_rt
(/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/lib/libc.so.6+0x33460)
#3 0x7f27f8682e18
llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x17ee18)
#4 0x7f27f869247c llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x18e47c)
#5 0x7f27f8694844 llvm::SelectionDAGBuilder::visit(llvm::Instruction const&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x190844)
#6 0x7f27f86a0458
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x19c458)
#7 0x7f27f86a412a llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function
const&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x1a012a)
#8 0x7f27f86a592d
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMSelectionDAG.so.3.7+0x1a192d)
#9 0x7f27fbc2c4e4 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMX86CodeGen.so.3.7+0x994e4)
#10 0x7f27f94f926f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMCore.so.3.7+0x19826f)
#11 0x7f27f94f9843 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/../lib/libLLVMCore.so.3.7+0x198843)
#12 0x416a7e compileModule(char**, llvm::LLVMContext&)
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/llc+0x416a7e)
#13 0x410778 main
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/llc+0x410778)
#14 0x7f27f7467995 __libc_start_main
(/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/lib/libc.so.6+0x20995)
#15 0x4107d9 _start
(/nix/store/mc2zwxqfrvschs1vazlg35iw84b71d3q-llvm-3.7.0/bin/llc+0x4107d9)
Stack dump:
0. Program arguments: llc /home/andy/tmp/test.ll
1. Running pass 'Function Pass Manager' on module '/home/andy/tmp/test.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Segmentation fault
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151215/70a0d843/attachment-0001.html>
More information about the llvm-bugs
mailing list