[CI] SOS.UnitTests desktop.cli tests fail with 'Failed to load data access module' (mscordacwks.dll mismatch)
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #5758 来自 @steveisok —— 已关闭,未合并
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- ci-cd, devops, testing-qa
调研方向
从失败的 SOS.UnitTests_net8.0_x64.log 和 SOS.UnitTests_net8.0_x86.log 构件开始,重点关注 desktop.cli 和 DualRuntimes 配置。验证 CI 代理上的 .NET Framework 版本,以及已配置的符号路径是否提供匹配的 mscordacwks.dll;同时检查 cdb-sos 包版本。列出的 Windows rolling 构建全部通过,并且 SOS 命令生成的输出与其测试正则表达式匹配,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Summary
15 SOS.UnitTests with config: desktop.cli (and 2 DualRuntimes tests) are consistently failing on all Windows rolling CI legs (diagnostics-public-ci, definition 25) since approximately Mar 10, 2026. The pipeline is currently red — the last 2 consecutive rolling builds both failed.
Root Cause
All failing tests hit the same error from CDB/SOS:
Failed to load data access module, 0x80004002
Verify that 1) you have a recent build of the debugger (10.0.18317.1001 or newer)
2) the file mscordacwks.dll that matches your version of clr.dll is
in the version directory or on the symbol path
The SOS commands (!PrintException, !ClrStack, !DumpObj, etc.) produce no diagnostic output because the DAC cannot be loaded for the .NET Framework CLR in the debuggee process. The test regex verification then fails because there is no output to match.
This occurs 17 times across the test suite in a single run. The failure is deterministic — identical tests fail on both x64 and x86 with the same error.
Likely Cause
A .NET Framework servicing update on the CI agent machines introduced a new clr.dll version, but the matching mscordacwks.dll is not available on the configured symbol path. See closed issue #4625 for a prior occurrence of missing mscordacwks symbols.
Affected Builds
| Build | Date | Failed Legs |
|---|---|---|
| 1332940 | Mar 12 | Win x64 Debug, Win x64 Release, Win x86 Release |
| 1332642 | Mar 12 | Win x64 Debug, Win x64 Release, Win x86 Release |
| 1327950 | Mar 10 | Win x86 Release |
Last passing rolling build: 1330114 (Mar 11).
Failing Tests (15 on x64, 14 on x86)
All desktop.cli config:
- SOS.TaskNestedException, SOS.LineNums, SOS.DivZero, SOS.SimpleThrow, SOS.Reflection
- SOS.StackTraceFaultingExceptionFrame, SOS.GCTests, SOS.OtherCommands
- SOS.NestedExceptionTest, SOS.Overflow, SOS.DumpGen, SOS.ConcurrentDictionaries, SOS.AsyncMain
Plus projectk.sdk.prebuilt config:
- SOS.DualRuntimes (9.0.12), SOS.DualRuntimes (8.0.23)
Reproduction
Artifacts with full test logs are available at:
Logs_Windows_x64_Release_1→log/Release/SOS.UnitTests_net8.0_x64.logLogs_Windows_x86_Release_1→log/Release/SOS.UnitTests_net8.0_x86.log
Suggested Fix
- Verify which .NET Framework version is currently on the CI agents
- Ensure the symbol server path is configured so CDB can download the matching
mscordacwks.dll, or bundle the correct DAC version - Alternatively, investigate whether the
cdb-sosNuGet package (currently10.0.26100.1) needs updating to match the new agent environment
- 主要语言
- C++
- 星标
- 1.3k
- 派生
- 407
- 平均合并
- 21 小时 5 分钟
- 30 天内合并 PR
- 78
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/diagnostics 的其他 Issue
-
Fix StackAndOtherTests.script line number verification for .NET 11 and Windows x64可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
dotnet/diagnostics#5884 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
dotnet/diagnostics#6225 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
dotnet/diagnostics#6213 ·
维护者通常 1 天内回复
-
Isolate SOS hosting from other debugger extensions that use managed code可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 5/5 一周以上 新手友好度 25/100
dotnet/diagnostics#6207 ·
维护者通常 1 天内回复
-
Known Build Error
难度 4/5 3-5 天 新手友好度 49/100
dotnet/diagnostics#6190 ·
维护者通常 1 天内回复
查看 dotnet/diagnostics 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
AutoHotkey/AutoHotkey#380 ·
-
documentation
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
grumpycoders/pcsx-redux#2667 ·
-
GCC 15.2: -Wcast-qual warning - cast discards const qualifier from pointer target type (H5trace.c)未关闭
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
google/tensorstore#305 ·