[llvm-bugs] [Bug 41038] New: Crash with debug entries not fitting into 2^16 bytes (dwarf < 5)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 11 14:18:17 PDT 2019


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

            Bug ID: 41038
           Summary: Crash with debug entries not fitting into 2^16 bytes
                    (dwarf < 5)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: florian_hahn at apple.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

Created attachment 21584
  --> https://bugs.llvm.org/attachment.cgi?id=21584&action=edit
exceeds size limit with dwarf < 5

Currently LLVM crashes when we have too many debug values and exceed the 2^16
byte size in DwarfDebug::emitDebugLocEntryLocation.

Attached is a reduced example (still has around 16k llvm.dbg.value calls),
which crashes with `clang -Os`.

I am happy to look into the issue, but I would appreciate your thoughts on what
to do if we have too many debug entries.

-- 
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/20190311/1e990826/attachment.html>


More information about the llvm-bugs mailing list