Change the sigsegv_leave_handler API so that it can be correctly implemented on