Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented May 8, 2024

As of

https://chromium-review.googlesource.com/c/v8/v8/+/5471674

V8 requires stringviews to be non-nullable. It might be possible to make that
change in our IR, or to remove views entirely, but for now this PR makes the
fuzzer stop emitting nullable stringviews as a workaround to allow us to fuzz
current V8.

Without this the fuzzer errors after just a few dozen, and after it I've gone
several thousand without issue (though in theory this PR might miss some
path that can emit a nullable stringview).

@kripken kripken requested a review from tlively May 8, 2024 18:52
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a stopgap measure.

@kripken
Copy link
Member Author

kripken commented May 8, 2024

Fuzzer hit this again after 6,000 iterations. I couldn't easily figure out how it managed to create this situation - might be related to existing workarounds for other things - so I added a line to ignore this error. If it happens only once in a few thousand iterations that is negligible (and we have tracking of how often each such error is ignored).

@kripken kripken merged commit a288a73 into WebAssembly:main May 8, 2024
@kripken kripken deleted the fuzz.nn.sview branch May 8, 2024 20:35
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants