Stream: git-wasmtime

Topic: wasmtime / issue #4445 Wasmtime failed to execute the was...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 08:31):

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
or wasmtime compile test.wasm and then wasmtime 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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 08:31):

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
or wasmtime compile test.wasm and then wasmtime 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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:06):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:19):

Zhangyx24 commented on issue #4445:

Thanks a lot !

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:19):

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
or wasmtime compile test.wasm and then wasmtime 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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:26):

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
or wasmtime compile test.wasm and then wasmtime 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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:27):

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 number

goroutine 1 [running]:
syscall.init.0()
/Users/joshua/go-wasi/src/syscall/fs_wasi.go:307 +0xd

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:31):

bjorn3 commented on issue #4445:

You probably need to pass --dir / or some other argument to wasmtime to give it access to the filesystem.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 09:34):

Zhangyx24 commented on issue #4445:

But I execute with wasmer in the same dir, and wasmer succeed.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 14:14):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 14 2022 at 14:14):

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
or wasmtime compile test.wasm and then wasmtime 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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 15 2022 at 01:29):

Zhangyx24 commented on issue #4445:

Thanks a lot!


Last updated: Oct 23 2024 at 20:03 UTC