llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.87k stars 11.92k forks source link

pdb2yaml crash #96534

Open edmcman opened 4 months ago

edmcman commented 4 months ago
Stack dump:
0.  Program arguments: llvm-pdbutil pdb2yaml 0ad0b9dfa3df17b96ecc37a692f69d86.exe.pdb --all
 #0 0x0000072503e3fd01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3fd01)
 #1 0x0000072503e3da3e llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3da3e)
 #2 0x0000072503e40236 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe40236)
 #3 0x0000072502842520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x0000072505535819 llvm::yaml::ScalarEnumerationTraits<llvm::codeview::RegisterId, void>::enumeration(llvm::yaml::IO&, llvm::codeview::RegisterId&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x2535819)
 #5 0x0000072505536ed9 llvm::CodeViewYAML::detail::SymbolRecordImpl<llvm::codeview::RegisterSym>::map(llvm::yaml::IO&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x2536ed9)
 #6 0x000007250553f2bd (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x253f2bd)
 #7 0x000007250553e1a5 llvm::yaml::MappingTraits<llvm::CodeViewYAML::SymbolRecord>::mapping(llvm::yaml::IO&, llvm::CodeViewYAML::SymbolRecord&) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x253e1a5)
 #8 0x000000000049f3ce std::enable_if<has_SequenceTraits<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> > >::value, void>::type llvm::yaml::yamlize<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >, llvm::yaml::EmptyContext>(llvm::yaml::IO&, std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >&, bool, llvm::yaml::EmptyContext&) (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49f3ce)
 #9 0x0000000000498fda (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498fda)
#10 0x000000000049fafd (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49fafd)
#11 0x000000000049f86c (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49f86c)
#12 0x00000000004991da (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4991da)
#13 0x000000000049ed9b (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49ed9b)
#14 0x0000000000498de7 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498de7)
#15 0x000000000049ba76 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x49ba76)
#16 0x0000000000498268 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x498268)
#17 0x00000000004b2fbe (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4b2fbe)
#18 0x00000000004af1be (/usr/lib/llvm-14/bin/llvm-pdbutil+0x4af1be)
#19 0x0000000000468aaa (/usr/lib/llvm-14/bin/llvm-pdbutil+0x468aaa)
#20 0x0000072502829d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#21 0x0000072502829e40 call_init ./csu/../csu/libc-start.c:128:20
#22 0x0000072502829e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#23 0x000000000041ad25 (/usr/lib/llvm-14/bin/llvm-pdbutil+0x41ad25)
fish: Job 1, 'llvm-pdbutil pdb2yaml 0ad0b9dfa…' terminated by signal SIGSEGV (Address boundary error)

pdb.zip

EugeneZelenko commented 4 months ago

Could you please try 18 or main branch?

edmcman commented 4 months ago

My apologies, here is -18:

Stack dump:
0.  Program arguments: llvm-pdbutil-18 pdb2yaml 0ad0b9dfa3df17b96ecc37a692f69d86.exe.pdb --all
 #0 0x00000bd2a3f94716 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0xd94716)
 #1 0x00000bd2a3f926d0 llvm::sys::RunSignalHandlers() (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0xd926d0)
 #2 0x00000bd2a3f94ddb (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0xd94ddb)
 #3 0x00000bd2a2a42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00000bd2a57c2ee9 llvm::yaml::ScalarEnumerationTraits<llvm::codeview::RegisterId, void>::enumeration(llvm::yaml::IO&, llvm::codeview::RegisterId&) (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0x25c2ee9)
 #5 0x00000bd2a57c4749 llvm::CodeViewYAML::detail::SymbolRecordImpl<llvm::codeview::RegisterSym>::map(llvm::yaml::IO&) (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0x25c4749)
 #6 0x00000bd2a57ccc50 (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0x25ccc50)
 #7 0x00000bd2a57cbc6b llvm::yaml::MappingTraits<llvm::CodeViewYAML::SymbolRecord>::mapping(llvm::yaml::IO&, llvm::CodeViewYAML::SymbolRecord&) (/usr/lib/llvm-18/bin/../lib/libLLVM.so.18.1+0x25cbc6b)
 #8 0x00005b13124b2c60 std::enable_if<has_SequenceTraits<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> > >::value, void>::type llvm::yaml::yamlize<std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >, llvm::yaml::EmptyContext>(llvm::yaml::IO&, std::vector<llvm::CodeViewYAML::SymbolRecord, std::allocator<llvm::CodeViewYAML::SymbolRecord> >&, bool, llvm::yaml::EmptyContext&) (/usr/lib/llvm-18/bin/llvm-pdbutil+0x9ac60)
 #9 0x00005b13124ac7ce (/usr/lib/llvm-18/bin/llvm-pdbutil+0x947ce)
#10 0x00005b13124b34dc (/usr/lib/llvm-18/bin/llvm-pdbutil+0x9b4dc)
#11 0x00005b13124b324e (/usr/lib/llvm-18/bin/llvm-pdbutil+0x9b24e)
#12 0x00005b13124ac953 (/usr/lib/llvm-18/bin/llvm-pdbutil+0x94953)
#13 0x00005b13124b24ab (/usr/lib/llvm-18/bin/llvm-pdbutil+0x9a4ab)
#14 0x00005b13124ac5d7 (/usr/lib/llvm-18/bin/llvm-pdbutil+0x945d7)
#15 0x00005b13124af111 (/usr/lib/llvm-18/bin/llvm-pdbutil+0x97111)
#16 0x00005b13124aba42 (/usr/lib/llvm-18/bin/llvm-pdbutil+0x93a42)
#17 0x00005b13124c630e (/usr/lib/llvm-18/bin/llvm-pdbutil+0xae30e)
#18 0x00005b13124c28da (/usr/lib/llvm-18/bin/llvm-pdbutil+0xaa8da)
#19 0x00005b1312484e4f (/usr/lib/llvm-18/bin/llvm-pdbutil+0x6ce4f)
#20 0x00000bd2a2a29d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#21 0x00000bd2a2a29e40 call_init ./csu/../csu/libc-start.c:128:20
#22 0x00000bd2a2a29e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#23 0x00005b131243db25 (/usr/lib/llvm-18/bin/llvm-pdbutil+0x25b25)
fish: Job 1, 'llvm-pdbutil-18 pdb2yaml 0ad0b9…' terminated by signal SIGSEGV (Address boundary error)