StressLogAnalyzer rejects a log from a runtime built from the same commit: "Unsupported data descriptor version '0'"
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza en src/tools/StressLogAnalyzer/src/Program.cs: el descriptor de datos integrado aún declara la versión 0, mientras que el lector cDAC en ContractDescriptorTarget.AddDescriptor requiere la versión 2 (cambiado en #131858). Compara el descriptor integrado con el formato de descriptor actual de la versión 2, actualízalo y luego compila y ejecuta dotnet StressLogAnalyzer.dll <log>.slog -a -o <out>.txt contra un log generado con DOTNET_StressLog=1. Se considera terminado cuando el analizador decodifica el log sin FormatException y escribe el archivo de salida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 18.5k
- Forks
- 5.8k
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 611
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/runtime
-
area-System.Net untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
dotnet/runtime#138251 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-CodeGen-coreclr untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
dotnet/runtime#138181 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-System.Collections untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
dotnet/runtime#138090 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-System.Text.Json untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dotnet/runtime#138089 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area-Setup untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
dotnet/runtime#137376 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/runtime
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
area-fundamentals bug untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dotnet/extensions#7979 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
QuantConnect/Lean#10236 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itAbiertoarea: core bug help wanted ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ZaidX88/sluice#265 · 1 comentario ·
Los mantenedores suelen responder en 1 día