Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

legalize crash with C++ EH #1698

Closed
llvmbot opened this issue Apr 14, 2007 · 4 comments
Closed

legalize crash with C++ EH #1698

llvmbot opened this issue Apr 14, 2007 · 4 comments
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:codegen

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Apr 14, 2007

Bugzilla Link 1326
Resolution FIXED
Resolved on Feb 22, 2010 12:53
Version trunk
OS Linux
Attachments Bytecode causing the crash
Reporter LLVM Bugzilla Contributor

Extended Description

$ llc -enable-eh eh.bc
llc: /home/duncan/tmp/llvm.master/include/llvm/CodeGen/SelectionDAGNodes.h:904:
llvm::MVT::ValueType llvm::SDNode::getValueType(unsigned int) const: Assertion
`ResNo < NumValues && "Illegal result number!"' failed.
llc((anonymous namespace)::PrintStackTrace()+0x1a)[0x891f23a]
llc((anonymous namespace)::SignalHandler(int)+0x112)[0x891f500]
[0xffffe420]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7ce5641]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7cdd43b]
llc(llvm::SDNode::getValueType(unsigned int) const+0x39)[0x844c925]
llc(llvm::SDOperand::getValueType() const+0x1d)[0x844c955]
llc[0x86f5c5b]
llc[0x86e9c8d]
llc[0x8704eef]
llc[0x870535e]
llc(llvm::SelectionDAG::Legalize()+0x41)[0x87054f7]
llc(llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::SelectionDAG&)+0x93)
[0x869fde9]
llc(llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::MachineFunction&, llvm::FunctionLoweringInfo&)+0xb5)[0x86b555d]
llc(llvm::SelectionDAGISel::runOnFunction(llvm::Function&)+0x11f)[0x86b7173]
llc[0x8576643]
llc(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x13a)[0x88ac6d2]
llc(llvm::FunctionPassManagerImpl::run(llvm::Function&)+0x6e)[0x88ac956]
llc(llvm::FunctionPassManager::run(llvm::Function&)+0x88)[0x88aca16]
llc(main+0xbe9)[0x8410959]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7ccfebc]
llc[0x840ec11]
Aborted (core dumped)

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 16, 2007

PS: This problem stops the C++ runtime from building with -enable-eh.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 16, 2007

@llvmbot
Copy link
Collaborator Author

llvmbot commented Apr 16, 2007

@lattner
Copy link
Collaborator

lattner commented Apr 27, 2007

Fixed, testcase here: CodeGen/Generic/2007-04-14-EHSelectorCrash.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070423/048557.html

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:codegen
Projects
None yet
Development

No branches or pull requests

2 participants