Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfaults after callbacks originating in JIT compiled calls to na…
…tive code Before running a non-toplevel frame, we need to make sure, the caller's frame has a valid return_address. While MVM_nativecall_invoke_jit and MVM_nativecall_invoke did so, the JIT implementation of calls to JIT compiled native functions did not. This could lead to segfaults when native code called from JIT compiled code ran callbacks which then tried to return to the NULL address. Fix by initializing tc->cur_frame->return_address in the callback_handler, so it doesn't matter how we ended up there.
- Loading branch information