Skip to content

wasmtime 17 hangs while trying to load wasm file #7874

@glebpom

Description

@glebpom

Test Case

https://drive.google.com/file/d/1HYlz78KTuag9bTpNwGP_blp5yWo95i_7/view?usp=sharing

This wasm file successfully loads by version 16, but wasmtime 17 hangs and eats a lot of CPU while trying to load it

Steps to Reproduce

This is reproducible in python and ruby. Example ruby code:

      @engine = Wasmtime::Engine.new
      @mod = Wasmtime::Module.new(@engine, wasm)

Expected Results

Should work

Actual Results

It hangs eating ~170% of CPU

Versions and Environment

Wasmtime version or commit: 17

Operating system: MacOS

Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixingcranelift:E-compilerCompiler issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions