<html>
    <head>
      <base href="https://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 --- - Crash when running llvm-lib" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24066&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=sRV4XfPFMI3fdKdEpImHRgJOyAkz8bMMB7Uh-UyzrP8&s=Ys4__CxqkBC1LGXElgKrkeW_1DQ5yz6CdZ5xKXZo4nA&e=">24066</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash when running llvm-lib
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>llvm-ar
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aaron@aaronballman.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>I compiled the following trivial C program using clang -c to generate a .o file
named test.o:

extern int func(void) {
  return 42;
}

I then ran llvm-lib test.o in an attempt to generate a .lib file from the
object file. This resulted in an unreachable error:

e:\llvm\2013>llvm-lib test.o
internal error
UNREACHABLE executed at E:\llvm\llvm\lib\LibDriver\LibDriver.cpp:69!
0x0145BA39 (0x00000016 0x25424DB0 0x00C6F2A8 0x00C6F128), HandleAbort() + 0x9
by
tes(s), e:\llvm\llvm\lib\support\windows\signals.inc, line 296
0x0F7BF7F9 (0x00000016 0x0145BA30 0x00C6F12C 0x01431A09), raise() + 0x2B9
bytes(
s)
0x0F7CB284 (0x00C6F6D8 0x00C6F2A8 0x013DB198 0x022C139C), abort() + 0x34
bytes(s
)
0x01431A09 (0x022C139C 0x022C1370 0x00000045 0x00C6F6D0),
llvm::llvm_unreachable
_internal() + 0x89 bytes(s), e:\llvm\llvm\lib\support\errorhandling.cpp, line
11
7 + 0x8 byte(s)
0x013DB198 (0x00C6F380 0x00C6F4F0 0x00C6F450 0x00000001), getOutputPath() +
0x1F
8 bytes(s), e:\llvm\llvm\lib\libdriver\libdriver.cpp, line 70
0x013DAC95 (0x00C6F678 0x00000002 0x00000000 0x00000000), llvm::libDriverMain()
+ 0x645 bytes(s), e:\llvm\llvm\lib\libdriver\libdriver.cpp, line 147 + 0x1C
byte
(s)
0x011CC4DE (0x00000002 0x00F60ED8 0x00F64B08 0xA4E6858F), main() + 0xEE
bytes(s)
, e:\llvm\llvm\tools\llvm-ar\llvm-ar.cpp, line 727 + 0x28 byte(s)
0x015EB479 (0x00C6F7B4 0x758D337A 0x7EFDE000 0x00C6F7F4), __tmainCRTStartup() +
0x199 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 626 + 0x19
byte
(s)
0x015EB5BD (0x7EFDE000 0x00C6F7F4 0x773692E2 0x7EFDE000), mainCRTStartup() +
0xD
 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 466
0x758D337A (0x7EFDE000 0xF6E641C6 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0x12 bytes(s)
0x773692E2 (0x015EB5B0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeException
Chain() + 0x63 bytes(s)
0x773692B5 (0x015EB5B0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeException
Chain() + 0x36 bytes(s)</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>