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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 2 05:39:44 PDT 2013


labath at google.com changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from labath at google.com ---
Removing bin/llvm-ranlib does indeed make the problem go away (thanks for
that). However, I believe this only solves half of the problem. The first issue
I mentioned still exists: I do not think llvm-nm should crash when processing a
corrupted file, even if that file was produced by accident. If it's not
possible to recover from that situation then we should replace the call to
llvm_unreachable by exit() and an error message, but for example GNU nm just
prints a message about unrecognized format and then it continues to parse the
rest of the files in the archive (apparently correctly).

I will reopen this so that someone else has a chance to look at it.

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/547db0b2/attachment.html>

More information about the llvm-bugs mailing list