Repository navigation
feat: Exit after a successful minidump on macOS to skip Apple's crash reporter - #16
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS,
crash-handlerlets the crash signal kill the process after the dump, so the kernel raisesEXC_CRASHand Apple's crash reporter shows the "quit unexpectedly" dialog.This PR changes to call
_exit(1)in the crash callback oncerequest_dumpsucceeds, which is what Breakpad does and what Crashpad does when system reporter forwarding is off. On macOSrequest_dumpalways returnsMACH_RCV_TOO_LARGEbecausecrash-contextreads 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 returnsHandled(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.