gccgo: incorrect call stack from runtime.CallersFrames #29619
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Stack traces are not quite right for gccgo with optimizations on (mid-stack inlining, particularly).
Running under gc, I get:
Running under gccgo -O3, I get:
Note the third line - that should be
main.main
, not a second copy ofmain.f
.gccgo works without -O3.
Mid-stack inlining is happening with -O3,
main.main
callsmain.g
directly.main.f
isn't even in the binary.It doesn't help to provide
runtime.Callers
a larger buffer.Note that this code does work, calling
runtime.Callers
just once and using theruntime.CallersFrames
iterator:@ianlancetaylor
The text was updated successfully, but these errors were encountered: