From: Michael Pratt Date: Wed, 7 Jun 2023 16:04:44 +0000 (-0400) Subject: runtime: print debuglog before sighandler crash X-Git-Tag: go1.22rc1~1571 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ceba95008f97a913e9176c6ced2b76b50db6ca5;p=gostls13.git runtime: print debuglog before sighandler crash Change-Id: I48e8c314258a033fa0dc5e533e2c5bd06c529a7c Reviewed-on: https://go-review.googlesource.com/c/go/+/501977 Auto-Submit: Michael Pratt Reviewed-by: Michael Knyszek Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot --- diff --git a/src/runtime/signal_unix.go b/src/runtime/signal_unix.go index ae842e9f79..87cb662e41 100644 --- a/src/runtime/signal_unix.go +++ b/src/runtime/signal_unix.go @@ -768,6 +768,7 @@ func sighandler(sig uint32, info *siginfo, ctxt unsafe.Pointer, gp *g) { raiseproc(_SIGQUIT) usleep(5 * 1000 * 1000) } + printDebugLog() crash() }