Skip to content

[release/10.0] Fix removing module from appdomain in DB_IPCE_UNLOAD_MODULE event#124241

Merged
steveisok merged 1 commit intorelease/10.0from
backport/pr-123931-to-release/10.0
Feb 11, 2026
Merged

[release/10.0] Fix removing module from appdomain in DB_IPCE_UNLOAD_MODULE event#124241
steveisok merged 1 commit intorelease/10.0from
backport/pr-123931-to-release/10.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 10, 2026

Backport of #123931 to release/10.0

/cc @hoyosjs @tommcdon

Customer Impact

  • Customer reported
  • Found internally

When loading and unloading an Assembly multiple times in new AssemblyLoadContexts Visual Studio will abruptly end debugging before program completion with the following error:

A fatal error has occurred and debugging needs to be terminated. For more details, please see the Microsoft Help and Support web site. HRESULT=0x80131c36. ErrorCode=0x0.

Originally reported via Visual Studio feedback item Fatal error encountered when debugging .net 10 app using collectible assemblies in VS2026, then moved to GH issue #123930.

Regression

  • Yes
  • No

Regression from .NET 9, introduced in .NET 10 on #117224 and was a missed case when attempting to address the issue in #118414.

Testing

Validated with customer's reproducible test case on #123930

Risk

Low. The debugger module caches uses the module as the hash key rather than the assembly. This was a missed case when fixing #118414 where we were still incorrectly using the assembly as the lookup key.

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 10, 2026
@tommcdon tommcdon added this to the 10.0.x milestone Feb 11, 2026
@tommcdon tommcdon removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 11, 2026
@dotnet-policy-service
Copy link
Contributor

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

@rbhanda rbhanda added the Servicing-approved Approved for servicing release label Feb 11, 2026
@rbhanda rbhanda modified the milestones: 10.0.x, 10.0.4 Feb 11, 2026
@steveisok steveisok enabled auto-merge (squash) February 11, 2026 20:39
@steveisok
Copy link
Member

/ba-g Too many known issues to list

@steveisok steveisok merged commit 7229c7c into release/10.0 Feb 11, 2026
95 of 108 checks passed
@steveisok steveisok deleted the backport/pr-123931-to-release/10.0 branch February 11, 2026 20:48
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