Closed
Description
This program should exit normally, but it currently exits with a panic: https://play.golang.org/p/XnJ41HvD9Gw
It exits normally when compiled with gccgo or with -gcflags=-N
. Notably, it does not crash with the alternative code I suggested at https://go-review.googlesource.com/c/go/+/286712/1/src/runtime/panic.go#1038. (Discovered this by accident while trying to test gccgo instead and happened to still have that test code patched into my local tree.)
/cc @danscales @randall77