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

            Bug ID: 20851
           Summary: MCJIT is failing when used with more that one module
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target-Independent JIT
          Assignee: unassignedb...@nondot.org
          Reporter: deadal...@gmail.com
                CC: llvmbugs@cs.uiuc.edu
    Classification: Unclassified

Sample code: http://pastebin.com/fL1yTVCk

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to