[LLVMbugs] [Bug 2927] New: Calling a function from the JIT segfaults.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 21 15:28:25 PDT 2008


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

           Summary: Calling a function from the JIT segfaults.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ofv at wanadoo.es
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2119)
 --> (http://llvm.org/bugs/attachment.cgi?id=2119)
C++ tests case that crashes when calling C function.

On the x86-64 JIT, calling a C function registered via
ExecutionEngine::addGlobalMapping, produces a crash.

Inpecting the JIT'ed generated machine code shows that the call does not refer
the address of the C function. It is like the global mapping for the function
didn't exist.

Attached is a C++ test case that crashes on x86-64 and succeeds on x86.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list