Stream: git-wasmtime

Topic: wasmtime / issue #8835 std::env::var from guest gives an ...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 18:27):

pimeys added the bug label to Issue #8835.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 18:27):

pimeys opened issue #8835:

Test Case

So, this is pretty weird, and kind of hard to reproduce... But I was able to get my wasm component to panic with a simple call in the guest:

impl Guest for Component {
    fn on_gateway_request(headers: Headers, request: GatewayRequest) -> Result<(), ErrorResponse> {
        dbg!(std::env::var("TEST"));

        Ok(())
    }
}

The host has wasm component model enabled, async support is on and so is fuel consumption. Enabled WASI calls:

In addition,

Steps to Reproduce

Expected Results

Test would fail normally or at least not panic in guest.

Actual Results

The guest panics on std::env::var call:

thread 'tests::simple_no_io' panicked at gateway/crates/wasi-component-loader/src/tests.rs:28:10:
called `Result::unwrap()` on an `Err` value: Internal(error while executing at wasm backtrace:
    0: 0x1e3cf8 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::macros::print::h7cf3bf67e3d70272
    1: 0x1e28c9 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::BumpArena::alloc::he1fbf182c547cac8
    2: 0x1e246e - wit-component:adapter:wasi_snapshot_preview1!cabi_import_realloc
    3: 0x1e6374 - wit-component:shim!indirect-wasi:cli/environment@0.2.0-get-environment
    4: 0x1e2f80 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::State::get_environment::h3dc87564e4fc1678
    5: 0x1e318a - wit-component:adapter:wasi_snapshot_preview1!environ_sizes_get
    6: 0x1e639c - wit-component:shim!adapt-wasi_snapshot_preview1-environ_sizes_get
    7: 0xf881 - simple.wasm!__wasi_environ_sizes_get
    8: 0xf7cb - simple.wasm!__wasilibc_initialize_environ
    9: 0xf79f - simple.wasm!__wasilibc_ensure_environ
   10: 0xf956 - simple.wasm!getenv
   11: 0xb34c - std::sys::pal::wasi::os::getenv::{{closure}}::h33bc44affa161e82
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/wasi/os.rs:232:26              - std::sys::pal::common::small_c_string::run_with_cstr_stack::h23ef8d478e26889e
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/common/small_c_string.rs:49:18              - std::sys::pal::common::small_c_string::run_with_cstr::hd4d5aa4218b3b0e3
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/common/small_c_string.rs:29:18              - std::sys::pal::wasi::os::getenv::h4705807cae3a5746
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/wasi/os.rs:230:5              - std::env::_var_os::h2ae2b5d04ee9b40f
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:271:5
   12: 0xb4b0 - std::env::var_os::hada13acc4a42ce7a
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:267:5              - std::env::_var::h2b1d5a2954263ac1
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:234:11
   13: 0x8f83 - std::env::var::hafe1dcfdc420c7d8
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:230:5
   14: 0x5efb - <simple::Component as simple::bindings::Guest>::on_gateway_request::he08741f1ce21dd99
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/lib.rs:18:26
   15: 0x6fd0 - simple::bindings::_export_on_gateway_request_cabi::h09965d60ff594d81
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/bindings.rs:11:19
   16: 0x620b - on-gateway-request
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/bindings.rs:68:76

Caused by:
    cannot leave component instance

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.86/src/error.rs:83:36
   1: anyhow::__private::format_err
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.86/src/lib.rs:689:13
   2: wasmtime::runtime::component::func::host::call_host
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:182:9
   3: wasmtime::runtime::component::func::host::HostFunc::entrypoint::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:60:17
   4: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panic/unwind_safe.rs:272:9
   5: std::panicking::try::do_call
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:552:40
   6: __rust_try
   7: std::panicking::try
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:516:19
   8: std::panic::catch_unwind
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panic.rs:146:14
   9: wasmtime::runtime::vm::traphandlers::catch_unwind_and_longjmp
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:123:15
  10: wasmtime::runtime::component::func::host::handle_result
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:294:11
  11: wasmtime::runtime::component::func::host::HostFunc::entrypoint
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:59:13
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <(A1,A2,A3,A4) as wasmtime::runtime::func::typed::WasmParams>::invoke::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:851:21
  18: <(A1,) as wasmtime::runtime::func::HostAbi>::call
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func.rs:1898:18
  19: <(A1,A2,A3,A4) as wasmtime::runtime::func::typed::WasmParams>::invoke
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:850:17
  20: wasmtime::runtime::func::typed::TypedFunc<Params,Results>::call_raw::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:209:17
  21: wasmtime::runtime::vm::traphandlers::catch_traps::call_closure
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:267:18
  22: wasmtime_setjmp_21_0_1
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/helpers.c:66:3
  23: wasmtime::runtime::vm::traphandlers::catch_traps::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:244:13
  24: wasmtime::runtime::vm::traphandlers::<impl wasmtime::runtime::vm::traphandlers::call_thread_state::CallThreadState>::with::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:387:44
  25: wasmtime::runtime::vm::traphandlers::tls::set
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:759:13
  26: wasmtime::runtime::vm::traphandlers::<impl wasmtime::runtime::vm::traphandlers::call_thread_state::CallThreadState>::with
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:387:19
  27: wasmtime::runtime::vm::traphandlers::catch_traps
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:242:18
  28: wasmtime::runtime::func::invoke_wasm_and_catch_traps
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func.rs:1567:22
  29: wasmtime::runtime::func::typed::TypedFunc<Params,Results>::call_raw
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:205:22
  30: wasmtime::runtime::component::func::options::Options::realloc
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/options.rs:107:31
  31: wasmtime::runtime::component::func::options::LowerContext<T>::realloc
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/options.rs:252:9
  32: wasmtime::runtime::component::func::typed::lower_string
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/typed.rs:1148:23
  33: <str as wasmtime::runtime::component::func::typed::Lower>::store
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/typed.rs:1112:26
  34: <alloc::string::String as wasmtime::runtime::component::func::typed::Lower>::store
             at /home/
[message truncated]

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 18:29):

