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

Fuzz testing #51

Open
andreaTP opened this issue Oct 23, 2023 · 7 comments
Open

Fuzz testing #51

andreaTP opened this issue Oct 23, 2023 · 7 comments

Comments

@andreaTP
Copy link
Collaborator

In Wazero they have integrated some interesting fuzz tests.
We should eventually do something similar.

Reference:
https://github.com/tetratelabs/wazero/blob/dc4f64adc97850a7b9e999efb3310ef83fe2766e/internal/integration_test/fuzz/README.md

@thomasdarimont
Copy link
Collaborator

jazzer Seems to be a useful and maintained library for fuzzing java libraries

@andreaTP
Copy link
Collaborator Author

That's correct, in this case, one idea was to explore re-using wasm-smith to rely on third-party implementation of it.
But I haven't evaluated how much work would be to re-implement things in Jazzer.

@bhelx
Copy link
Contributor

bhelx commented Oct 25, 2023

Agreed. I think we should look into this after we get the core specs passing. Will help us find the next level of bugs.

@andreaTP
Copy link
Collaborator Author

for reference, we can even check the return values of generated wasm programs and compare it with a reference implementation.
In WaZero they are comparing compiler with interpreter results ...

@bhelx
Copy link
Contributor

bhelx commented Oct 25, 2023

yeah, this is called a "test oracle" https://en.wikipedia.org/wiki/Test_oracle

I tried to do this with wasmtime and wasmer but i couldn't get their Java libraries to work 😆

@andreaTP
Copy link
Collaborator Author

I tried to do this

Applied in this repository? Do you know how we can integrate this into our current workflow?
Or is it still a distraction from getting the basic specs passing at this point in time?

@bhelx
Copy link
Contributor

bhelx commented Oct 26, 2023

Yes, I tried to do it very early on before I even wrote the ruby spec generator. I think we should make all the specs green before we look to implement fuzzing.

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

No branches or pull requests

3 participants