<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55969>55969</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
ELF file with symbol table containing incorrect section entry size causes llvm-objdump to crash
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Alan-Jowett
</td>
</tr>
</table>
<pre>
[crash-5ed2f6c25a8e8828689e28c5021b1da46f277d4e.zip](https://github.com/llvm/llvm-project/files/8874607/crash-5ed2f6c25a8e8828689e28c5021b1da46f277d4e.zip)
C:\artifacts>llvm-objdump --syms crash-5ed2f6c25a8e8828689e28c5021b1da46f277d4e
crash-5ed2f6c25a8e8828689e28c5021b1da46f277d4e: file format elf64-bpf
SYMBOL TABLE:
LLVM ERROR: Invalid data was encountered while parsing the file
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: llvm-objdump --syms crash-5ed2f6c25a8e8828689e28c5021b1da46f277d4e
#0 0x00007ff74bcfc596 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x49c596 (C:\Program Files\LLVM\bin\llvm-objdump.exe+0x49c596)
#1 0x00007ff74bcfc596
#2 0x00007ff74bcfc596 (C:\Program Files\LLVM\bin\llvm-objdump.exe+0x49c596)
#3 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x467572 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x46759a
#4 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0xc2eb C:\Program Files\LLVM\bin\llvm-objdump.exe 0x421a10
#5 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x41025a C:\Program Files\LLVM\bin\llvm-objdump.exe 0x4220e4
#6 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x72ba C:\Program Files\LLVM\bin\llvm-objdump.exe 0x71c0
#7 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x127bb C:\Program Files\LLVM\bin\llvm-objdump.exe 0x85f3
#8 0x00007ffcc9c81881 C:\Program Files\LLVM\bin\llvm-objdump.exe 0x61aeb0 (C:\Windows\System32\ucrtbase.dll+0x71881)
#9 0x00007ffcc9c81881
#10 0x00007ffcc9c81881 (C:\Windows\System32\ucrtbase.dll+0x71881)
0x00007FF74BCFC596 (0x00001A6BFE214974 0x00007FF74BCFD00D 0x0000000000000016 0x00007FF74BCFC590)
0x00007FFCC9C81881 (0x000000D5D2B8E501 0x0000000000000000 0x0000000000000000 0x000000D5D2B8E500), raise() + 0x1E1 bytes(s)
0x00007FFCC9C82851 (0x0000000000000003 0x000000D500000003 0x0000000000000000 0x000000D5D2B8E670), abort() + 0x31 bytes(s)
0x00007FF74BCC7572 (0x000000010000001B 0x00007FF74BC700EB 0x0000000000000001 0x000000D5D2B8EB10)
0x00007FF74BCC759A (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF74B86C2EB (0x0000000000000008 0x000000D5D2B8E6F0 0x0000000000000001 0x0000000000000000)
0x00007FF74BC81A10 (0x00007FF74C949CB8 0x000000D5D2B8E790 0x000000000000000E 0x0000000000000100)
0x00007FF74BC7025A (0x0000000000000002 0x00007FFCC979169A 0x0000000000000000 0x0000000000000000)
0x00007FF74BC820E4 (0x0000000000000000 0x00007FF74BE7DF63 0x0000000000000002 0x00007FF700000002)
0x00007FF74B8672BA (0x000000D5D2B8EAD0 0x00007FFCC9D00E40 0x0000000000000000 0x00007FFCC9C22690)
0x00007FF74B8671C0 (0x0000000000000000 0x0000023AD0DA1080 0x0000023AD0BD0000 0x0000023AD0DA0000)
0x00007FF74B8727BB (0x0000023AD0BD4DC0 0x0000000000000010 0x0000023AD0BE6698 0x00007FFCC9C1FDE6)
0x00007FF74B8685F3 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF74BE7AEB0 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFCCA227034 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFCCC022651 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
This was found when attempting to use llvm-objdump to better understand this crash:
https://github.com/microsoft/ebpf-for-windows/issues/1191
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9WNuOozgQ_ZrkxUpkm4vNQx64SrPKaEY9vbvaRwMmYYZAZJvp6fn6LQi5dUhWnY4WRRAKu85xuVzmkDb562LiBJkSej1zZE4LN6OO4JJzyl3uScozB1OSklzYbkEZy205_11uJ040oXxtzFZPLH9CE_itSrNu03nWbOCmqn7uL7Otar7LzMBtUVZSw5VzZruYwb87oKk3wdEE-7tz2OE7oVCmLERmgE7cgzbp97zdbNFspl83Gr0P5xTgnT0tH3WjREWjNsIgWRWuPUu3xanLb_98Dr4s0bMfLOOOfm9cLv_6jOKnpy9PnY9P9U9RlTnKhRHoRWgk66xpayOVzNHLukPYCqXLeoXMWvaQOzdfl7H_LUa6TTelQQKl7QopuW2UQaZB5zMGz_S8i9a8USu4R6LOUVlnVZvL3m0_dpSK7IdRIpPzgb4BA-qieyCP56g_vqpmpcQGCbVqN7LupsNHj5oPNKEWRvgXhoMVBbPTrMgcz0VDDuzBkz7LnLCLKFzSsobzKYm5_CXBj-31vSGR73EwocHexSElO4ZkhOHxKR3j_2AG1hEjy7yME87J3TFymcPoR3p74sjMfiCzjMr0bl6UCIKPvJxHRoxgyOf7mVEs7SMz94HMGE3v5sVIdhIv9kBWhLL07onkTmEdafEH0nKJkCk-WZp_l3XevHRdv71qIzcWhb9tpkwqtJznVdUvR9Zhnq1Gb4TUsBlAscBjlD8GOjhMEmYHYRIOBWZnJb4bJDEltscOa3FoGGEcDabjQVx04Q5fIo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