Iteration limit drops the result of the final iteration

Aperta
#408 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
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Read src/haps/mod.rs lines 113–145 and trace the iteration-limit branch alongside the fuzzer_tx.send(exit_kind) call and solution/timeout counter updates. Check how the fuzzer thread is started and stopped to understand the quit race. Done when the final iteration’s exit kind and counters are recorded before quitting, and the fuzzer thread can finish its disk writes; the issue notes this has not been reproduced under SIMICS.

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

Descrizione

Where

Problem
The iteration-limit check returns/quits before fuzzer_tx.send(exit_kind) and before the solution/timeout counters are updated.

Impact
With iteration_limit = N, a crash on execution N is never saved and counters are short by one. quit(0) also races the fuzzer thread's disk writes.

Suggested fix
Update counters and send the exit kind before the limit check; make the fuzzer thread joinable before quitting.

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.