Skip to content

Add experimental "no-panic" feature. #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PiotrSikora
Copy link
Member

When enabled, any "this should never happen" errors in dispatcher
and/or hostcalls will be logged, but the processing will continue
as if nothing happened, instead of panicking and trapping WasmVM.

Note that any execution past the "should have panicked" point
is mostly undefined, since the state of any objects might get
out-of-sync with the host when errors and/or events are being
ignored.

When enabled, any "this should never happen" errors in dispatcher
and/or hostcalls will be logged, but the processing will continue
as if nothing happened, instead of panicking and trapping WasmVM.

Note that any execution past the "should have panicked" point
is undefined, since the state of contexts can get out-of-sync
with the host when errors and/or events are being ignored.

Signed-off-by: Piotr Sikora <code@piotrsikora.dev>
@@ -14,6 +14,10 @@ build = "build.rs"
hashbrown = "0.15"
log = "0.4"

[features]
default = []
no-panic = []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This will depend on the header-value (#287) once that PR is merged in order to eliminate the UTF-8 panics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant