]> Cypherpunks repositories - gostls13.git/commit
runtime: check if mp.curg is nil before readgstatus in writeProcStatusForP
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 1 Dec 2023 21:05:34 +0000 (21:05 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 1 Dec 2023 21:36:00 +0000 (21:36 +0000)
commitcf3d253c1b6d61cff9e1ba2425c0a8bddbd8af0e
tree3aa941e51c120964f8d4a8c053590e65dc2acad3
parent26b1694d9ad06b4f237526f507494edb948a4866
runtime: check if mp.curg is nil before readgstatus in writeProcStatusForP

CL 546025 failed to check if mp.curg is nil, causing all sorts of
failures. It can very well be nil in this context.

For #64318.
Fixes #64507.

Change-Id: I4a95c3fa16d5e1dee8041394c4bdb9c6ba04f032
Reviewed-on: https://go-review.googlesource.com/c/go/+/546636
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/trace2status.go