]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: provide Addr method for errors from SetPanicOnFault
authorKeith Randall <khr@golang.org>
Thu, 20 Aug 2020 21:22:30 +0000 (14:22 -0700)
committerKeith Randall <khr@golang.org>
Fri, 18 Sep 2020 17:21:06 +0000 (17:21 +0000)
commitd91d0762c7757c12c7d5f9e2ae3f170d5bd7ba84
tree9e8f3dfd38e462c88f765c4352ac1dbfa3d3ab55
parent65dfe4a772a4bc612219d93886e5c07290785ee6
runtime/debug: provide Addr method for errors from SetPanicOnFault

When we're building a panic that's triggered by a memory fault when
SetPanicOnFault has been called, include an Addr method. This
method reports the address at which the fault occurred.

Fixes #37023

RELNOTE=yes

Change-Id: Idff144587d6b75070fdc861a36efec76f4ec7384
Reviewed-on: https://go-review.googlesource.com/c/go/+/249677
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Keith Randall <khr@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/debug/garbage.go
src/runtime/debug/panic_test.go [new file with mode: 0644]
src/runtime/error.go
src/runtime/os_plan9.go
src/runtime/panic.go
src/runtime/signal_unix.go
src/runtime/signal_windows.go