]> Cypherpunks repositories - gostls13.git/commit
runtime: crash on SI_USER SigPanic signal
authorIan Lance Taylor <iant@golang.org>
Sun, 19 Apr 2020 03:11:46 +0000 (20:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 22 Apr 2020 00:01:14 +0000 (00:01 +0000)
commite5bd6e1c7944713c816cf94ae412a700c271cfca
tree2fd972e8b6e0e72379e5a6adc626e034416efa9d
parent5a75f7c0b0789fe04ea4879a524cc95dbe734636
runtime: crash on SI_USER SigPanic signal

Clean up the code a little bit to make it clearer:

Don't check throwsplit for a SI_USER signal.

If throwsplit is set for a SigPanic signal, always throw;
discard any other flags.

Fixes #36420

Change-Id: Ic9dcd1108603d241f71c040504dfdc6e528f9767
Reviewed-on: https://go-review.googlesource.com/c/go/+/228900
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
doc/go1.15.html
src/runtime/crash_cgo_test.go
src/runtime/signal_unix.go
src/runtime/testdata/testprogcgo/segv.go [new file with mode: 0644]