Skip to content

Runtime crash when using async let variables #4250

Closed
@AndrewBarba

Description

@AndrewBarba

When await-ing an async let variable, the process crashes:

Feb 10 17:02:17.399  INFO Listening on http://127.0.0.1:7676
Feb 10 17:02:19.866  INFO request{id=0}: handling request GET http://127.0.0.1:7676/
Feb 10 17:02:19.871  INFO request{id=0}: request completed using 3.5 MB of WebAssembly heap
Feb 10 17:02:19.871  INFO request{id=0}: request completed in 4.967166ms
Feb 10 17:02:19.871 ERROR request{id=0}: WebAssembly trapped: wasm trap: indirect call type mismatch
wasm backtrace:
    0: 0x870b4b - <unknown>!task_future_wait_resume_adapter(swift::AsyncContext*)

This stack is generated from a Swift application running in Viceroy but I expect the crash is the same in any Wasm runtime (Wasmtime, Wasmer, etc.). Note: the crash does not happen if I create async let variables but never await them.

Screen_Shot_2022-02-10_at_5 02 51_PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions