Closed olivierlemasle closed 2 years ago
Thanks, will dig into it
ps if you want to make sure things work otherwise, switch to NewRuntimeConfigInterpreter()
temporarily until the fix is in!
OK found the root cause (I had the wrong assumption on register allocation which are both applied on amd64 and arm64). Will raise an fix shortly!
Thank you @mathetake (for the fix and for the work on this project!)
ok here's the fix https://github.com/tetratelabs/wazero/pull/666 I will land it tomorrow (morning in Japanese time) :D
Describe the bug Wazero fails to compile a wasm module I've compiled from Rust, which is compiled and executed successfully with Wasmtime and Wasmer.
To Reproduce wasm module: https://github.com/olivierlemasle/wasm-text2png/releases/download/v0.1.0/wasm-text2png.wasm It is a WebAssembly+WASI module compiled from Rust; its source code is in https://github.com/olivierlemasle/wasm-text2png (it simply uses the pure-Rust crate text-to-png to format a text given as parameter to PNG.) It is compiled with target
wasm32-wasi
usingcargo-wasi
.I can compile and execute this wasm module successfully with Wasmtime and Wasmer.
My host code:
When executing with
go run . wasm-text2png.wasm
, it fails with:Expected behavior I would expect this module to compile, as with Wasmtime or Wasmer, or fail with a more helpful message / debugging info.
Environment (please complete the relevant information):