Stream: git-wasmtime

Topic: wasmtime / issue #4569 Fail to append to a file ?


view this post on Zulip Wasmtime GitHub notifications bot (Aug 01 2022 at 09:04):

Zhangyx24 labeled issue #4569:

Test Case

test.txt

log.txt

The test.wasm is uploaded as test.txt.

Steps to Reproduce

(1)wasmtime --dir=. test.wasm '{""a"":""txt"", ""b"":1}' or
(2)wasmtime compile test.wasm and wasmtime run --allow-precompiled test.cwasm '{"a":"txt", "b":1}'

Expected Results

Append "txt 1" to the log.txt
And the wasm runtime wasmer could successfully append "txt 1" to the log.txt

Actual Results

(1)Error: failed to run main module test.wasm

Caused by:
0: failed to instantiate "test.wasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

(2)Error: failed to run main module test.cwasm

Caused by:
0: failed to instantiate "test.cwasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

Versions and Environment

wasmtime 0.38.0

Operating system: macOS

Architecture: X86_64

view this post on Zulip Wasmtime GitHub notifications bot (Aug 01 2022 at 09:04):

Zhangyx24 opened issue #4569:

Test Case

test.txt

log.txt

The test.wasm is uploaded as test.txt.

Steps to Reproduce

(1)wasmtime --dir=. test.wasm '{""a"":""txt"", ""b"":1}' or
(2)wasmtime compile test.wasm and wasmtime run --allow-precompiled test.cwasm '{"a":"txt", "b":1}'

Expected Results

Append "txt 1" to the log.txt
And the wasm runtime wasmer could successfully append "txt 1" to the log.txt

Actual Results

(1)Error: failed to run main module test.wasm

Caused by:
0: failed to instantiate "test.wasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

(2)Error: failed to run main module test.cwasm

Caused by:
0: failed to instantiate "test.cwasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

Versions and Environment

wasmtime 0.38.0

Operating system: macOS

Architecture: X86_64

view this post on Zulip Wasmtime GitHub notifications bot (Aug 08 2022 at 22:17):

sunfishcode commented on issue #4569:

The issue is with the __rustc_debug_gdb_scripts_section__ export. Wasmtime isn't running the module at all, because it doesn't recognize this export. Was this module built with -export-all or -export-dynamic? Those flags can create extra exports which shouldn't be needed for command-style modules.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2022 at 17:00):

jameysharp commented on issue #4569:

This is the same wasm program that was reported in #4458, so I'm closing this issue in favor of that one.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2022 at 17:00):

jameysharp closed issue #4569:

Test Case

test.txt

log.txt

The test.wasm is uploaded as test.txt.

Steps to Reproduce

(1)wasmtime --dir=. test.wasm '{""a"":""txt"", ""b"":1}' or
(2)wasmtime compile test.wasm and wasmtime run --allow-precompiled test.cwasm '{"a":"txt", "b":1}'

Expected Results

Append "txt 1" to the log.txt
And the wasm runtime wasmer could successfully append "txt 1" to the log.txt

Actual Results

(1)Error: failed to run main module test.wasm

Caused by:
0: failed to instantiate "test.wasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

(2)Error: failed to run main module test.cwasm

Caused by:
0: failed to instantiate "test.cwasm"
1: command export '__rustc_debug_gdb_scripts_section__' is not a function

Versions and Environment

wasmtime 0.38.0

Operating system: macOS

Architecture: X86_64

view this post on Zulip Wasmtime GitHub notifications bot (Aug 10 2022 at 01:26):

Zhangyx24 commented on issue #4569:

Thanks a lot!


Last updated: Dec 23 2024 at 12:05 UTC