Skip to content
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

Well-mannered panic handling #85

Closed
wants to merge 1 commit into from

Conversation

bitemyapp
Copy link
Contributor

@bitemyapp bitemyapp commented Nov 25, 2024

Depends upon zorp-corp/sword#285

Choo harness now catches, discriminates, and reports panics. I can repro a stack error at size = 1 and an OOM error at size = 1000. I also cleaned up choo's main a bit.

image
image

This required using std::panic::AssertUnwindSafe and futures::FutureExt for .catch_unwind().

Crown doesn't let the users set the NockStack size, so I had to override it to the 1 and 1_000 case to repro the panics.

@bitemyapp bitemyapp force-pushed the bitemyapp/well-mannered-panic-handling branch from 9aba434 to ad84945 Compare January 11, 2025 20:05
@bitemyapp
Copy link
Contributor Author

I think this had already made it in in an earlier PR so I'm going to drop it for now.

@bitemyapp bitemyapp closed this Jan 11, 2025
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