[llvm-bugs] [Bug 31437] New: Assertion with LTO and debug info when mixing -g and -gmlt

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 20 12:34:04 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31437

            Bug ID: 31437
           Summary: Assertion with LTO and debug info when mixing -g and
                    -gmlt
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17776
  --> https://llvm.org/bugs/attachment.cgi?id=17776&action=edit
two .cpp files and a .sh script to reproduce

If we compile one module with -g and another with -gmlt this can trigger
a crash in DwarfDebug.

llc:
/home/probinson/projects/llvm-org/trunk/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1216:
virtual void llvm::DwarfDebug::endFunction(const llvm::MachineFunction*):
Assertion `DbgValues.empty()' failed.

It looks like this assert was added in r218129.
Also another one next to it, for AbstractVariables.empty().
We should be able to conjure up repro for that one too if you want.

-- 
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/20161220/72bdbe4d/attachment.html>


More information about the llvm-bugs mailing list