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

Printing the captured backtrace on panic #294

Open
dignifiedquire opened this issue Mar 27, 2024 · 0 comments
Open

Printing the captured backtrace on panic #294

dignifiedquire opened this issue Mar 27, 2024 · 0 comments

Comments

@dignifiedquire
Copy link

Sorry if this is a duplicate, or there are rustc limitations that I am missing, but when using the nightly backtrace feature, I only get the following when panicing

thread 'types::s2k::tests::aead_skesk_msg' panicked at src/types/s2k.rs:523:16:
encode: IOError { source: Error { kind: WriteZero, message: "failed to write whole buffer" }, backtrace: Backtrace [{ fn: "std::backtrace_rs::backtrace::libunwind::trace", file: "/rustc/47ecded3525392b77843534bed69b4302f9af8d2/library/std/src/../../backtrace/src/backtrace/libunwind.rs", line: 105 }
.... 

and the actual backtrace is just the short one to where the panic happened. Is there a way to get this printed in a nicer format?

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

No branches or pull requests

1 participant