]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: SetCrashOutput sets the FD for fatal panics
authorAlan Donovan <adonovan@google.com>
Thu, 7 Dec 2023 23:02:40 +0000 (18:02 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 31 Jan 2024 16:50:42 +0000 (16:50 +0000)
commit1bb947b2eb62f54dd7ff621f7e1c768c00edd1a7
tree58f821389f1a025f8106b05856b942aa2fc4fa94
parent13766fe7d89c44bb45cfb33591b137553bda7c7d
runtime/debug: SetCrashOutput sets the FD for fatal panics

This feature makes it possible to record unhandled panics
in any goroutine through a watchdog process (e.g. the same
application forked+exec'd as a child in a special mode)
that can process the panic report, for example by sending
it to a crash-reporting system such as Go telemetry
or Sentry.

Fixes #42888

Change-Id: I5aa7be8f726bbc70fc650540bd1a14ab60c62ecb
Reviewed-on: https://go-review.googlesource.com/c/go/+/547978
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
api/next/42888.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/runtime/debug/42888.md [new file with mode: 0644]
src/cmd/relnote/relnote_test.go
src/internal/poll/fd_plan9.go
src/internal/poll/fd_windows.go
src/net/fd_windows.go
src/runtime/debug/stack.go
src/runtime/debug/stack_test.go
src/runtime/runtime.go
src/runtime/write_err.go
src/runtime/write_err_android.go