pimeys commented on issue #8835:

To be fair, I have a separate test project that _does not call_ the guest from rust tests. I tried to load the env var in there inside the guest, and it worked as expected.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 19:10):

bjorn3 commented on issue #8835:

If I understand it correctly, the issue is here:

    0: 0x1e3cf8 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::macros::print::h7cf3bf67e3d70272
    1: 0x1e28c9 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::BumpArena::alloc::he1fbf182c547cac8
    2: 0x1e246e - wit-component:adapter:wasi_snapshot_preview1!cabi_import_realloc
    3: 0x1e6374 - wit-component:shim!indirect-wasi:cli/environment@0.2.0-get-environment
    4: 0x1e2f80 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::State::get_environment::h3dc87564e4fc1678

To be precise the adapter for indirect-wasi:cli/environment@0.2.0-get-environment calls back into your wasm component to allocate memory. While this happens it is not allowed to call any imports, but wasi_snapshot_preview1::macros::print is called here. As for why that happens, it is likely that BumpArena::alloc ran out of memory and tried to panic. If so this should have been fixed by https://github.com/bytecodealliance/wasmtime/pull/8594. You will need to update cargo-component to get this fix though as the bug is inside the wasip1 to wasip2 adapter which cargo-component includes in the wasm component itself.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 20:29):

alexcrichton commented on issue #8835:

I believe that @bjorn3 is correct (thanks!), and this is definitely a frustration I've had in the past with debugging the adapter too.

I've confirmed that by default if the environment variable block is too big then cargo-component-produced components fail with this error (as the allocation is too big), but if I use package.metadata.component.adapter to point to the latest version of the adapter it works.

Given that I think that this should be fixable by updating the adapter you're using. Would you be able to test that out @pimeys?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 21:37):

pimeys commented on issue #8835:

Sure, my work on this continues tomorrow. Could you point me to instructions on how exactly I should do this? Eventually our users will also need to build these modules, so we might need something simpler for them to manage.

Maybe if we let the users configure exactly the variables they need, they could go around the issues until the fix lands into stable.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 18 2024 at 22:12):

alexcrichton commented on issue #8835:

Sure yeah, this was a relatively recent bug fix so you'll want to grab the adapter from here. For your use case you'll want the *.reactor.wasm one (link). Next you'll add this to the Cargo.toml in the project that's built with cargo component:

[package.metadata.component]
adapter = "path/to/wasi_snapshot_preview1.reactor.wasm"

Then cargo component build will pick up that adapter and use it which should have the fix. The built-in one to cargo-component can also be updated soon too.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 19 2024 at 08:00):

pimeys commented on issue #8835:

Thanks @alexcrichton, this solved my test issues.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 19 2024 at 18:37):

alexcrichton closed issue #8835:

Test Case

So, this is pretty weird, and kind of hard to reproduce... But I was able to get my wasm component to panic with a simple call in the guest:

impl Guest for Component {
    fn on_gateway_request(headers: Headers, request: GatewayRequest) -> Result<(), ErrorResponse> {
        dbg!(std::env::var("TEST"));

        Ok(())
    }
}

The host has wasm component model enabled, async support is on and so is fuel consumption. Enabled WASI calls:

In addition,

Steps to Reproduce

Expected Results

Test would fail normally or at least not panic in guest.

Actual Results

The guest panics on std::env::var call:

