Simics 7: repro origin snapshot is taken before the testcase is written

Aperta
#406 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Read the referenced code in src/lib.rs around save_initial_snapshot() and get_and_write_testcase(), then compare src/haps/mod.rs around the Simics 6 and Simics 7 repro bookmark handling. First verify the reported ordering and snapshot behavior against the current code; the report says it has not been reproduced under SIMICS. Done when a Simics 7 repro restore point contains the repro input and the printed restore command names that point.

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

Descrizione

Where

Problem
save_initial_snapshot() runs before get_and_write_testcase(). On Simics 6 a bookmark is set after the write, but on Simics 7 (since #354) no second restore point is taken.

Impact
After repro(file) stops, following the printed restore-snapshot tsffs-origin-snapshot gives memory with the harness's original buffer, not the repro input.

Suggested fix
On Simics 7, take a dedicated snapshot (e.g. tsffs-repro-snapshot) in save_repro_bookmark_if_needed and print that name.

Related
#354

Status
Reported by static code review at 79972db; not yet re-verified line by line. 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.