<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 - MachOObjectFile::exports crashes with msvc 32-bit"
href="https://bugs.llvm.org/show_bug.cgi?id=44433">44433</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>MachOObjectFile::exports crashes with msvc 32-bit
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Object
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dpldobrev@protonmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22975" name="attach_22975" title="The Mach-o library which causes the crash">attachment 22975</a> <a href="attachment.cgi?id=22975&action=edit" title="The Mach-o library which causes the crash">[details]</a></span>
The Mach-o library which causes the crash
Steps to reproduce:
1. Check out LLVM SHA-1 54c522420347e58aa7bae1892cf5c5672b57c875 from
<a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a>;
2. Build llvm-objdump
(<a href="https://github.com/llvm/llvm-project/tree/master/llvm/tools/llvm-objdump">https://github.com/llvm/llvm-project/tree/master/llvm/tools/llvm-objdump</a>) with
msvc 32-bit;
3. Run it using the attached file with options: -macho --exports-trie
libexpat-osx
It crashes with:
<span class="quote">> CppSharp.CppParser.exe!llvm::object::ExportEntry::pushDownUntilBottom() Line 2998 C++</span >
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>
<span class="quote">> > > >) Line 92 C++</span >
[Inline Frame]
CppSharp.CppParser.exe!llvm::for_each(llvm::cl::list<std::basic_string<char,std::char_traits<char>,std::allocator<char>
<span class="quote">>,bool,llvm::cl::parser<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> > > &) Line 1176 C++</span >
CppSharp.CppParser.exe!main(int argc, char * * argv) Line 2336 C++</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>