thread 'tests::simple_no_io' panicked at gateway/crates/wasi-component-loader/src/tests.rs:28:10:
called `Result::unwrap()` on an `Err` value: Internal(error while executing at wasm backtrace:
    0: 0x1e3cf8 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::macros::print::h7cf3bf67e3d70272
    1: 0x1e28c9 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::BumpArena::alloc::he1fbf182c547cac8
    2: 0x1e246e - wit-component:adapter:wasi_snapshot_preview1!cabi_import_realloc
    3: 0x1e6374 - wit-component:shim!indirect-wasi:cli/environment@0.2.0-get-environment
    4: 0x1e2f80 - wit-component:adapter:wasi_snapshot_preview1!wasi_snapshot_preview1::State::get_environment::h3dc87564e4fc1678
    5: 0x1e318a - wit-component:adapter:wasi_snapshot_preview1!environ_sizes_get
    6: 0x1e639c - wit-component:shim!adapt-wasi_snapshot_preview1-environ_sizes_get
    7: 0xf881 - simple.wasm!__wasi_environ_sizes_get
    8: 0xf7cb - simple.wasm!__wasilibc_initialize_environ
    9: 0xf79f - simple.wasm!__wasilibc_ensure_environ
   10: 0xf956 - simple.wasm!getenv
   11: 0xb34c - std::sys::pal::wasi::os::getenv::{{closure}}::h33bc44affa161e82
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/wasi/os.rs:232:26              - std::sys::pal::common::small_c_string::run_with_cstr_stack::h23ef8d478e26889e
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/common/small_c_string.rs:49:18              - std::sys::pal::common::small_c_string::run_with_cstr::hd4d5aa4218b3b0e3
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/common/small_c_string.rs:29:18              - std::sys::pal::wasi::os::getenv::h4705807cae3a5746
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/wasi/os.rs:230:5              - std::env::_var_os::h2ae2b5d04ee9b40f
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:271:5
   12: 0xb4b0 - std::env::var_os::hada13acc4a42ce7a
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:267:5              - std::env::_var::h2b1d5a2954263ac1
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:234:11
   13: 0x8f83 - std::env::var::hafe1dcfdc420c7d8
                    at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/env.rs:230:5
   14: 0x5efb - <simple::Component as simple::bindings::Guest>::on_gateway_request::he08741f1ce21dd99
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/lib.rs:18:26
   15: 0x6fd0 - simple::bindings::_export_on_gateway_request_cabi::h09965d60ff594d81
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/bindings.rs:11:19
   16: 0x620b - on-gateway-request
                    at /home/pimeys/code/grafbase/grafbase/gateway/crates/wasi-component-loader/examples/crates/simple/src/bindings.rs:68:76

Caused by:
    cannot leave component instance

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.86/src/error.rs:83:36
   1: anyhow::__private::format_err
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.86/src/lib.rs:689:13
   2: wasmtime::runtime::component::func::host::call_host
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:182:9
   3: wasmtime::runtime::component::func::host::HostFunc::entrypoint::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:60:17
   4: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panic/unwind_safe.rs:272:9
   5: std::panicking::try::do_call
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:552:40
   6: __rust_try
   7: std::panicking::try
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:516:19
   8: std::panic::catch_unwind
             at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panic.rs:146:14
   9: wasmtime::runtime::vm::traphandlers::catch_unwind_and_longjmp
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:123:15
  10: wasmtime::runtime::component::func::host::handle_result
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:294:11
  11: wasmtime::runtime::component::func::host::HostFunc::entrypoint
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/host.rs:59:13
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <(A1,A2,A3,A4) as wasmtime::runtime::func::typed::WasmParams>::invoke::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:851:21
  18: <(A1,) as wasmtime::runtime::func::HostAbi>::call
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func.rs:1898:18
  19: <(A1,A2,A3,A4) as wasmtime::runtime::func::typed::WasmParams>::invoke
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:850:17
  20: wasmtime::runtime::func::typed::TypedFunc<Params,Results>::call_raw::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:209:17
  21: wasmtime::runtime::vm::traphandlers::catch_traps::call_closure
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:267:18
  22: wasmtime_setjmp_21_0_1
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/helpers.c:66:3
  23: wasmtime::runtime::vm::traphandlers::catch_traps::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:244:13
  24: wasmtime::runtime::vm::traphandlers::<impl wasmtime::runtime::vm::traphandlers::call_thread_state::CallThreadState>::with::{{closure}}
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:387:44
  25: wasmtime::runtime::vm::traphandlers::tls::set
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:759:13
  26: wasmtime::runtime::vm::traphandlers::<impl wasmtime::runtime::vm::traphandlers::call_thread_state::CallThreadState>::with
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:387:19
  27: wasmtime::runtime::vm::traphandlers::catch_traps
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/vm/traphandlers.rs:242:18
  28: wasmtime::runtime::func::invoke_wasm_and_catch_traps
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func.rs:1567:22
  29: wasmtime::runtime::func::typed::TypedFunc<Params,Results>::call_raw
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/func/typed.rs:205:22
  30: wasmtime::runtime::component::func::options::Options::realloc
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/options.rs:107:31
  31: wasmtime::runtime::component::func::options::LowerContext<T>::realloc
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/options.rs:252:9
  32: wasmtime::runtime::component::func::typed::lower_string
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/typed.rs:1148:23
  33: <str as wasmtime::runtime::component::func::typed::Lower>::store
             at /home/pimeys/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-21.0.1/src/runtime/component/func/typed.rs:1112:26
  34: <alloc::string::String as wasmtime::runtime::component::func::typed::Lower>::store
             at
[message truncated]


Last updated: Dec 23 2024 at 13:07 UTC