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

Use a custom panic hook for caught halting #2165

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

ljedrz
Copy link
Collaborator

@ljedrz ljedrz commented Nov 8, 2023

This PR addresses the potentially misleading panic messages and backtraces that are currently produced whenever a program's execution is halted. To do this, a custom hook is set right before those callsites and restored to the standard one right afterwards.

While these messages still stand out a bit due to not being part of the tracing setup (since snarkvm-utilities doesn't depend on tracing, they are written directly to stderr), this is still a big win for clarity.

@ljedrz ljedrz requested a review from howardwu November 8, 2023 12:18
@howardwu howardwu merged commit 0608677 into ProvableHQ:testnet3 Nov 15, 2023
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.

2 participants