Skip to content

Disable CDB SecureLoadDotNetExtensions and add symbol server to sympath - #5758

Closed
steveisok wants to merge 1 commit into
dotnet:mainfrom
steveisok:fix/sos-desktop-sympath
Closed

steveisok wants to merge 1 commit into
dotnet:mainfrom
steveisok:fix/sos-desktop-sympath

Conversation

@steveisok

@steveisok steveisok commented Mar 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #5757

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 16 test failures across all Windows legs:

Failed to verify signature of file: C:\Windows\Microsoft.Net\Framework64\v4.0.30319\mscordacwks.dll
Error code - 0x000021BE
Debugger.Settings.EngineInitialization.SecureLoadDotNetExtensions is enabled, set to false to disable.
Failed to load data access module, 0x80004002

Root Cause

The test infrastructure was conditionally enabling SecureLoadDotNetExtensions=true for non-nightly, non-private builds. CDB then rejects the DAC DLLs because their signatures cannot be verified:

  • .NET Framework DAC — mscordacwks.dll from C:\Windows\Microsoft.Net\Framework64\v4.0.30319\ and from the symbol server
  • Servicing .NET Core DAC — for .NET 8.0 servicing runtimes

This affects three test categories:

  • 13 desktop.cli tests — desktop CLR DAC signature verification fails
  • 2 projectk.sdk.prebuilt tests (DualRuntimes) — desktop CLR portion of dual-runtime dump fails
  • 1 projectk.cli.singlefile test (StackAndOtherTests) — .NET 8.0 servicing DAC fails

Changes

  1. Disable SecureLoadDotNetExtensions for CDB (line 568-571) — unconditionally set to false
  2. Disable DacSignatureVerification for dotnet-dump (line 685-688) — unconditionally set to false
  3. Add Microsoft symbol server to CDB sympath (line 535) — so CDB can download mscordacwks.dll when needed

Impact

  • Fixes 16 tests failing across 3 Windows legs on every rolling build
  • Test infrastructure only — no product code changes
  • DAC signature verification can be re-enabled once the signing issue with the CDB package is resolved

@steveisok
steveisok requested a review from a team as a code owner March 14, 2026 02:47
Copilot AI review requested due to automatic review settings March 14, 2026 02:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 steveisok closed this Mar 14, 2026
@steveisok
steveisok force-pushed the fix/sos-desktop-sympath branch from 091d480 to 946fea7 Compare March 14, 2026 03:46
@steveisok steveisok changed the title Add Microsoft symbol server to CDB sympath for desktop CLR tests Disable CDB SecureLoadDotNetExtensions and add symbol server to sympath Mar 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] SOS.UnitTests desktop.cli tests fail with 'Failed to load data access module' (mscordacwks.dll mismatch)

2 participants