]> Cypherpunks repositories - gostls13.git/commit
runtime: call traceAdvance before exiting
authorNicolas Hillegeer <aktau@google.com>
Thu, 8 Feb 2024 16:56:33 +0000 (08:56 -0800)
committerGopher Robot <gobot@golang.org>
Sat, 10 Feb 2024 00:14:50 +0000 (00:14 +0000)
commit20f4b6d8f910adb5a3739dce5f4ffcfd2eb491c4
tree363adef72c43b896e27b60a28f28a5f4f1450d64
parent2dfc5eae2ee177d44f867783e13d7401b9f34a18
runtime: call traceAdvance before exiting

This ensures the trace buffers are as up-to-date as possible right
before crashing. It increases the chance of finding the culprit for the
crash when looking at core dumps, e.g. if slowness is the cause for the
crash (monitor kills process).

Fixes #65319.

Change-Id: Iaf5551911b3b3b01ba65cb8749cf62a411e02d9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/562616
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/crash_test.go
src/runtime/panic.go
src/runtime/trace.go