[LLVMbugs] [Bug 5246] New: llc: crash when debuginfo present

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Oct 19 02:25:31 PDT 2009


           Summary: llc: crash when debuginfo present
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

With code compiled by ToT clang, and compiled with ToT llc, llc crashes:

/home/edwin/llvm-git/obj/Release/bin/llc -O0 -o
bugpoint-test-program.bc-NdCVZz.llc.s bugpoint-test-program.bc-NdCVZz
0   llc             0x0000000000b6b18f                                          
1   llc             0x0000000000b6ce59                                          
2   libpthread.so.0 0x00007f1d715f59a0                                          
3   llc             0x0000000000ae5963
llvm::Mangler::getMangledName(llvm::GlobalValue const*, char const*, bool) + 35 
4   llc             0x000000000085c5e7                                          
5   llc             0x000000000085ed14                                          
6   llc             0x000000000085f030                                          
7   llc             0x000000000084b68d
llvm::DwarfWriter::EndFunction(llvm::MachineFunction*) + 13                     
8   llc             0x00000000005461b9                                          
9   llc             0x0000000000af9201
llvm::FPPassManager::runOnFunction(llvm::Function&) + 561                       
10  llc             0x0000000000af9416
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 166                       
11  llc             0x0000000000af9685
llvm::FunctionPassManager::run(llvm::Function&) + 85                            
12  llc             0x0000000000507d24 main + 6276                              
13  libc.so.6       0x00007f1d70906a8d __libc_start_main + 253                  
14  llc             0x0000000000505939                                          
Stack dump:                                                                     
0.      Program arguments: /home/edwin/llvm-git/obj/Release/bin/llc -O0 -o
bugpoint-test-program.bc-NdCVZz.llc.s bugpoint-test-program.bc-NdCVZz           
1.      Running pass 'X86 AT&T-Style Assembly Printer' on function '@my_getopt' 

If I remove debuginfo (with -opt -strip-debug), it no longer crashes.
Tried to run bugpoint, but it started to test each of the 214k+ instructions

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