[llvm-bugs] [Bug 44433] New: MachOObjectFile::exports crashes with msvc 32-bit
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 1 17:53:59 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44433
Bug ID: 44433
Summary: MachOObjectFile::exports crashes with msvc 32-bit
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Object
Assignee: unassignedbugs at nondot.org
Reporter: dpldobrev at protonmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 22975
--> https://bugs.llvm.org/attachment.cgi?id=22975&action=edit
The Mach-o library which causes the crash
Steps to reproduce:
1. Check out LLVM SHA-1 54c522420347e58aa7bae1892cf5c5672b57c875 from
https://github.com/llvm/llvm-project/;
2. Build llvm-objdump
(https://github.com/llvm/llvm-project/tree/master/llvm/tools/llvm-objdump) with
msvc 32-bit;
3. Run it using the attached file with options: -macho --exports-trie
libexpat-osx
It crashes with:
> CppSharp.CppParser.exe!llvm::object::ExportEntry::pushDownUntilBottom() Line 2998 C++
CppSharp.CppParser.exe!llvm::object::ExportEntry::moveNext() Line 3072
C++
[Inline Frame]
CppSharp.CppParser.exe!llvm::object::content_iterator<llvm::object::ExportEntry>::operator++()
Line 89 C++
CppSharp.CppParser.exe!llvm::printMachOExportsTrie(const
llvm::object::MachOObjectFile * Obj) Line 10257 C++
[Inline Frame] CppSharp.CppParser.exe!llvm::printExportsTrie(const
llvm::object::ObjectFile *) Line 10489 C++
CppSharp.CppParser.exe!llvm::ProcessMachO(llvm::StringRef Name,
llvm::object::MachOObjectFile * MachOOF, llvm::StringRef ArchiveMemberName,
llvm::StringRef ArchitectureName) Line 2006 C++
CppSharp.CppParser.exe!llvm::parseInputMachO(llvm::StringRef Filename)
Line 2369 C++
CppSharp.CppParser.exe!llvm::dumpInput(llvm::StringRef file) Line 2268
C++
[Inline Frame]
CppSharp.CppParser.exe!std::for_each(std::_Vector_iterator<std::_Vector_val<std::_Simple_types<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> > > >) Line 92 C++
[Inline Frame]
CppSharp.CppParser.exe!llvm::for_each(llvm::cl::list<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,bool,llvm::cl::parser<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> > > &) Line 1176 C++
CppSharp.CppParser.exe!main(int argc, char * * argv) Line 2336 C++
--
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/20200102/28d8bad6/attachment.html>
More information about the llvm-bugs
mailing list