<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 --- - MCJIT segfaults with exception handling in OSX"
   href="http://llvm.org/bugs/show_bug.cgi?id=20304">20304</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MCJIT segfaults with exception handling in OSX
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jwajnerman@manas.com.ar
          </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=12764" name="attach_12764" title="foo.ll">attachment 12764</a> <a href="attachment.cgi?id=12764&action=edit" title="foo.ll">[details]</a></span>
foo.ll

The attached example crashes when testing with lli in 3.4:

$ /usr/local/Cellar/llvm/3.4.2/bin/lli -use-mcjit foo.ll
0  libLLVM-3.4.dylib        0x00000001023f35b7
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libLLVM-3.4.dylib        0x00000001023f39a7 SignalHandler(int) + 248
2  libsystem_platform.dylib 0x00007fff8a3075aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1976535664
4  libsystem_platform.dylib 0x0000000102c8845d _sigtramp + 2023231181
5  libLLVM-3.4.dylib        0x0000000102097ddb
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, char
const* const*) + 1315
6  lli                      0x0000000101d46d94
7  libdyld.dylib            0x00007fff952175fd start + 1
8  libdyld.dylib            0x0000000000000003 start + 1792969223
Stack dump:
0.    Program arguments: /usr/local/Cellar/llvm/3.4.2/bin/lli -use-mcjit foo.ll 
Segmentation fault: 11

It works fine with 3.3 or with 3.3 and 3.4 in Linux.</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>