[llvm-bugs] [Bug 35562] New: rustc ThinLTO-generated IR yields more dwarfdump errors

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 7 10:23:12 PST 2017


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

            Bug ID: 35562
           Summary: rustc ThinLTO-generated IR yields more dwarfdump
                    errors
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvm-bugs at lists.llvm.org

Created attachment 19526
  --> https://bugs.llvm.org/attachment.cgi?id=19526&action=edit
IR reproduction

Hello again! Awhile ago we opened 35212 from the Rust project for invalid DWARF
information and while that case was specifically fixed we're unfortunately
running into some more issues now :(

Philip left a comment at the end of that bug
(https://bugs.llvm.org/show_bug.cgi?id=35212#c20) but in talking to davide on
IRC we were encouraged to open a new bug!

The upstream rust-lang/rust bug for this is
https://github.com/rust-lang/rust/issues/46346 with a minimization linked at
https://github.com/rust-lang/rust/issues/46346#issuecomment-348444079, attached
to this bug as well. The issue can be reproduced with:

    $ llc foo.ll -filetype=obj -o foo.o
    $ dwarfdump -i foo.o > /dev/null
    dwarfdump ERROR:  reference form with no valid local ref?!,
offset=<0x00000060>:  DW_DLE_ATTR_FORM_OFFSET_BAD (119)

I'll cc Philip here as well b/c they know far more about the details here than
I!

-- 
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/20171207/d086c68a/attachment.html>


More information about the llvm-bugs mailing list