[llvm-bugs] [Bug 36744] New: llvm-objdump -unwind-info SEGVs on ntdll.dll
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 14 12:58:54 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=36744
Bug ID: 36744
Summary: llvm-objdump -unwind-info SEGVs on ntdll.dll
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: w.parker.thompson at gmail.com
CC: llvm-bugs at lists.llvm.org
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)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180314/4b029e0e/attachment.html>
More information about the llvm-bugs
mailing list