Stream: git-wasmtime

Topic: wasmtime / issue #11390 Wasmtime throws `wasm trap: call ...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2025 at 23:40):

Theaamadu opened issue #11390:

Test Case

shrunken_shrunken_124-fd_fdstat_set_rights.txt

Steps to Reproduce

  1. Rename txt to wasm
  2. For wasmtime interpreter, run: wasmtime -W all-proposals=y --invoke _start WASM_FILE
  3. For wasmtime compiled, run: wasmtime compile -W all-proposals=y WASM_FILE -o test.cwasm
  4. run: wasmtime -W all-proposals=y --allow-precompiled --invoke _start test.cwasm

Expected Results

Based on execution from other runtimes like the wasmer and also wasmedge, the expected output might be unreachable exception.

Actual Results

Last 20 lines of the actual result:

         32656:    0xf65 - <unknown>!<wasm function 37>
         32657:    0xf86 - <unknown>!<wasm function 39>
         32658:   0x130f - <unknown>!<wasm function 42>
         32659:    0x6fb - <unknown>!<wasm function 24>
         32660:    0xf65 - <unknown>!<wasm function 37>
         32661:    0xf86 - <unknown>!<wasm function 39>
         32662:   0x130f - <unknown>!<wasm function 42>
         32663:    0x6fb - <unknown>!<wasm function 24>
         32664:    0xf65 - <unknown>!<wasm function 37>
         32665:    0xf86 - <unknown>!<wasm function 39>
         32666:   0x130f - <unknown>!<wasm function 42>
         32667:    0x6fb - <unknown>!<wasm function 24>
         32668:    0xf65 - <unknown>!<wasm function 37>
         32669:   0x1303 - <unknown>!<wasm function 41>
         32670:    0xf25 - <unknown>!<wasm function 36>
         32671:    0x371 - <unknown>!<wasm function 18>
         32672:    0x129 - <unknown>!<wasm function 3>
         32673:    0x174 - <unknown>!<wasm function 8>
         32674:     0xfd - <unknown>!<wasm function 2>
    2: wasm trap: call stack exhausted

Versions and Environment

Wasmtime version or commit: wasmtime 36.0.0 (bdb963d1f 2025-07-07)

Operating system: Ubuntu 22.04

Architecture: x86_64

Extra Info

Can you please confirm which output should be the correct output and which mode might be incorrect? Thanks in advance?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2025 at 23:40):

Theaamadu added the bug label to Issue #11390.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2025 at 00:03):

pchickey closed issue #11390:

Test Case

shrunken_shrunken_124-fd_fdstat_set_rights.txt

Steps to Reproduce

  1. Rename txt to wasm
  2. For wasmtime interpreter, run: wasmtime -W all-proposals=y --invoke _start WASM_FILE
  3. For wasmtime compiled, run: wasmtime compile -W all-proposals=y WASM_FILE -o test.cwasm
  4. run: wasmtime -W all-proposals=y --allow-precompiled --invoke _start test.cwasm

Expected Results

Based on execution from other runtimes like the wasmer and also wasmedge, the expected output might be unreachable exception.

Actual Results

Last 20 lines of the actual result:

         32656:    0xf65 - <unknown>!<wasm function 37>
         32657:    0xf86 - <unknown>!<wasm function 39>
         32658:   0x130f - <unknown>!<wasm function 42>
         32659:    0x6fb - <unknown>!<wasm function 24>
         32660:    0xf65 - <unknown>!<wasm function 37>
         32661:    0xf86 - <unknown>!<wasm function 39>
         32662:   0x130f - <unknown>!<wasm function 42>
         32663:    0x6fb - <unknown>!<wasm function 24>
         32664:    0xf65 - <unknown>!<wasm function 37>
         32665:    0xf86 - <unknown>!<wasm function 39>
         32666:   0x130f - <unknown>!<wasm function 42>
         32667:    0x6fb - <unknown>!<wasm function 24>
         32668:    0xf65 - <unknown>!<wasm function 37>
         32669:   0x1303 - <unknown>!<wasm function 41>
         32670:    0xf25 - <unknown>!<wasm function 36>
         32671:    0x371 - <unknown>!<wasm function 18>
         32672:    0x129 - <unknown>!<wasm function 3>
         32673:    0x174 - <unknown>!<wasm function 8>
         32674:     0xfd - <unknown>!<wasm function 2>
    2: wasm trap: call stack exhausted

Versions and Environment

Wasmtime version or commit: wasmtime 36.0.0 (bdb963d1f 2025-07-07)

Operating system: Ubuntu 22.04

Architecture: x86_64

Extra Info

Can you please confirm which output should be the correct output and which mode might be incorrect? Thanks in advance?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2025 at 00:03):

pchickey commented on issue #11390:

Dupe of #11387. Implementations are allowed to exhaust the wasm stack at different levels.


Last updated: Dec 06 2025 at 06:05 UTC