bytecodealliance / bytecodealliance/wasmtime
exports for wasi_snapshot_preview1::fd_write in memory64 has 32 bit pointers
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 126
Description
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](https://bytecodealliance.org/security)!**
### 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](https://github.com/bytecodealliance/wasmtime/files/7686227/1.zip)
Contributor guide
Assessment
This issue has not been assessed yet.