[LLVMbugs] [Bug 20304] New: MCJIT segfaults with exception handling in OSX

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 14 20:40:33 PDT 2014


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

            Bug ID: 20304
           Summary: MCJIT segfaults with exception handling in OSX
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: jwajnerman at manas.com.ar
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20140715/81cc40c6/attachment.html>


More information about the llvm-bugs mailing list