bytecodealliance / bytecodealliance/wasmtime

Wasmtime should always print guest panics

Open
#10,122 5 comments 0 reactions 0 assignees View on GitHub
enhancement wasmtime
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

#### Feature

Currently, Wasmtime doesn't always print anything to `stderr` when the guest panics: e.g. when serving incoming HTTP requests, panics are only printed if they happen before a response is sent. If the panic happens after the response headers have been sent, the panic is silently swallowed, and will only show up with the right `WASMTIME_LOG` incantation.

#### Benefit

Make guest panics easier to identify and debug.

#### Implementation

I'm not sure where this needs to be added, unfortunately.

#### Alternatives

Do nothing.

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.