StressLogAnalyzer rejects a log from a runtime built from the same commit: "Unsupported data descriptor version '0'"
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/tools/StressLogAnalyzer/src/Program.cs 开始:内置的数据描述符仍声明版本 0,而 ContractDescriptorTarget.AddDescriptor 中的 cDAC 读取器要求版本 2(在 #131858 中更改)。将内置描述符与当前版本 2 的描述符格式进行比较并更新,然后构建并针对使用 DOTNET_StressLog=1 生成的日志运行 dotnet StressLogAnalyzer.dll <log>.slog -a -o <out>.txt。当分析器能够解码日志且不出现 FormatException,并写出输出文件时,即完成。
由索引模型根据 Issue 内容生成。
描述
The in-tree StressLogAnalyzer (src/tools/StressLogAnalyzer) fails on a stress log written by a runtime built from the same commit:
Unhandled exception: System.FormatException: Unsupported data descriptor version '0'. Expected version 2.
at Microsoft.Diagnostics.DataContractReader.ContractDescriptorTarget.AddDescriptor(Descriptor descriptor)
Repro:
- Write a stress log with the same commit's runtime, for example with
DOTNET_StressLog=1,DOTNET_StressLogFilename=<log>.slogandDOTNET_TotalStressLogSize=0x10000000(no file was written with the default total size of 32 MiB). - Run
dotnet StressLogAnalyzer.dll <log>.slog -a -o <out>.txt.
Expected: the analyzer decodes the log.
Actual: exit code 1, the exception above, no output file.
Measured on Windows arm64 Release builds at main 8fef9c34678b and at v11.0.0 (deae2e32bf0e). At main, the analyzer and the runtime came from the same commit, and the runtime wrote a 256 MiB log. At v11.0.0, the analyzer, CoreCLR and CoreLib came from the same commit, but the runtime used the official v11.0.0 JIT. A Windows x64 run also reported the descriptor-version error, but its analyzer and runtime were not checked to be from the same commit.
Read in the source: the analyzer's built-in data descriptor in src/tools/StressLogAnalyzer/src/Program.cs declares "version": 0 (at v11.0.0 and at main), and the cDAC reader has required version 2 since #131858. Inferred from that: the analyzer rejects its own built-in descriptor, so the failure does not depend on the log.
Found while working on #137606.
[!NOTE]
This issue was prepared with AI assistance (Anthropic Claude, OpenAI Codex) at my request. I reviewed the analysis before filing.
- 主要语言
- C#
- 星标
- 18.5k
- 派生
- 5.8k
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 611
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/runtime 的其他 Issue
-
area-System.Net untriaged
难度 2/5 1-3 小时 新手友好度 74/100
dotnet/runtime#138251 · 1 条评论 ·
维护者通常 1 天内回复
-
area-CodeGen-coreclr untriaged
难度 2/5 1-3 小时 新手友好度 65/100
dotnet/runtime#138181 · 1 条评论 ·
维护者通常 1 天内回复
-
area-System.Collections untriaged
难度 2/5 1-3 小时 新手友好度 82/100
dotnet/runtime#138090 · 1 条评论 ·
维护者通常 1 天内回复
-
area-System.Text.Json untriaged
难度 2/5 1-3 小时 新手友好度 72/100
dotnet/runtime#138089 · 1 条评论 ·
维护者通常 1 天内回复
-
area-Setup untriaged
难度 2/5 1-3 小时 新手友好度 76/100
dotnet/runtime#137376 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
area-fundamentals bug untriaged
难度 2/5 1-3 小时 新手友好度 75/100
dotnet/extensions#7979 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
QuantConnect/Lean#10236 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 82/100
-
area: core bug help wanted ready
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复