<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 is failing when used with more that one module"
href="http://llvm.org/bugs/show_bug.cgi?id=20851">20851</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>MCJIT is failing when used with more that one module
</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>All
</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>Target-Independent JIT
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>deadalnix@gmail.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>Sample code: <a href="http://pastebin.com/fL1yTVCk">http://pastebin.com/fL1yTVCk</a>
Compilation: gcc fail.c -m64
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --cflags`
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --ldflags`
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --libs` -lc++
-lncurses -lz
$ ./a.out
; ModuleID = 'm1'
; ModuleID = 'm2'
define i32 @foo() {
ret i32 42
}
Bus error: 10
Further exploration showed me that the failure happen when calling the Jitted
function. It look like the generated code is invalid.</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>