Zhangyx24 labeled issue #4569:
Test Case
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
andwasmtime 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.txtActual 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 functionVersions and Environment
wasmtime 0.38.0
Operating system: macOS
Architecture: X86_64
Zhangyx24 opened issue #4569:
Test Case
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
andwasmtime 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.txtActual 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 functionVersions and Environment
wasmtime 0.38.0
Operating system: macOS
Architecture: X86_64
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.
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.
jameysharp closed issue #4569:
Test Case
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
andwasmtime 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.txtActual 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 functionVersions and Environment
wasmtime 0.38.0
Operating system: macOS
Architecture: X86_64
Zhangyx24 commented on issue #4569:
Thanks a lot!
Last updated: Nov 22 2024 at 17:03 UTC