Skip to content

[release/10.0] Implement out-of-process SetThreadContext support for debugger detach - #119904

Merged
agocke merged 15 commits into
release/10.0from
backport/pr-118849-to-release/10.0
Sep 22, 2025
Merged

[release/10.0] Implement out-of-process SetThreadContext support for debugger detach#119904
agocke merged 15 commits into
release/10.0from
backport/pr-118849-to-release/10.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

Backport of #118849 to release/10.0

/cc @tommcdon

Customer Impact

  • Customer reported
  • Found internally

Fixes customer reported issue #116870 in .NET 10
.NET support for CET was enabled by default in .NET 9, which uses out-of-process SetThreadContext in the debugger.. If there are any outstanding debug events in the application at detach, then the app could crash with an 0x80000003 exit code.

Regression

  • Yes
  • No

Customers that have CET-enabled hardware will see this issue when upgrading from a previous version of .NET 8 to .NET 9/10.

Testing

Visual Studio debugger testing

Risk

Low - the code changes are primarily designed to only impact detach. There was some refactoring in the out-of-process SetThreadContext but we have extensively tested the change.

@JulieLeeMSFT

Copy link
Copy Markdown
Member

Please get code review and check test pipelines.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

@tommcdon

Copy link
Copy Markdown
Member

The System.Security.Cryptography.Tests failure is unrelated to this PR and is also occuring on other PR release/10.0 PR's, such as #119893, #119812

@JulieLeeMSFT

Copy link
Copy Markdown
Member

CC @jeffschwMSFT.

@agocke

Copy link
Copy Markdown
Member

/ba-g android failure is unrelated

@agocke
agocke merged commit 0abfd87 into release/10.0Sep 22, 2025
101 of 105 checks passed
@agocke
agocke deleted the backport/pr-118849-to-release/10.0 branch September 22, 2025 23:04
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Oct 23, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Diagnostics-coreclrServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@JulieLeeMSFT@tommcdon@agocke@noahfalk