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

Return from hardware exception signal handler before processing an exception on Unix #106645

Open
janvorli opened this issue Aug 19, 2024 · 0 comments
Assignees
Milestone

Comments

@janvorli
Copy link
Member

We currently never return from SIGSEGV and other hardware exception handlers on Unix. We process the exception and resume execution somewhere. This is problematic on some Unixes like Illumos where not returning from the handler skips some of the bookkeeping stuff that the return from the handler does. For example, the alternate stack is not used after a first invocation of the SIGSEGV handler on Illumos (and if we ever moved to signals for handling hardware exceptions on macOS, it has similar problem).

Consider changing the hardware exception handling to return from the signal handler redirected to a helper function instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant