8000 feat: Exit after a successful minidump on macOS to skip Apple's crash reporter by timfish · Pull Request #16 · timfish/minidumper-child · GitHub
[go: up one dir, main page]

Skip to content

feat: Exit after a successful minidump on macOS to skip Apple's crash reporter - #16

Merged
timfish merged 3 commits into
mainfrom
feat/skip-macos-crash-reporter
Oct 22, 2026
Merged

timfish merged 3 commits into
mainfrom
feat/skip-macos-crash-reporter

Conversation

@timfish
@timfish timfish commented Oct 22, 2026 •
Copy link
Copy Markdown
Owner

On macOS, crash-handler lets the crash signal kill the process after the dump, so the kernel raises EXC_CRASH and Apple's crash reporter shows the "quit unexpectedly" dialog.

This PR changes to call _exit(1) in the crash callback once request_dump succeeds, which is what Breakpad does and what Crashpad does when system reporter forwarding is off. On macOS request_dump always returns MACH_RCV_TOO_LARGE because crash-context reads the server's ack into a buffer with no room for the kernel trailer, so that error is treated as a written dump. Any other failure still returns Handled(false) so the system reporter runs as the fallback, and Linux and Windows are unchanged.

The e2e test now runs the example binary directly and asserts the exit status.

@timfish
timfish merged commit 7500498 into main Oct 22, 2026
3 checks passed
szokeasaurusrex pushed a commit to getsentry/sentry-rust that referenced this pull request Oct 27, 2026
…ssful dumping (#1368)

On macOS, the system crash handler was displayed even when we
successfully capture and send the minidump. This is in contrast to the
Windows behaviour where WER is skipped when successful. This change
brings the macOS behaviour in line with Windows, Breakpad and Crashpad.

- Ref timfish/minidumper-child#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0