[LLVMbugs] [Bug 7701] New: llc crash in out-of-bounds access

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 24 02:28:54 PDT 2010


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

           Summary: llc crash in out-of-bounds access
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu


As of r108766:

-macbookpro:~/tmp$ cat unit.ll
; ModuleID = 'unit.bc'

define void @_rust_main([0 x i1] %tmp1) {
  %u1 = alloca [0 x i1]                           ; <[0 x i1]*> [#uses=1]
  %tmp2 = load [0 x i1]* %u1                      ; <[0 x i1]> [#uses=1]
  call void @_rust_f([0 x i1] %tmp2)
  ret void
}

define void @_rust_f([0 x i1]) {
  ret void
}

-macbookpro:~/tmp$ llc unit.ll
Assertion failed: (begin() + idx < end()), function operator[], file
/Users/jyasskin/src/llvm/trunk/src/include/llvm/ADT/SmallVector.h, line 155.
0  libLLVM-2.8svn.dylib 0xe094a8e0 llvm::SearchForAddressOfSpecialSymbol(char
const*) + 478
1  libLLVM-2.8svn.dylib 0xe094ad72 llvm::sys::RunInterruptHandlers() + 354
2  libSystem.B.dylib    0x939512bb _sigtramp + 43
3  libSystem.B.dylib    0xffffffff _sigtramp + 1818946927
4  libSystem.B.dylib    0x939c523a raise + 26
5  libSystem.B.dylib    0x939d1679 abort + 73
6  libSystem.B.dylib    0x939c63db __assert_rtn + 101
7  libLLVM-2.8svn.dylib 0xe006966d
llvm::SmallVectorTemplateCommon<llvm::SDValue>::operator[](unsigned int) + 101
8  libLLVM-2.8svn.dylib 0xe0882df1 (anonymous
namespace)::RegsForValue::getCopyFromRegs(llvm::SelectionDAG&,
llvm::FunctionLoweringInfo&, llvm::DebugLoc, llvm::SDValue&, llvm::SDValue*)
const + 1801
9  libLLVM-2.8svn.dylib 0xe08a1dbb
llvm::SelectionDAGBuilder::getValueImpl(llvm::Value const*) + 3519
10 libLLVM-2.8svn.dylib 0xe0887619
llvm::SelectionDAGBuilder::getValue(llvm::Value const*) + 445
11 libLLVM-2.8svn.dylib 0xe088ad72
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue,
bool, llvm::MachineBasicBlock*) + 972
12 libLLVM-2.8svn.dylib 0xe089975d
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 3691
13 libLLVM-2.8svn.dylib 0xe08a0ed2 llvm::SelectionDAGBuilder::visit(unsigned
int, llvm::User const&) + 1328
14 libLLVM-2.8svn.dylib 0xe08a61a1
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 111
15 libLLVM-2.8svn.dylib 0xe08bd245
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 45
16 libLLVM-2.8svn.dylib 0xe08bd885
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1437
17 libLLVM-2.8svn.dylib 0xe08bdba6
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 702
18 libLLVM-2.8svn.dylib 0xe036e54d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 77
19 libLLVM-2.8svn.dylib 0xe0532831
llvm::FPPassManager::runOnFunction(llvm::Function&) + 287
20 libLLVM-2.8svn.dylib 0xe05329b5
llvm::FPPassManager::runOnModule(llvm::Module&) + 83
21 libLLVM-2.8svn.dylib 0xe0532431
llvm::MPPassManager::runOnModule(llvm::Module&) + 375
22 libLLVM-2.8svn.dylib 0xe0532680 llvm::PassManagerImpl::run(llvm::Module&) +
112
23 libLLVM-2.8svn.dylib 0xe05326d9 llvm::PassManager::run(llvm::Module&) + 27
24 llc                  0x0000329d main + 2407
25 llc                  0x0000219e start + 54
Stack dump:
0.    Program arguments: /Users/jyasskin/src/llvm/trunk/install/bin/llc unit.ll 
1.    Running pass 'Function Pass Manager' on module 'unit.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_rust_main'

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