[LLVMbugs] [Bug 9363] New: DwarfDebug bounds error when building ARMMCCodeEmitter -O -g

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 1 20:18:29 PST 2011


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

           Summary: DwarfDebug bounds error when building ARMMCCodeEmitter
                    -O -g
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6255)
 --> (http://llvm.org/bugs/attachment.cgi?id=6255)
Reduced from ARMMCCodeEmitter.bc

When using clang tot r126826 to build itself with debug symbols, DwarfDebug
crashes on ARMMCCodeEmitter.cpp

llc ARMMCCodeEmitter.bc 
Assertion failed: (begin() + idx < end()), function operator[], file
/Volumes/Krask/g/llvm/include/llvm/ADT/SmallVector.h, line 150.
0  llc               0x009da338 PrintStackTrace(void*) + 40
1  llc               0x009da93a SignalHandler(int) + 858
2  libSystem.B.dylib 0x94e7b46b _sigtramp + 43
3  libSystem.B.dylib 0xffffffff _sigtramp + 1796754367
4  llc               0x0002048b abort + 27
5  llc               0x00020464 __assert_rtn + 100
6  llc               0x005f8456
llvm::DwarfDebug::addCurrentFnArgument(llvm::MachineFunction const*,
llvm::DbgVariable*, llvm::DbgScope*) + 358
7  llc               0x005f8e71
llvm::DwarfDebug::collectVariableInfo(llvm::MachineFunction const*,
llvm::SmallPtrSet<llvm::MDNode const*, 16u>&) + 1313
8  llc               0x005fbd13
llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) + 323
9  llc               0x005d4dc0 llvm::AsmPrinter::EmitFunctionBody() + 5616
10 llc               0x003475e1
llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&) + 257
11 llc               0x00686297
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 71
12 llc               0x00937c30
llvm::FPPassManager::runOnFunction(llvm::Function&) + 320
13 llc               0x00937f8c llvm::FPPassManager::runOnModule(llvm::Module&)
+ 76
14 llc               0x009380d4 llvm::MPPassManager::runOnModule(llvm::Module&)
+ 292
15 llc               0x009386fe llvm::PassManagerImpl::run(llvm::Module&) + 222
16 llc               0x00938ceb llvm::PassManager::run(llvm::Module&) + 27
17 llc               0x00022364 main + 4804
18 llc               0x00021095 start + 53
Stack dump:
0.    Program arguments: Release+Asserts/bin/llc ARMMCCodeEmitter.bc 
1.    Running pass 'Function Pass Manager' on module 'ARMMCCodeEmitter.bc'.
2.    Running pass 'X86 AT&T-Style Assembly Printer' on function
'@_ZNK12_GLOBAL__N_116ARMMCCodeEmitter25getAddrMode2OffsetOpValueERKN4llvm6MCInstEjRNS1_15SmallVectorImplINS1_7MCFixupEEE'
Illegal instruction

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