Windows: symbol-server key and download cache bugs
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
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
- https://github.com/intel/tsffs/blob/79972db9c63eba3ac8a1ce348264eee2005b2b16/src/os/windows/debug_info.rs#L100-L103
- https://github.com/intel/tsffs/blob/79972db9c63eba3ac8a1ce348264eee2005b2b16/src/os/windows/debug_info.rs#L126-L165
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 usesfile_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 everycollect()).File::createruns beforeresponse.bytes()?; a failed body read leaves a 0-byte file thatexists()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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di intel/tsffs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug UI
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
wardian-app/Wardian#1746 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
jlcodes99/cockpit-tools#3125 ·
I maintainer di solito rispondono entro 2 giorni
-
bug user-sprint
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Vondor/KassenSturz#967 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
area:build bug effort:low P5 source:agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno