Stream: git-wasmtime

Topic: wasmtime / issue #11061 Implementing correct proc_exit in...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2025 at 14:48):

squrky opened issue #11061:

Hi,

It doesn't seem to be possible to implement a proc_exit host function in C that produces an exit code trap. Specifically, I believe we're missing a function that can produce a trap instance that (when transformed into an error) will satisfy the requirements of wasmtime_error_exit_status.

Please let me know if you need further clarification from me.

Best.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2025 at 15:09):

alexcrichton added the wasmtime:c-api label to Issue #11061.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2025 at 15:09):

alexcrichton commented on issue #11061:

Yeah I think this will involve a new API to create a wasmtime_error_t from a trap code which creates a WASI exit trap. Should be reasonable to add!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2025 at 16:23):

squrky commented on issue #11061:

Great! I'd offer to have a go at this myself but I think I'd have to learn Rust first!


Last updated: Dec 06 2025 at 07:03 UTC