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: crash with WIT multi-returns #1757

Closed
abrown opened this issue Sep 3, 2024 · 0 comments · Fixed by #1758
Closed

fuzz: crash with WIT multi-returns #1757

abrown opened this issue Sep 3, 2024 · 0 comments · Fixed by #1758

Comments

@abrown
Copy link
Collaborator

abrown commented Sep 3, 2024

While working on #1756, the following command found a fuzz bug:

$ cargo +nightly fuzz run run

I am able to reproduce on main with:

$ cargo +nightly fuzz run run fuzz/artifacts/run/crash-fe711ff55b91f020003ba1205eb829d1b70fe0a0

The failure is unrelated to threads entirely, something to do with WIT multi-returns:

Running: fuzz/artifacts/run/crash-fe711ff55b91f020003ba1205eb829d1b70fe0a0
thread '<unnamed>' panicked at fuzz/src/wit64.rs:14:47:
called `Result::unwrap()` on an `Err` value: multiple returns on a function is now a gated feature -- https://github.com/WebAssembly/component-model/pull/368 (at offset 0x1fc)

It's surprising this hasn't been found previously since #1670 was introduced two months ago.

crash-fe711ff55b91f020003ba1205eb829d1b70fe0a0.txt

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 a pull request may close this issue.

1 participant