bytecodealliance / bytecodealliance/wasmtime

Panic when running printing module in async context on single-threaded executor

Open
#6,715 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

The information requested below is provided the the following [repository](https://github.com/FedorSmirnov89/wasmtime-issue-print-single-thread-exec).

### Test Case
Provided in the repo (any module using `print`)
### Steps to Reproduce
Provided in the repo
### Expected Results
Normal execution of the module (printing "Hello World" in this case). Basically same behavior which is observed with the multi-threaded executor.
### Actual Results
See repo (panic when running with a single-threaded executor)
### Versions and Environment
Wasmtime version or commit:
```
tokio = { version = "1.29.1", features = ["full"] }
wasmtime = "10.0.1"
wasmtime-wasi = { version = "10.0.1", features = ["tokio"] }
```

Operating system: Ubuntu Linux (running in WSL on a Windows machine)

Architecture: 64-bit operating system, x64-based processor

### Extra Info

This issue was first mentioned in #5306 and is related to #6556

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.