Windows: symbol-server key and download cache bugs

Abierto
#427 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
66/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
devtools

Línea de trabajo

Start with the two referenced sections in src/os/windows/debug_info.rs: check how symbol-server keys are built and how PDB lookup and download caching work. The issue identifies four failure cases and suggests fixes; verify each against the code, then review the relevant tests or add coverage for small images, cache lookups, transport errors, and failed body reads. Done means these cases no longer cause incorrect URLs, repeated attempts, or corrupt cache files.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Where

Problem

  • The PE key is {:08X}{:05X} (size zero-padded to 5 digits); the symstore key is %08X%x, so images under 64 KiB get the wrong URL and a 404.
  • PDB failures insert guid() into the not-found cache but the check uses file_name(), so it never hits.
  • get(&url)? returns on connect errors before any cache insert (each module blocks the simulator up to the HTTP timeout on every collect()).
  • File::create runs before response.bytes()?; a failed body read leaves a 0-byte file that exists() forever.

Impact
Missing debug info for small drivers, repeated slow network attempts when offline, and permanently corrupt cache entries.

Suggested fix
Use {:08X}{:X}, one key for insert and check, cache transport errors, write to a temp file then rename.

Status
Confirmed by reading the code at 79972db. Found by reading the code; not reproduced under SIMICS.

Lenguaje dominante
Rust
Estrellas
335
Forks
26
Merge medio
1 d 50 min
PR fusionados (30 d)
12

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de intel/tsffs

Todos los issues de intel/tsffs

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.