From 183fd6f19b6a88c0174cf3fd5a3b141b159b8225 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 13 Mar 2018 21:21:25 -0700 Subject: [PATCH] runtime: print goid when throwing for split stack overflow Change-Id: I66515156c2fc6886312c0eccb86d7ceaf7947042 Reviewed-on: https://go-review.googlesource.com/100465 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- src/runtime/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 5a6259c6e2f..8f10508a7db 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -1000,7 +1000,7 @@ func newstack() { "\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n") } if sp < gp.stack.lo { - print("runtime: gp=", gp, ", gp->status=", hex(readgstatus(gp)), "\n ") + print("runtime: gp=", gp, ", goid=", gp.goid, ", gp->status=", hex(readgstatus(gp)), "\n ") print("runtime: split stack overflow: ", hex(sp), " < ", hex(gp.stack.lo), "\n") throw("runtime: split stack overflow") }