[llvm-bugs] [Bug 42438] New: debug_names in clang does not work properly with type_units (DWARF 5)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 28 11:01:32 PDT 2019


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

            Bug ID: 42438
           Summary: debug_names in clang does not work properly with
                    type_units (DWARF 5)
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: cmtice at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

When generating type_units, llvm will sometimes optimistically try to generate
type units, and then throw them away when it cannot complete the operation (see
the comment at the top of DwarfDebug::addDwarfTypeUnitType).  This is not
compatible with current debug_names, as the type unit gets added to debug_names
when created, but not removed when it gets thrown away, so debug_names ends up
pointing to a non-existent type unit.

LLVM needs to be modified either to remove the type unit from the accelerator
table, or to not add it to the accelerators until we're sure the type unit will
be used, or by modifying the type unit generation so that ti does not do these
opportunistic attempts.

-- 
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/20190628/bc5be616/attachment.html>


More information about the llvm-bugs mailing list