Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 19, 2025

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 JulieLeeMSFT added this to the 10.0.0 milestone Sep 19, 2025
@JulieLeeMSFT
Copy link
Member

Please get code review and check test pipelines.

Copy link
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
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

@tommcdon tommcdon requested a review from noahfalk September 19, 2025 21:07
@JulieLeeMSFT
Copy link
Member

CC @jeffschwMSFT.

@agocke
Copy link
Member

agocke commented Sep 22, 2025

/ba-g android failure is unrelated

@agocke agocke merged commit 0abfd87 into release/10.0 Sep 22, 2025
101 of 105 checks passed
@agocke agocke deleted the backport/pr-118849-to-release/10.0 branch September 22, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants