Zhangyx24 labeled issue #4445:
Test Case
test.zip
This is a wasm file first mentioned in wasmer issues NO.2777.
The program test.wasm which is a Go database (TiDB) is able to run on wasmer.Steps to Reproduce
wasmtime run test.wasm
orwasmtime compile test.wasm
and thenwasmtime run --allow-precompiled test.cwasm
Expected Results
Successfully execute the test.wasm and print :
TiDB [pingcap]>Actual Results
It was blocked and print nothing.
Versions and Environment
wasmtime 0.38.0
Operating system: macOS and ubuntu20.04
Architecture: x86_64
Zhangyx24 opened issue #4445:
Test Case
test.zip
This is a wasm file first mentioned in wasmer issues NO.2777.
The program test.wasm which is a Go database (TiDB) is able to run on wasmer.Steps to Reproduce
wasmtime run test.wasm
orwasmtime compile test.wasm
and thenwasmtime run --allow-precompiled test.cwasm
Expected Results
Successfully execute the test.wasm and print :
TiDB [pingcap]>Actual Results
It was blocked and print nothing.
Versions and Environment
wasmtime 0.38.0
Operating system: macOS and ubuntu20.04
Architecture: x86_64
bjorn3 commented on issue #4445:
As mentioned in https://github.com/wasmerio/wasmer/issues/2777#issuecomment-1184188296 it takes a long time to compile with Cranelift. Wasmtime doesn't have a singlepass compiler.
Zhangyx24 commented on issue #4445:
Thanks a lot !
Zhangyx24 closed issue #4445:
Test Case
test.zip
This is a wasm file first mentioned in wasmer issues NO.2777.
The program test.wasm which is a Go database (TiDB) is able to run on wasmer.Steps to Reproduce
wasmtime run test.wasm
orwasmtime compile test.wasm
and thenwasmtime run --allow-precompiled test.cwasm
Expected Results
Successfully execute the test.wasm and print :
TiDB [pingcap]>Actual Results
It was blocked and print nothing.
Versions and Environment
wasmtime 0.38.0
Operating system: macOS and ubuntu20.04
Architecture: x86_64
Zhangyx24 reopened issue #4445:
Test Case
test.zip
This is a wasm file first mentioned in wasmer issues NO.2777.
The program test.wasm which is a Go database (TiDB) is able to run on wasmer.Steps to Reproduce
wasmtime run test.wasm
orwasmtime compile test.wasm
and thenwasmtime run --allow-precompiled test.cwasm
Expected Results
Successfully execute the test.wasm and print :
TiDB [pingcap]>Actual Results
It was blocked and print nothing.
Versions and Environment
wasmtime 0.38.0
Operating system: macOS and ubuntu20.04
Architecture: x86_64
Zhangyx24 commented on issue #4445:
I'm so sorry that I didn't describle the actual problem.
wasmtime print the following information:
panic: cloud not get fdstat of root: Bad file numbergoroutine 1 [running]:
syscall.init.0()
/Users/joshua/go-wasi/src/syscall/fs_wasi.go:307 +0xd
bjorn3 commented on issue #4445:
You probably need to pass
--dir /
or some other argument to wasmtime to give it access to the filesystem.
Zhangyx24 commented on issue #4445:
But I execute with wasmer in the same dir, and wasmer succeed.
alexcrichton commented on issue #4445:
Locally this runs successfully with
--dir .
for me. If this works in other wasm runtimes then they might have different default WASI behavior. I don't think there's a bug with Wasmtime here though.
alexcrichton closed issue #4445:
Test Case
test.zip
This is a wasm file first mentioned in wasmer issues NO.2777.
The program test.wasm which is a Go database (TiDB) is able to run on wasmer.Steps to Reproduce
wasmtime run test.wasm
orwasmtime compile test.wasm
and thenwasmtime run --allow-precompiled test.cwasm
Expected Results
Successfully execute the test.wasm and print :
TiDB [pingcap]>Actual Results
It was blocked and print nothing.
Versions and Environment
wasmtime 0.38.0
Operating system: macOS and ubuntu20.04
Architecture: x86_64
Zhangyx24 commented on issue #4445:
Thanks a lot!
Last updated: Dec 23 2024 at 13:07 UTC