<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - rustc ThinLTO-generated IR yields more dwarfdump errors"
href="https://bugs.llvm.org/show_bug.cgi?id=35562">35562</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>rustc ThinLTO-generated IR yields more dwarfdump errors
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@crichton.co
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19526" name="attach_19526" title="IR reproduction">attachment 19526</a> <a href="attachment.cgi?id=19526&action=edit" title="IR reproduction">[details]</a></span>
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
(<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - rustc ThinLTO-generated IR yields dwarfdump error"
href="show_bug.cgi?id=35212#c20">https://bugs.llvm.org/show_bug.cgi?id=35212#c20</a>) but in talking to davide on
IRC we were encouraged to open a new bug!
The upstream rust-lang/rust bug for this is
<a href="https://github.com/rust-lang/rust/issues/46346">https://github.com/rust-lang/rust/issues/46346</a> with a minimization linked at
<a href="https://github.com/rust-lang/rust/issues/46346#issuecomment-348444079">https://github.com/rust-lang/rust/issues/46346#issuecomment-348444079</a>, 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!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>