Repository navigation
Update test asset baselines for ClrMD ELF ImageSize fix - #5925
Merged
max-charlamb merged 2 commits intoJul 15, 2026
Merged
max-charlamb merged 2 commits into
max-charlamb merged 2 commits into
Conversation
…60708.1 On relative base path root Microsoft.Diagnostics.Runtime , Microsoft.Diagnostics.Runtime.Utilities From Version 4.1.735601 -> To Version 4.1.735801
ClrMD 4.1.735801 (microsoft/clrmd#1495, commit 6ac1d967e) fixes ELF core dump ImageSize to include the PT_LOAD anonymous (.bss/NOBITS) tail. This increases the reported ImageSize for native ELF modules, breaking the Linux subresults of DebugServicesTests.ModuleTests against the old testassets baselines (Windows PE modules are unaffected). Regenerated the Linux x64/arm64 testassets baseline XMLs (ImageSize only) and bumped TestAssetsVersion to 1.0.736301 (all four 6.0 packages share this pin). Verified locally: ModuleTests goes from Failed 6/Passed 3 to Passed 9/Failed 0. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the diagnostics repo’s Linux dump-module baselines to account for a deliberate ClrMD fix to ELF IModule.ImageSize (including the .bss/anonymous tail of the last PT_LOAD segment), and aligns test asset package consumption accordingly.
Changes:
- Bump ClrMD packages (
Microsoft.Diagnostics.Runtime+.Utilities) from4.1.735601to4.1.735801. - Update unit-test
TestAssetsVersionpins to1.0.736301so Linux baseline XMLs match the correctedImageSizebehavior. - Refresh
eng/testassetsbaseline-regeneration/repack helper scripts and nuspecs to use newer tool paths / source package content versions.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/Microsoft.Diagnostics.DebugServices.UnitTests/Microsoft.Diagnostics.DebugServices.UnitTests.csproj | Bumps TestAssetsVersion to consume regenerated baselines. |
| src/tests/DbgShim.UnitTests/DbgShim.UnitTests.csproj | Bumps TestAssetsVersion to consume regenerated baselines. |
| eng/Version.Details.xml | Updates ClrMD dependency versions + SHAs. |
| eng/Version.Details.props | Updates the MSBuild properties used to flow ClrMD versions through the build. |
| eng/testassets/writexml.sh | Updates baseline regeneration helper to net8 paths (but currently points at non-publish dotnet-dump output). |
| eng/testassets/writexml.cmd | Updates baseline regeneration helper to net8 paths (but currently points at non-publish dotnet-dump output). |
| eng/testassets/rebuild/TestAssets.Windows.x86.6.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Windows.x86.5.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Windows.x86.3.1.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Windows.x64.6.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Windows.x64.5.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Windows.x64.3.1.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.x64.6.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.x64.5.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.x64.3.1.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.arm64.6.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.arm64.5.0.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/TestAssets.Linux.arm64.3.1.nuspec | Updates rebuild source content version paths. |
| eng/testassets/rebuild/rewritexml.cmd | Updates the “original” source version used by the rewrite helper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
max-charlamb
marked this pull request as draft
July 14, 2026 14:57
max-charlamb
marked this pull request as ready for review
July 14, 2026 14:57
max-charlamb
force-pushed
the
max-charlamb/fix-elf-module-imagesize-baselines
branch
from
July 14, 2026 14:57
f5eec14 to
3e773c3
Compare
hoyosjs
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
DebugServicesTests.ModuleTestsfails on all Linux dumps (x64 + arm64) after the ClrMD dependency bump, e.g.:The failing member is
IModule.ImageSize, and only for native ELF modules (Windows PE modules are unaffected, so Windows subresults pass).Root cause
ClrMD
4.1.735601 -> 4.1.735801includes microsoft/clrmd#1495 (commit6ac1d967e, "Fix ELF core dump ImageSize to include PT_LOAD anonymous tail"). For ELF modules whose finalPT_LOADsegment hasMemSiz > FileSiz(a.bss/NOBITS zero-fill tail), the old NT_FILE-derived size under-reported the module footprint. The new, largerImageSizeis correct - it now includes the loader-mapped anonymous tail. This is expected baseline drift from a deliberate ClrMD fix, not a diagnostics regression.Fix
4.1.735801bump (the change that requires new baselines).testassetsbaseline XMLs (ImageSizevalues only) and bumpedTestAssetsVersion1.0.351101 -> 1.0.736301. All four 6.0 packages share this pin, so the two Windows packages are republished at the new version with unchanged content.eng/testassetsrebuild helper scripts (net8.0 tool paths;1.0.257801 -> 1.0.351101source version) so the next regeneration is turn-key. Tooling-only; not consumed by CI.Test asset packages (published)
The regenerated packages have been published to the
dotnet-diagnostics-testsfeed at1.0.736301:TestAssets.Linux.x64.6.0(baselines updated)TestAssets.Linux.arm64.6.0(baselines updated)TestAssets.Windows.x64.6.0(content unchanged)TestAssets.Windows.x86.6.0(content unchanged)They were produced with the repo''s own
eng/testassets/rebuild/pack.csprojtooling (Arcade date-based version1.0.736301).Verification
End-to-end with the published packages (clean restore from the feed, no local overlays),
ModuleTestsgoes from Failed 6 / Passed 3 to Passed 9 / Failed 0. Each corrected value was independently confirmed against the dump''s actual ELFPT_LOADprogram headers.