Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SOS.UnitTests desktop CLR test harness to make CDB able to locate/download a matching .NET Framework DAC (mscordacwks.dll) by adding the Microsoft public symbol server to the initial CDB symbol path (-y). This addresses CI failures when the installed .NET Framework on agents is serviced and the locally available DAC no longer matches clr.dll.
Changes:
- Extend CDB
-y(sympath) from “debuggee output directory only” to “debuggee output directory + Microsoft symbol server URL”.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| arguments.AppendFormat(@" -y ""{0}""", debuggeeConfig.BinaryDirPath); | ||
| // the .nuget cache) and set to just the directory containing the debuggee binaries | ||
| // plus the Microsoft symbol server so CDB can download mscordacwks.dll for desktop CLR debugging. | ||
| arguments.AppendFormat(@" -y ""{0};srv*https://msdl.microsoft.com/download/symbols""", debuggeeConfig.BinaryDirPath); |
CDB 10.0.26100.1 introduced SecureLoadDotNetExtensions which verifies digital signatures of DAC DLLs before loading them. Both the .NET Framework mscordacwks.dll (from local Framework directory and symbol server) and servicing .NET Core DAC DLLs fail this verification, causing all desktop.cli, DualRuntimes, and singlefile servicing SOS tests to fail with: Failed to verify signature of file: ...mscordacwks.dll Error code - 0x000021BE Failed to load data access module, 0x80004002 This disables SecureLoadDotNetExtensions for CDB and DacSignatureVerification for dotnet-dump until the DAC signing issue is resolved. Also adds the Microsoft symbol server to the CDB sympath so mscordacwks.dll can be downloaded when needed. Fixes dotnet#5757 Co-authored-by: Copilot <[email protected]>
steveisok
force-pushed
the
fix/sos-desktop-sympath
branch
from
March 14, 2026 03:46
091d480 to
946fea7
Compare
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.
Summary
Fixes #5757
CDB 10.0.26100.1 introduced
SecureLoadDotNetExtensionswhich verifies digital signatures of DAC DLLs before loading them. Both the .NET Frameworkmscordacwks.dll(from local Framework directory and symbol server) and servicing .NET Core DAC DLLs fail this verification, causing 16 test failures across all Windows legs:Root Cause
The test infrastructure was conditionally enabling
SecureLoadDotNetExtensions=truefor non-nightly, non-private builds. CDB then rejects the DAC DLLs because their signatures cannot be verified:.NET Framework DAC—mscordacwks.dllfromC:\Windows\Microsoft.Net\Framework64\v4.0.30319\and from the symbol serverServicing .NET Core DAC— for .NET 8.0 servicing runtimesThis affects three test categories:
desktop.clitests — desktop CLR DAC signature verification failsprojectk.sdk.prebuilttests (DualRuntimes) — desktop CLR portion of dual-runtime dump failsprojectk.cli.singlefiletest (StackAndOtherTests) — .NET 8.0 servicing DAC failsChanges
SecureLoadDotNetExtensionsfor CDB (line 568-571) — unconditionally set tofalseDacSignatureVerificationfor dotnet-dump (line 685-688) — unconditionally set tofalsemscordacwks.dllwhen neededImpact