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

Fix isIPAdjusted setting during exception handling #89930

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

janvorli
Copy link
Member

@janvorli janvorli commented Aug 3, 2023

The CrawlFrame::isIPAdjusted flag is set to true for all frames when handling software exceptions. That is not correct, as the IP is not adjusted in those cases.

I've also cleaned up the values the flag is set to at various places to use the real type of the member, which is bool. It was being set to TRUE / FALSE or even 0 / 1 at some places.

As a related cleanup, I've removed the FRAME_ATTR_OUT_OF_LINE flag as it was never set anywhere and still was being tested at few places.

Close #89834

The CrawlFrame::isIPAdjusted flag is set to true for all frames
when handling software exceptions. That is not correct, as the IP is not
adjusted in those cases.

I've also cleaned up the values the flag is set to at various places to
use the real type of the member, which is `bool`. It was being set to
TRUE / FALSE or even 0 / 1 at some places.

As a related cleanup, I've removed the FRAME_ATTR_OUT_OF_LINE flag as it
was never set anywhere and still was being tested at few places.
@janvorli janvorli added this to the 8.0.0 milestone Aug 3, 2023
@janvorli janvorli requested a review from jkotas August 3, 2023 13:53
@janvorli janvorli self-assigned this Aug 3, 2023
@janvorli
Copy link
Member Author

janvorli commented Aug 3, 2023

Let me actually add a regression test for the #89834

@janvorli janvorli merged commit 01769e4 into dotnet:main Aug 3, 2023
115 of 117 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Sep 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offsets from first chance exception StackFrame are incorrect
2 participants