<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - llvm-nm crashes when processing an archive"
href="http://llvm.org/bugs/show_bug.cgi?id=17056">17056</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-nm crashes when processing an archive
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>labath@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11133" name="attach_11133" title="File causing the crash.">attachment 11133</a> <a href="attachment.cgi?id=11133&action=edit" title="File causing the crash.">[details]</a></span>
File causing the crash.
$ build-opt/bin/./llvm-nm -s
build-opt/test/Object/Output/archive-symtab.test.tmp.a
trivial-object-test.elf-x86-64:
U SomeOtherFunction
00000000 T main
U puts
Invalid alignment for ELF file!
UNREACHABLE executed at ../lib/Object/ELFObjectFile.cpp:67!
0 llvm-nm 0x000000000055e815
1 llvm-nm 0x000000000055ec79
2 libpthread.so.0 0x00007f4e10973cb0
3 libc.so.6 0x00007f4e102db425 gsignal + 53
4 libc.so.6 0x00007f4e102deb8b abort + 379
5 llvm-nm 0x0000000000540224
6 llvm-nm 0x000000000042dd75
7 llvm-nm 0x000000000042b397
8 llvm-nm 0x000000000042a1a9
9 llvm-nm 0x0000000000409693
10 libc.so.6 0x00007f4e102c676d __libc_start_main + 237
11 llvm-nm 0x00000000004086f9
Stack dump:
Aborted (core dumped)
This started happening after r189489. The Object/archive-symtab.test test
produces an invalid archive and then llvm-nm crashes, so it may be actually two
bugs for the price of one.
- llvm-nm should not crash, even on invalid input.
- the invalid archive should not have been introduced in the first place.
I am unsure why this breakage was not detected any of the build bots. I suppose
it must be some strange combination of build flags I have set.</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>