<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90460>90460</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/lib/DWP handling of debug_str_offsets with multiple contributions produces invalid output
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
molar
</td>
</tr>
</table>
<pre>
Hello
I encountered a crash in llvm-dwarfdump which i report here https://github.com/llvm/llvm-project/issues/85900
I have investigated a bit further and it appears that in DWARF5 the ``debug_str_offsets`` section can contain multiple contributions each with their own header. This is not accounted for in the current code that merges the sections.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckkGL3DgQhX-NfCmmkWV73D74MEtjdm9LCMxxKEtlS0GWjFSaJv8-2D1DAiGXXCSokoqv3nuYs1sD0Si6f0R3q7CwjWncosdUzdF8H_8l7yMIeRPy5XH-BxR0LIEpkQEEnTBbcAG8f9-ezB3TYsq2w906bcFBoj0mBkuJwDLvWTQvQk1CTatjW-aLjptQ0_H743raU_xGmoWaXM6FslDTtRukhE8Ci-8ELrxTZrcinxyzY1hKYksJMBhwDLjvhCkDW-SD8Pb68mXqgC2BeJbiWRqay_qWOb3FZcnE-VGGTJpdDKAxgI6B0QXYime3ezoLyc3leJGBUFu4O7bHWJcg3gNYQkPpAl-ty-AyhMiA-iGagSWmA-ag0CUlCgw6GnpQbpRWymfzAyJfflW_MmNjhmbAisa6r9tmUH2nKjv2qr9KSddetbPpGjWjUlrVPQ5dv1wlVm5UUrWyVUOtatWoS12rRbWEspu1aXARraQNnb8cHlxiWqtT_XGQ7bOsPM7k8xkUpQLd4WwKpY7cpPH0bS5rFq30LnP-OYUdexo__XWzUNPt9X-wGIx3YYW4wG8-PBT9g-R7iqZoykcC0DsDsfBeuCrJj3-fsHPNHwEAAP__jTwIEw">