Skip to content

Release v0.11.3 (but not v0.11.2) hangs while compiling a few specific wasm modules #218

@Stebalien

Description

@Stebalien

Using the latest wasmtime (v31), compiling the attached wasm module with wasmtime compile hangs after updating regalloc to v0.11.3. It compiles instantly when using regalloc v0.11.2 or below.

Specifically:

  1. Clone wasmtime.
  2. Checkout the release-31.0.0 branch.
  3. Run cargo update regalloc2 to update to v0.11.3.
  4. Run cargo run --release -- compile example.wasm (--release isn't necessary but it demonstrates that it's not just slow due to running in debug mode).

See example.zip (extract it first, GitHub doesn't allow uploading raw wasm files).

I've also tried patching in the latest main branch of regalloc2 and that doesn't seem to help. This points to a bug in #214 that hasn't been fixed yet.

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