Skip to content

Crash: Ensure we never handle faults in faults - #16636

Merged
hrydgard merged 2 commits into
hrydgard:masterfrom
unknownbrackets:exception-safety
Dec 21, 2022
Merged

hrydgard merged 2 commits into
hrydgard:masterfrom
unknownbrackets:exception-safety

Conversation

@unknownbrackets

Copy link
Copy Markdown
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