Skip to content

[release/10.0] [DAC] Properly dereference internal_root_array - #119496

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

[release/10.0] [DAC] Properly dereference internal_root_array#119496
agocke merged 2 commits into
release/10.0from
backport/pr-119396-to-release/10.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

Backport of #119396 to release/10.0

/cc @max-charlamb

Customer Impact

  • Customer reported
  • Found internally

Found while working on #119324. Improper dereferencing of a DAC variable leads to GetHeapAnalyzeStaticData returning garbage data. This impacts CLRMD and SOS. In particular the SOS !findroots command is broken without this fix on workstation mode GC.

Regression

  • Yes
  • No

Unknown when introduced.

Testing

Fix was verified by adding a test to the SOS test suite in the diagnostics repo dotnet/diagnostics#5562.

Successful test run with fix: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1143226&view=results

Risk

Low. This change does not modify the runtime, only the DAC build.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

approved. please get a code review. we can merge when ready

@jeffschwMSFTjeffschwMSFT added Servicing-approved Approved for servicing release area-Diagnostics-coreclr and removed Servicing-consider Issue for next servicing release review labels Sep 14, 2025
@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.

@steveisok
steveisok enabled auto-merge (squash) September 15, 2025 14:08
@agocke
agocke disabled auto-merge September 22, 2025 23:00
@agocke
agocke merged commit b5331b4 into release/10.0Sep 22, 2025
103 of 105 checks passed
@agocke
agocke deleted the backport/pr-119396-to-release/10.0 branch September 22, 2025 23:00
@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.

5 participants

@steveisok@jeffschwMSFT@agocke@JulieLeeMSFT@max-charlamb