<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Functions missing in .arange"
href="https://llvm.org/bugs/show_bug.cgi?id=30569">30569</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Functions missing in .arange
</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>normal
</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>clang@martinien.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Hi,
we have a custom callstack printer that does not work on clang 3.9 anymore. It
unwinds the stack and looks up function/file name/line number for the code
locations from DWARF. But for some functions properly listed in .debuginfo with
DW_AT_low_pc/DW_AT_high_pc there is no corresponding code location in the
.arange section which could be mapped to a translation unit, so for some frames
we get missing file names/line numbers.
This only affects some functions in a translation unit. I have a pretty small
reproducer which has one function with correct and one with broken .arange
info, unfortunately I still depend on a custom STL implementation which pulls
in lots of headers which I cannot attach here :(
Comparing the output between clang 3.7 and 3.9 I see that the location info for
the two functions get merged into one chunk in 3.7, so the printer can find the
translation unit for both functions using that info. In 3.9 this merging does
not seem to happen and the code area of one function is listed only.
I tried to bisect but hit <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crash with -generate-arange-section"
href="show_bug.cgi?id=27728">bug 27728</a> in between.
I will continue trying to reduce the reproducer, but perhaps someone has an
idea already?
Thanks and Best regards,
Martin</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>