From: Austin Clements Date: Wed, 22 Nov 2017 20:29:03 +0000 (-0500) Subject: runtime: print runtime frames in throwsplit trace X-Git-Tag: go1.10beta1~158 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4671da0414b31c7bd234e96b5af414fecb79e861;p=gostls13.git runtime: print runtime frames in throwsplit trace newstack manually prints the stack trace if we try to grow the stack when throwsplit is set. However, the default behavior is to omit runtime frames. Since runtime frames can be critical to understanding this crash, this change fixes this traceback to include them. Updates #21431. Change-Id: I5aa43f43aa2f10a8de7d67bcec743427be3a3b5d Reviewed-on: https://go-review.googlesource.com/79518 Run-TryBot: Austin Clements Reviewed-by: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 89458b7ff6..eb0716c18d 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -942,6 +942,7 @@ func newstack() { "\tmorebuf={pc:", hex(morebuf.pc), " sp:", hex(morebuf.sp), " lr:", hex(morebuf.lr), "}\n", "\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n") + thisg.m.traceback = 2 // Include runtime frames traceback(morebuf.pc, morebuf.sp, morebuf.lr, gp) throw("runtime: stack split at bad time") }