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

Filter out exceptions not meant for the current task on macOS #32

Open
gabrielesvelto opened this issue May 25, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@gabrielesvelto
Copy link
Contributor

On macOS the child process fork()-ed from a parent which had set a handler for the exception ports will inherit the handler. This can lead to exceptions for a process being delivered to a different one, forcing the exception handler to manually forward exceptions. Additionally it's possible to forward the exceptions that aren't handled or expected to the system exception handler so that macOS can pop up its own crash reporter for those cases. We do this magic dance (see here, here and here) in Firefox' modified Breakpad handler. Note that a large chunk of that is generated via an Apple script (as described here) and then modified for our use. In my experience the script generates different code in different versions but it usually "just works" across all of them.

I'm not sure where this machinery could fit but I'm filing this issue so that it's documented and I don't forget about it.

@gabrielesvelto gabrielesvelto added the enhancement New feature or request label May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant