runtime: gentraceback no longer skips stack frames when printing #24628
Labels
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
I got some time today to finish up and add a rigorous test for CL https://go-review.googlesource.com/#/c/go/+/37222 which involves printing the top and bottom n frames for easy reading in case of a massive stackoverflow.
To detect that we are printing stackframes, we have this condition
go/src/runtime/traceback.go
Line 142 in fdf3373
and in order for it to work, we need to be able to skip a bunch of frames when printing the bottom n stack frames.
However, with code that we used to skip through physical frames previously, CL https://go-review.googlesource.com/37854 aka commit ee97216 changed that behavior assuming that we'd never use
skip
unlesspcbuf != nil
. However, we actually need to skip through physical frames when printing tracebacks otherwise on trying to print top and bottom stackframes, we always end up printing the top irrespective of our skip which is a regression that silently snuck in for an entire year as it wasn't used.The code that disabled proper skipping is ee97216#diff-5a2de8a1053d4e11fbc71407a5361e93L321


/cc @davidlazar @aclements
The text was updated successfully, but these errors were encountered: