[LLVMbugs] [Bug 5370] New: Debug info for nameless global crashes codegen

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 2 08:09:37 PST 2009


           Summary: Debug info for nameless global crashes codegen
           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: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=3744)
 --> (http://llvm.org/bugs/attachment.cgi?id=3744)
testcase .ll

$ llc debug_noname.ll
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid

I hit this a lot with Fortran (llvm-gcc crashes on about two thirds of the
Fortran programs I have here when building with debug info).  The reason is
that Fortran generates CONSTANT_DECL nodes, which become nameless LLVM global
variables (these nodes never have an assembler name).  This results in llvm-gcc
generating debug info where there is no display name.  DwarfWriter calls
DwarfDebug::CreateGlobalVariableDIE, which calls getDisplayName, which tries to
dereference a NULL name.

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