Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 25, 2025

Backport of #121864 to release/10.0

/cc @jkotas

Customer Impact

  • Customer reported
  • Found internally

Customer observed crash in NUnit project after upgrading to .NET 10. The bug is triggered by a static field that:

  • The type of the field must be a struct type
  • The struct type lives in external assembly.
  • The external assembly exists, but the struct type is missing in that assembly.

The fix is the add missing error handling in a few places.

Regression

  • Yes
  • No

Regressions introduced by #114675 (runtime async feature) and #118413 (type loading perf work)

Testing

Targeted repro, distilled to a test

Risk

Low. The fix is just an extra error handling.

ResolveTokenToTypeDefThrowing can return FALSE in some situations when the token cannot be resolved. The calling code has to deal with the situation gracefully since the [out] arguments are not initialized in that case.

Fixes #121791
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@JulieLeeMSFT JulieLeeMSFT added the Servicing-consider Issue for next servicing release review label Dec 1, 2025
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Dec 1, 2025
@rbhanda rbhanda added this to the 10.0.2 milestone Dec 1, 2025
@jkotas jkotas merged commit 926c18a into release/10.0 Dec 4, 2025
104 of 108 checks passed
@jkotas jkotas deleted the backport/pr-121864-to-release/10.0 branch December 4, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-VM-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants