StressLogAnalyzer rejects a log from a runtime built from the same commit: "Unsupported data descriptor version '0'"

オープン 初心者向け
#138,255 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
devtools, tooling

調査の方向性

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 の本文から書いたものです。

説明

area-Tools-ILLink untriaged

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:

  1. Write a stress log with the same commit's runtime, for example with DOTNET_StressLog=1, DOTNET_StressLogFilename=<log>.slog and DOTNET_TotalStressLogSize=0x10000000 (no file was written with the default total size of 32 MiB).
  2. 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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/runtime のほかの issue

dotnet/runtime の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。