-
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
baby_fuzzer_wasm fix #2336
baby_fuzzer_wasm fix #2336
Conversation
fuzzers/baby_fuzzer_wasm/src/lib.rs
Outdated
@@ -44,7 +44,7 @@ pub fn fuzz() { | |||
// No concurrency in WASM so these accesses are not racing. | |||
unsafe { | |||
RegistryBuilder::register::<MapFeedbackMetadata<u8>>(); | |||
RegistryBuilder::register::<ExecutionCountRestartHelperMetadata>(); | |||
RegistryBuilder::register::<StdRestartHelper >(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, that's a different RestartHelper alltogether? That's the one that counts the target executions(?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can WASM even restart? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, that's a different RestartHelper alltogether? That's the one that counts the target executions(?)
ExecutionCountRestartHelperMetadata was not even used in mutationalstage (the only stage that uses this metadata)
previously it was Ok(true)
= always restart no matter what.
I then changed it to restart 3 times at max
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used ExecutionCountRestartHelper to resume the mutational stage (I still think this is more correct btw) but it performed worse in fuzzbench
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
that's what i changed it #1946
@@ -44,7 +44,7 @@ pub fn fuzz() { | |||
// No concurrency in WASM so these accesses are not racing. | |||
unsafe { | |||
RegistryBuilder::register::<MapFeedbackMetadata<u8>>(); | |||
RegistryBuilder::register::<ExecutionCountRestartHelperMetadata>(); | |||
RegistryBuilder::register::<StdRestartHelper>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename that to CountingRestartHelper as discussed
No description provided.