Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

janvorli
Copy link
Member

@janvorli janvorli commented Oct 8, 2015

This change fixes a collision between hardware exception handling and activation
injection. Both require creating helper frame on stack and patching the target thread
context to inject invocation of a handler. When these two happened together,
they both tried to update the context and create helper frame on stack at the same
time, which lead to various issues including PAL_SEHException escaping from
the host application unhandled.

@janvorli
Copy link
Member Author

janvorli commented Oct 8, 2015

@jkotas, @sergiy-k can you take a look please?
The git diff has hard time diffing it due to the indentation change. But the change has just added exception context extraction and one if.

This change fixes a collision between hardware exception handling and activation
injection. Both require creating helper frame on stack and patching the target thread
context to inject invocation of a handler. When these two happened together,
they both tried to update the context and create helper frame on stack at the same
time, which lead to various issues including PAL_SEHException escaping from
the host application unhandled.
@janvorli janvorli force-pushed the fix-osx-activation-and-exception-collision branch from c3c4c4f to 278285a Compare October 8, 2015 19:45
@sergiy-k
Copy link

sergiy-k commented Oct 8, 2015

LGTM

janvorli added a commit that referenced this pull request Oct 8, 2015
…on-collision

Fix OSX hardware exception and activation collision
@janvorli janvorli merged commit a0b2e33 into dotnet:master Oct 8, 2015
@janvorli janvorli deleted the fix-osx-activation-and-exception-collision branch October 8, 2015 20:46
@joshfree joshfree added this to the 1.0.0-beta8 milestone Oct 9, 2015
@joshfree
Copy link
Member

joshfree commented Oct 9, 2015

this 278285a has been pulled into the beta8 release branch. 4.0.1-beta-23409 packages at https://www.myget.org/F/aspnetbeta8/api/v2/package contain the fix

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…on-and-exception-collision

Fix OSX hardware exception and activation collision

Commit migrated from dotnet/coreclr@a0b2e33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants