Skip to content

Conversation

janvorli
Copy link
Member

There is an incorrect cast of this to TADDR that was resulting in the DAC side address being stored in the context. That was leading to an assert in the stack walking code on the DAC side that was crashing WinDbg.

This change replaces C-style cast with the proper dac_cast.

…ntextFrame

There is an incorrect cast of `this` to TADDR that was resulting in the
DAC side address being stored in the context. That was leading to an
assert in the stack walking code on the DAC side that was crashing
WinDbg.

This change replaces C-style cast with the proper dac_cast.
@janvorli janvorli added this to the 10.0.0 milestone Jun 18, 2025
@janvorli janvorli requested a review from jkotas June 18, 2025 21:15
@janvorli janvorli self-assigned this Jun 18, 2025
@Copilot Copilot AI review requested due to automatic review settings June 18, 2025 21:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes incorrect DAC-side address being stored in the interpreter frame context by replacing a C-style cast with the proper dac_cast.

  • Replaces (TADDR)this with dac_cast<TADDR>(this) in SetFirstArgReg to ensure correct DAC address translation.

Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

@janvorli janvorli merged commit 830a786 into dotnet:main Jun 19, 2025
96 of 98 checks passed
@janvorli janvorli deleted the fix-dacification-in-interpreter-frame-method branch June 19, 2025 00:49
@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2025
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.

3 participants