]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testsanitizers: terminate commands with SIGQUIT if hung
authorBryan C. Mills <bcmills@google.com>
Mon, 23 May 2022 20:27:13 +0000 (16:27 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 23 May 2022 21:33:54 +0000 (21:33 +0000)
commit715ba65563f9d2a6ecd349944b726a64f9aabeca
tree331a4cb95abaa6eda9c3a7767e20aff39774e483
parent74f0ccb68b60a07a8730e16043f18d3749c15648
misc/cgo/testsanitizers: terminate commands with SIGQUIT if hung

If the test hangs due to a deadlock in a subprocess, we want a
goroutine dump of that process to figure out the nature of the
deadlock. SIGQUIT causes the Go runtime to produce exactly
such a dump (unless the runtime itself is badly deadlocked).

For #52998.

Change-Id: Id9b3ba89d8f705e14f6cd789353fc2b7f4774ad3
Reviewed-on: https://go-review.googlesource.com/c/go/+/407954
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
misc/cgo/testsanitizers/cc_test.go