<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 - obj2yaml crashes on object files created by llvm-mc"
href="https://bugs.llvm.org/show_bug.cgi?id=39558">39558</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>obj2yaml crashes on object files created by llvm-mc
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Backend: WebAssembly
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aheejin@gmail.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=21089" name="attach_21089" title="Test case .ll file">attachment 21089</a> <a href="attachment.cgi?id=21089&action=edit" title="Test case .ll file">[details]</a></span>
Test case .ll file
This bug was accidentally discovered while filing
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - AsmParser cannot recognize function types without definitions"
href="show_bug.cgi?id=39557">https://bugs.llvm.org/show_bug.cgi?id=39557</a>. The test case is the same with
PR39557 except now function 'foo' does not take an argument. I don't know why,
but now obj2yaml crashes on reading the object file created from .s file using
llvm-mc. llvm-objdump crashes too.
Commands that reproduce the bug:
```
llc -filetype=asm -asm-verbose=false test.ll -o test.s
llvm-mc -triple=wasm32-unknown-unknown -filetype=obj test.s -o test_from_s.o
obj2yaml test_from_s.o > test_from_s.yaml <-- crashes!
llvm-objdump -disassemble test_from_s.o <-- crashes too!
```</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>