Skip to content
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

Merged
merged 2 commits into from
Jun 24, 2024
Merged

baby_fuzzer_wasm fix #2336

merged 2 commits into from
Jun 24, 2024

Conversation

tokatoka
Copy link
Member

No description provided.

@@ -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 >();
Copy link
Member

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(?)

Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

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

@tokatoka tokatoka merged commit 2d1e429 into main Jun 24, 2024
97 checks passed
@tokatoka tokatoka deleted the wasmer branch June 24, 2024 15:31
@@ -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>();
Copy link
Member

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

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.

2 participants