<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 - llvm-objdump -unwind-info SEGVs on ntdll.dll"
href="https://bugs.llvm.org/show_bug.cgi?id=36744">36744</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-objdump -unwind-info SEGVs on ntdll.dll
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>w.parker.thompson@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>When processing a .pdata of ntdll, the NumRFs calculation appears to be longer
than the actual array of RuntimeFunction's in the section.
Reproduction (binary attached):
llvm-objdump -unwind-info ntdll.dll
<snip>
Function Table:
Start Address: 0x95370
End Address: 0x953e7
Unwind Info Address: 0x12a148
Version: 2
Flags: 0
Size of prolog: 44
Number of Codes: 20
No frame pointer used
Unwind Codes:
#0 0x000055d6465b8289 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(./bin/llvm-objdump+0x526289)
#1 0x000055d6465b6876 llvm::sys::RunSignalHandlers()
(./bin/llvm-objdump+0x524876)
#2 0x000055d6465b69cc SignalHandler(int) (./bin/llvm-objdump+0x5249cc)
#3 0x00007f5d11079da0 __restore_rt (/usr/lib/libpthread.so.0+0x11da0)
#4 0x00007f5d0fccea08 __memmove_avx_unaligned_erms
(/usr/lib/libc.so.6+0x157a08)
#5 0x000055d6465a0dcd llvm::raw_ostream::copy_to_buffer(char const*, unsigned
long) (./bin/llvm-objdump+0x50edcd)
#6 0x000055d6465a0e62 llvm::raw_ostream::write(char const*, unsigned long)
(./bin/llvm-objdump+0x50ee62)
#7 0x000055d6462b45d5 printWin64EHUnwindInfo(llvm::Win64EH::UnwindInfo const*)
(./bin/llvm-objdump+0x2225d5)
#8 0x000055d6462b8d93 llvm::printCOFFUnwindInfo(llvm::object::COFFObjectFile
const*) (./bin/llvm-objdump+0x226d93)
#9 0x000055d6462b2513 DumpObject(llvm::object::ObjectFile*,
llvm::object::Archive const*) (./bin/llvm-objdump+0x220513)
#10 0x000055d64627b4bb main (./bin/llvm-objdump+0x1e94bb)
#11 0x00007f5d0fb97f4a __libc_start_main (/usr/lib/libc.so.6+0x20f4a)
#12 0x000055d64629bbea _start (./bin/llvm-objdump+0x209bea)</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>