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

[x86/Linux] Set ResumeEsp as Caller Sp when unwond to native frame#10838

Merged
janvorli merged 1 commit intodotnet:masterfrom
parjong:fix/x86_resume_esp_unwond_to_native
Apr 10, 2017
Merged

[x86/Linux] Set ResumeEsp as Caller Sp when unwond to native frame#10838
janvorli merged 1 commit intodotnet:masterfrom
parjong:fix/x86_resume_esp_unwond_to_native

Conversation

@parjong
Copy link

@parjong parjong commented Apr 10, 2017

ResumeEsp fixup is valid only when we unwound to managed code, but x86/Linux unwinder applies fixup for every case. System.Reflection.DispatchProxy.Tests FX unittest got stuck due to this incorrect fixup.

This commit revises x86/Linux unwinder to fix up resume esp only when we unwound to managed code, and use caller sp when we unwound to native code.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@janvorli janvorli merged commit ed3cf95 into dotnet:master Apr 10, 2017
@parjong parjong deleted the fix/x86_resume_esp_unwond_to_native branch April 10, 2017 22:35
@parjong parjong changed the title [WIP][x86/Linux] Set ResumeEsp as Caller Sp when unwond to native frame [x86/Linux] Set ResumeEsp as Caller Sp when unwond to native frame Apr 16, 2017
@karelz karelz modified the milestone: 2.0.0 Aug 28, 2017
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.

4 participants