Skip to content

Sync shared corpus before exiting fuzzing#153

Merged
louismerlin merged 2 commits intomainfrom
fix-corpus-sync
Mar 26, 2026
Merged

Sync shared corpus before exiting fuzzing#153
louismerlin merged 2 commits intomainfrom
fix-corpus-sync

Conversation

@chris-srlabs
Copy link
Copy Markdown
Collaborator

closes #134

By using just a simple solution, the interface may exhibit a short delay until a graceful shutdown is attempted after the first SIGTERM.
Moreover, the sync interval can be configured via the added --corpus-sync-interval argument.

@louismerlin
Copy link
Copy Markdown
Collaborator

Awesome thank you, will try-out tomorrow

@chris-srlabs chris-srlabs force-pushed the fix-corpus-sync branch 3 times, most recently from be6c3ea to df7d7a4 Compare March 24, 2026 09:49
Trigger crash copying only when stats show that fuzzers found new crashes.
Copy only afl++ corpus into honggfuzz's dynamic_input dir, but both to
ziggy's output corpus.

On ctrl-c eventually sync corpora and copy crashes. When getting second
signal quit immediately.
It fails now for:
```
[dependencies]
signal-hook ={ version = "0.4.3", optional = true }
```
(no spaces around `=`)
@louismerlin
Copy link
Copy Markdown
Collaborator

Super fast and efficient, thank you @chris-srlabs !

@louismerlin louismerlin merged commit febd91d into main Mar 26, 2026
4 checks passed
@louismerlin louismerlin deleted the fix-corpus-sync branch March 26, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync shared fuzzing corpus before exiting the fuzzer

2 participants