[LLVMbugs] [Bug 22713] New: Gold plugin crash when given old debug info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 26 09:47:31 PST 2015


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

            Bug ID: 22713
           Summary: Gold plugin crash when given old debug info
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13951
  --> http://llvm.org/bugs/attachment.cgi?id=13951&action=edit
testcase

The attached testcase is the output of "clang -gline-tables-only" on

void f(void) {}

When running

$ ld -plugin ./build/lib64/LLVMgold.so -shared 3.5.bc  -o t.so

with a trunk plugin we get a crash:

/home/espindola/llvm/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1329: void
llvm::DwarfDebug::recordSourceLine(unsigned int, unsigned int, const
llvm::MDNode *, unsigned int): Assertion `Scope.isScope()' failed.

The issue is that UpgradeDebugInfo is called from MaterializeModule, which the
plugin tries very hard to avoid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150226/bfddef0e/attachment.html>


More information about the llvm-bugs mailing list