Skip to content

Calling a function from the JIT segfaults. #3299

@oscarfv

Description

@oscarfv
mannequin
Bugzilla Link 2927
Resolution FIXED
Resolved on Nov 19, 2008 21:13
Version trunk
OS Windows 2000
Attachments C++ tests case that crashes when calling C function., C++ tests case that crashes when calling C function, C++ tests case that crashes when calling C function (fixed)
CC @asl

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions