Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: panic crash should not show top panic frame #17901
Here's a trivial crash output:
The first line number is useless. I instinctively clicked on it only to find myself in package runtime instead of my own code.
The crash output is supposed to show only non-runtime code by default. The first frame should be the line that panicked: the panic frame itself should not be shown.
This is a regression introduced when we added panic frames to show executing defers. That's fine to keep, but we don't need and shouldn't show the panic frame when it is the first thing we're going to print in the stack trace.