[LLVMbugs] [Bug 7424] New: llc crash on bad use of llvm.eh.selector
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jun 19 19:48:29 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7424
Summary: llc crash on bad use of llvm.eh.selector
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Found this while using bugpoint to debug a larger program.
$ cat test.ll
declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
define void @_ZNK4llvm9UnsetInit11getAsStringEv_invoke.cont() {
newFuncRoot:
%0 = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* undef, i8* bitcast (i32
(...)* null to i8*), i8* null)
unreachable
}
$ ~/llvm/build/Debug/bin/llc test.ll
llc:
/home/espindola/llvm/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:163:
void llvm::FunctionLoweringInfo::clear(): Assertion `CatchInfoFound.size() ==
CatchInfoLost.size() && "Not all catch info was assigned to a landing pad!"'
failed.
0 llc 0x0000000001397b75
1 llc 0x0000000001397a38
2 libpthread.so.0 0x000000354820f440
3 libc.so.6 0x0000003547a329a5 gsignal + 53
4 libc.so.6 0x0000003547a34185 abort + 373
5 libc.so.6 0x0000003547a2b925 __assert_fail + 245
6 llc 0x0000000000dfb7c1
7 llc 0x0000000000e97e1a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2410
8 llc 0x0000000000fcf1c1
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
9 llc 0x000000000130a9a5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 405
10 llc 0x000000000130abc2
llvm::FPPassManager::runOnModule(llvm::Module&) + 102
11 llc 0x000000000130aef2
llvm::MPPassManager::runOnModule(llvm::Module&) + 456
12 llc 0x000000000130b441 llvm::PassManagerImpl::run(llvm::Module&)
+ 125
13 llc 0x000000000130b803 llvm::PassManager::run(llvm::Module&) +
39
14 llc 0x0000000000a411fd main + 2463
15 libc.so.6 0x0000003547a1ec5d __libc_start_main + 253
16 llc 0x0000000000a3ff09
Stack dump:
0. Program arguments: /home/espindola/llvm/build/Debug/bin/llc test.ll
1. Running pass 'Function Pass Manager' on module 'test.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZNK4llvm9UnsetInit11getAsStringEv_invoke.cont'
Aborted (core dumped)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list