diff options
| author | Michael Pratt <mpratt@google.com> | 2021-08-04 11:24:28 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2021-10-26 21:17:38 +0000 |
| commit | 091db6392da5913e4bd4806215102e461dc5649c (patch) | |
| tree | e250f5d5bc183388f465efdb5b42f341c55a9694 /src/runtime/traceback.go | |
| parent | 3a0cd1121413ad02172784114318ac6b0c2801c1 (diff) | |
| download | go-091db6392da5913e4bd4806215102e461dc5649c.tar.xz | |
runtime: fix cgo signals detection
CL 64070 removed lockOSThread from the cgocall path, but didn't update
the signal-in-cgo detection in sighandler. As a result, signals that
arrive during a cgo call are treated like they arrived during Go
execution, breaking the traceback.
Update the cgo detection to fix the backtrace.
Fixes #47522
Change-Id: I61d77ba6465f55e3e6187246d79675ba8467ec23
Reviewed-on: https://go-review.googlesource.com/c/go/+/339989
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/traceback.go')
0 files changed, 0 insertions, 0 deletions
