yowl labeled issue #3594:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
Wasm file uploaded
Steps to Reproduce
Run with
wasmtime --wasm-features memory64
Expected Results
It runs
Actual Results
Fails with
Error: failed to run main module `C:\Users\ScottWaye\OneDrive\wasm64\1.wasm` Caused by: 0: failed to instantiate "C:\\Users\\ScottWaye\\OneDrive\\wasm64\\1.wasm" 1: incompatible import type for `wasi_snapshot_preview1::fd_write` 2: function types incompatible: expected func of type `(i32, i64, i64, i64) -> (i32)`, found func of type `(i32, i32, i32, i32) -> (i32)`
Versions and Environment
Wasmtime version or commit: wasmtime 0.31.0
Operating system: Win10
Architecture: x64?
Extra Info
Looks like the wasi export is using 32 bit pointers when for memory64 shouldn't it be 64 bit?
Anything else you'd like to add?
1.zip
yowl opened issue #3594:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
Wasm file uploaded
Steps to Reproduce
Run with
wasmtime --wasm-features memory64
Expected Results
It runs
Actual Results
Fails with
Error: failed to run main module `C:\Users\ScottWaye\OneDrive\wasm64\1.wasm` Caused by: 0: failed to instantiate "C:\\Users\\ScottWaye\\OneDrive\\wasm64\\1.wasm" 1: incompatible import type for `wasi_snapshot_preview1::fd_write` 2: function types incompatible: expected func of type `(i32, i64, i64, i64) -> (i32)`, found func of type `(i32, i32, i32, i32) -> (i32)`
Versions and Environment
Wasmtime version or commit: wasmtime 0.31.0
Operating system: Win10
Architecture: x64?
Extra Info
Looks like the wasi export is using 32 bit pointers when for memory64 shouldn't it be 64 bit?
Anything else you'd like to add?
1.zip
yowl commented on issue #3594:
To be honest the error message is not clear and it could be that wasmtime is right and my import is wrong. Unfortuantely wabt's wasm2wat doesn't work for memory64 so not sure how to check that.
yowl edited a comment on issue #3594:
The error message is not clear and it could be that wasmtime is right and my import is wrong. Unfortuantely wabt's wasm2wat doesn't work for memory64 so not sure how to check that.
alexcrichton commented on issue #3594:
The support for memory64 is not complete and it's still experimental, this is one of the reasons why. Our WASI support currently does not work on memory64, not because it's a fundamental issue but rather because it's just not supported yet, it's something we need to implement and design.
yowl commented on issue #3594:
Thanks, its not a big deal for me. I was just looking for a way to test my own 64 support!
alexcrichton unlabeled issue #3594:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
Wasm file uploaded
Steps to Reproduce
Run with
wasmtime --wasm-features memory64
Expected Results
It runs
Actual Results
Fails with
Error: failed to run main module `C:\Users\ScottWaye\OneDrive\wasm64\1.wasm` Caused by: 0: failed to instantiate "C:\\Users\\ScottWaye\\OneDrive\\wasm64\\1.wasm" 1: incompatible import type for `wasi_snapshot_preview1::fd_write` 2: function types incompatible: expected func of type `(i32, i64, i64, i64) -> (i32)`, found func of type `(i32, i32, i32, i32) -> (i32)`
Versions and Environment
Wasmtime version or commit: wasmtime 0.31.0
Operating system: Win10
Architecture: x64?
Extra Info
Looks like the wasi export is using 32 bit pointers when for memory64 shouldn't it be 64 bit?
Anything else you'd like to add?
1.zip
alexcrichton labeled issue #3594:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
Wasm file uploaded
Steps to Reproduce
Run with
wasmtime --wasm-features memory64
Expected Results
It runs
Actual Results
Fails with
Error: failed to run main module `C:\Users\ScottWaye\OneDrive\wasm64\1.wasm` Caused by: 0: failed to instantiate "C:\\Users\\ScottWaye\\OneDrive\\wasm64\\1.wasm" 1: incompatible import type for `wasi_snapshot_preview1::fd_write` 2: function types incompatible: expected func of type `(i32, i64, i64, i64) -> (i32)`, found func of type `(i32, i32, i32, i32) -> (i32)`
Versions and Environment
Wasmtime version or commit: wasmtime 0.31.0
Operating system: Win10
Architecture: x64?
Extra Info
Looks like the wasi export is using 32 bit pointers when for memory64 shouldn't it be 64 bit?
Anything else you'd like to add?
1.zip
Last updated: Dec 23 2024 at 12:05 UTC