libgo: print reason code if throwing unwind exception fails
authorNikhil Benesch <nikhil.benesch@gmail.com>
Sat, 10 Oct 2020 16:26:54 +0000 (16:26 +0000)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Oct 2020 00:00:02 +0000 (17:00 -0700)
commit28774a6015261a100c426d206154a98c0ca215ce
treead3b60f0105e975e97263df0445d364ea40226f8
parent14d83c6f584c321989b43526dc9437de4381aa47
libgo: print reason code if throwing unwind exception fails

Calls to _Unwind_RaiseException and friends *can* return due to bugs in
libgo or memory corruption. When this occurs, print a message to stderr
with the reason code before aborting to aid debugging.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/261257
gcc/go/gofrontend/MERGE
libgo/runtime/go-unwind.c