[LLVMbugs] [Bug 2166] New: Compiling unoptimised 445.gobmk (from spec2006) crashes LLC

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 19 21:21:26 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2166

           Summary: Compiling unoptimised 445.gobmk (from spec2006) crashes
                    LLC
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: lhames at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1552)
 --> (http://llvm.org/bugs/attachment.cgi?id=1552)
bugpoint simplified bc file which produces crash

Using LLVM 2.2 (debug build) on an x86 machine running Debian etch, and using
llvm-gcc 4.0:

Compiled all 445.gobmk sources with

llvm-gcc -O0 -c -emit-llvm -DSPEC_CPU -DSPEC_CPU2006 -DHAVE_CONFIG_H
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -DNDEBUG -D__NO_MATH_INLINES <foo>.c -o
<foo>.bc

The resulting bytecodes were linked "llvm-ld -disable-opt -link-as-library -o
445.gobmk.bc *.bc"

Running LLC on the resulting bytecode file causes an assertion failure:

llc: SelectionDAG.cpp:476: void llvm::SelectionDAG::DeleteNode(llvm::SDNode*):
Assertion `N->use_empty() && "Cannot delete a node that is not dead!"' failed.
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc((anonymous
namespace)::PrintStackTrace()+0x22)[0x8a2d4a4]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc((anonymous
namespace)::SignalHandler(int)+0x110)[0x8a2d768]
[0x4001d420]
/lib/libc.so.6(abort+0x101)[0x401995b1]
/lib/libc.so.6(__assert_fail+0xfd)[0x4019146d]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::SelectionDAG::DeleteNode(llvm::SDNode*)+0x61)[0x8746b57]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x870b552]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x871ba6a]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x871bbf2]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x871cfa7]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::SelectionDAG::Combine(bool,
llvm::AliasAnalysis&)+0xad)[0x871d3af]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::SelectionDAG&)+0x7b)[0x8752ddb]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::MachineFunction&, llvm::FunctionLoweringInfo&)+0xbe)[0x8768408]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::SelectionDAGISel::runOnFunction(llvm::Function&)+0x263)[0x876a47b]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x8630d1b]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x122)[0x89bd4ca]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::FunctionPassManagerImpl::run(llvm::Function&)+0x6e)[0x89bd732]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(llvm::FunctionPassManager::run(llvm::Function&)+0x88)[0x89bd880]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc(main+0x998)[0x8411da4]
/lib/libc.so.6(__libc_start_main+0xdc)[0x40183ebc]
/home/lhames/devel/llvm/plimits/trunk/install/llvm/bin/llc[0x8410591]


-- 
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