`use_initial_as_corpus` has no effect: fuzzer thread starts before start info is set

Aperta
#401 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
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, testing

Direzione di ricerca

Read the start paths in src/haps/mod.rs at the linked lines and start_fuzzer_thread() in src/fuzzer/mod.rs. Trace when start_info is set relative to thread startup in the magic and manual handlers. Move thread startup after that assignment but before get_and_write_testcase, then verify the initial corpus is picked up and the empty-corpus failure is avoided.

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

Descrizione

Where

Problem
start_fuzzer_thread() reads self.start_info.get() to build initial_contents, but every start path calls it before start_info.set(...). initial_contents is therefore always None.

Impact
With use_initial_as_corpus = True, an empty corpus directory and generate_random_corpus = False, the fuzzer thread panics "No interesting cases found" and the simulator thread then fails in a HAP .expect.

Suggested fix
Call start_fuzzer_thread() after start_info.set(...) in the magic and manual start handlers (still before get_and_write_testcase).

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.