Closed
Description
go1.8rc1 && master on darwin
Sending a SIGINT to a go build ./...
caused a runtime error:
signal 2 received on thread with no signal stack
fatal error: non-Go code disabled sigaltstack
runtime stack:
runtime.throw(0x1499cf6, 0x20)
/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.noSignalStack(0x2)
/usr/local/go/src/runtime/signal_unix.go:455 +0x94
runtime.sigtrampgo(0x2, 0xc4207fcd10, 0xc4207fcd78)
/usr/local/go/src/runtime/signal_unix.go:238 +0x2d8
runtime.sigtramp(0xc420114386, 0x5, 0x5956, 0x200005a00000085, 0xc4202f43a0, 0x0, 0xe, 0xc4207fce30, 0x0, 0x3, ...)
/usr/local/go/src/runtime/sys_darwin_amd64.s:240 +0x28
Managed to replicate this by building in a fairly large project, and running for a while
$ while true; do go build ./...& sleep .$RANDOM; kill -2 %; done