StressLogAnalyzer rejects a log from a runtime built from the same commit: "Unsupported data descriptor version '0'"
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 82/100
Hướng nghiên cứu
Bắt đầu từ src/tools/StressLogAnalyzer/src/Program.cs: bộ mô tả dữ liệu tích hợp vẫn khai báo phiên bản 0, trong khi trình đọc cDAC trong ContractDescriptorTarget.AddDescriptor yêu cầu phiên bản 2 (đã thay đổi trong #131858). So sánh bộ mô tả tích hợp với định dạng bộ mô tả phiên bản 2 hiện tại, cập nhật nó, rồi build và chạy dotnet StressLogAnalyzer.dll <log>.slog -a -o <out>.txt với một log được tạo bằng DOTNET_StressLog=1. Hoàn thành khi trình phân tích giải mã được log mà không gặp FormatException và ghi được tệp đầu ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 18.5k
- Fork
- 5.8k
- Merge trung bình
- 2 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 611
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/runtime
-
area-System.Net untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
dotnet/runtime#138251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-CodeGen-coreclr untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotnet/runtime#138181 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-System.Collections untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dotnet/runtime#138090 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-System.Text.Json untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dotnet/runtime#138089 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-Setup untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
dotnet/runtime#137376 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/runtime
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
-
area-fundamentals bug untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
dotnet/extensions#7979 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
QuantConnect/Lean#10236 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itĐang mởarea: core bug help wanted ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ZaidX88/sluice#265 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày