Windows: symbol-server key and download cache bugs

Aperta
#427 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
335
Fork
26
Merge medio
1g 50m
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intel/tsffs

Tutte le issue di intel/tsffs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.