]> Cypherpunks repositories - gostls13.git/commit
runtime: guard unexpected return pc gp.m dereference
authorMichael Pratt <mpratt@google.com>
Wed, 3 Dec 2025 20:42:03 +0000 (15:42 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 15:33:17 +0000 (07:33 -0800)
commitd2aad0df601df3a48ee4823309872cd224d91aa3
tree86bc32953ecf96ac905527457cb90ebba9a49c5c
parentbfb851c31eaf385649263e42e1a8620e2df01158
runtime: guard unexpected return pc gp.m dereference

If stack scanning reaches here while scanning a waiting goroutine, gp.m
will be nil. We are going to crash anyway because the stack is corrupt,
but we still want to reach the print below for context rather than dying
with a SIGSEGV here.

For #64030.

Change-Id: I6a6a636c378669dc45972e1eb8e06401a0fed223
Reviewed-on: https://go-review.googlesource.com/c/go/+/726522
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/traceback.go