Closed
Description
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.