Skip to content

wasm-tools smith generates infinite loops #1410

@yamt

Description

@yamt

i'm using the following to generate a wasm module.

    dd if=/dev/urandom bs=10240 count=100 2> /dev/null | wasm-tools smith \
    --max-imports=0 \
    --ensure-termination \
    --fuel=100 \
    --maybe-invalid \
    --reference-types-enabled=true \
    --simd-enabled=true \
    -o test.wasm

my expectation was that with --ensure-termination, it doesn't generate infinite loops.
however, it sometimes does.
i will attach a sample of a generated file, which loops infinitely.

test.zip

it's with wasm-tools 1.0.55.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions