[Apple Silicon] non-Go code set up signal handler without SA_ONSTACK flag #127
Labels
help wanted
Extra attention is needed
troubleshooting
Investigating an issue to determine its status
macbookpro m2
The program occasionally crashes and reports the following error:
signal 16 received but handler not on signal stack
fatal error: non-Go code set up signal handler without SA_ONSTACK flag
go/src/syscall/zerrors_darwin_arm64.go
SIGURG = Signal(0x10)
go 1.20
go 1.23
All of these versions are available, but not on linux
I found the following description, I don't know if it works:
If a SIGPIPE signal is received, the Go program will invoke the special handling described above if the SIGPIPE is received on a Go thread. If the SIGPIPE is received on a non-Go thread the signal will be forwarded to the non-Go handler, if any; if there is none the default system handler will cause the program to terminate.
The text was updated successfully, but these errors were encountered: