[LLVMbugs] [Bug 17056] New: llvm-nm crashes when processing an archive

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 2 03:40:16 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17056

            Bug ID: 17056
           Summary: llvm-nm crashes when processing an archive
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: labath at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11133
  --> http://llvm.org/bugs/attachment.cgi?id=11133&action=edit
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.

-- 
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/20130902/c0c41d55/attachment.html>


More information about the llvm-bugs mailing list