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

Crash: Ensure we never handle faults in faults #16636

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

unknownbrackets
Copy link
Collaborator

Just a bit of paranoia. Makes me wish for the simple syntax D had, scope(exit) { inCrashHandler = false; }.

Also tweaked the DescribeCodePtr lookup in case something was going wrong in it. Maybe it returned 0 and a bunch of invalid blocks matched it, or something.

-[Unknown]

In theory, this shouldn't happen because it won't be in jit space, but
better to be sure.
We only care about the first one in these places anyway.  Also make sure
we don't try to match an invalid block number.
@hrydgard hrydgard added this to the v1.14.2 milestone Dec 21, 2022
@hrydgard hrydgard merged commit d4f5bff into hrydgard:master Dec 21, 2022
@unknownbrackets unknownbrackets deleted the exception-safety branch December 21, 2022 14:38
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.

2 participants