[LLVMbugs] [Bug 583] NEW: setOperand() out of range!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 15 20:58:49 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=583

           Summary: setOperand() out of range!
           Product: tools
           Version: 1.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gccas
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bryan.turner at pobox.com


LLVM 1.5, patched with recent bug fixes (577-582).

Bugpoint tracked it down to func_31585107l().  I have not reduced input source
code under the assumption that the bugpoint file will be more usefull.  Let me
know if a source code reduction is necessary.

Attachments:
- Original source file
- Intermediate file from -save-temps
- bugpoint reduced case

------------------------

Exception Text:

gccas: /home/brturn/llvm/llvm/include/llvm/InstrTypes.h:143: void
llvm::BinaryOperator::setOperand(unsigned int, llvm::Value*): Assertion `i < 2
&& "setOperand() out of range!"' failed.
gccas((anonymous namespace)::PrintStackTrace()+0x18)[0x853c7f4]
gccas((anonymous namespace)::SignalHandler(int)+0xdc)[0x853ca5a]
[0x339420]
/lib/tls/libc.so.6(abort+0x1d2)[0xb2f872]
/lib/tls/libc.so.6(__assert_fail+0x108)[0xb27718]
gccas(llvm::BinaryOperator::setOperand(unsigned, llvm::Value*)+0x25)[0x839eb3b]
gccas((anonymous
namespace)::InstCombiner::visitDiv(llvm::BinaryOperator&)+0x679)[0x83423a9]
gccas(llvm::InstVisitor<(anonymous namespace)::InstCombiner,
llvm::Instruction*>::visit(llvm::Instruction&)+0x138)[0x839e3f0]
gccas((anonymous
namespace)::InstCombiner::runOnFunction(llvm::Function&)+0x657)[0x835c26b]
gccas(llvm::PassManagerTraits<llvm::Function>::runPass(llvm::FunctionPass*,
llvm::Function*)+0x1b)[0x8470b2b]
gccas(llvm::PassManagerT<llvm::Function>::runOnUnit(llvm::Function*)+0x5c6)[0x8466410]
gccas(llvm::PassManagerTraits<llvm::Function>::runOnFunction(llvm::Function&)+0x1b)[0x8466f4d]
gccas(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa6)[0x8417dbc]
gccas(llvm::PassManagerTraits<llvm::Module>::runPass(llvm::ModulePass*,
llvm::Module*)+0x1b)[0x8470bcd]
gccas(llvm::PassManagerT<llvm::Module>::runOnUnit(llvm::Module*)+0x5c6)[0x846463e]
gccas(llvm::PassManagerTraits<llvm::Module>::runOnModule(llvm::Module&)+0x1b)[0x8465c29]
gccas(llvm::PassManager::run(llvm::Module&)+0x1f)[0x8417179]
gccas(main+0x7f6)[0x82e2e32]
/lib/tls/libc.so.6(__libc_start_main+0xe4)[0xb1bad4]
gccas[0x82e2135]
llvm-gcc: Internal error: Aborted (program as)
Please submit a full bug report.
See <URL:http://llvm.cs.uiuc.edu> for instructions.

--------------------------



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list