StressLogAnalyzer rejects a log from a runtime built from the same commit: "Unsupported data descriptor version '0'"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 82/100
調査の方向性
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時間
- マージ済み PR(30日)
- 611
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
ZaidX88/sluice#265 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信