Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac: Produce coredumps on segfault #46157

Merged
merged 1 commit into from
Jul 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/signals-mach.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ typedef arm_exception_state64_t host_exception_state_t;
#define HOST_EXCEPTION_STATE_COUNT ARM_EXCEPTION_STATE64_COUNT
#endif

#define MIG_DESTROY_REQUEST -309

static void jl_call_in_state(jl_ptls_t ptls2, host_thread_state_t *state,
void (*fptr)(void))
{
Expand Down Expand Up @@ -332,9 +334,7 @@ kern_return_t catch_mach_exception_raise(
return KERN_SUCCESS;
}
else {
thread0_exit_count++;
jl_exit_thread0(128 + SIGSEGV, NULL, 0);
return KERN_SUCCESS;
return MIG_DESTROY_REQUEST;
}
}

Expand Down