bytecodealliance / wasm-tools

CLI and Rust libraries for low-level manipulation of WebAssembly modules
Apache License 2.0
1.21k stars 224 forks source link

smith sometimes fails with "error: failed to generate module: `arbitrary::Unstructured::choose` must be given a non-empty set of choices" #1612

Closed yamt closed 2 weeks ago

yamt commented 3 weeks ago

eg.

spacetanuki% < random_file ~/git/wasm/wasm-tools/target/debug/wasm-tools smith --max-imports=0 --reference-types-enabled=true --tail-call-enabled=true --exceptions-enabled=true -o test.wasm
error: failed to generate module: `arbitrary::Unstructured::choose` must be given a non-empty set of choices
spacetanuki% 

i tried today's head (34fbd2ad1d4b7ea113ecb9541ea9f3265112c4bc) and 1.210.0. the same symptom.

i will attach the "random_file" to this issue.

random_file.gz