http://llvm.org/bugs/show_bug.cgi?id=5370
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs