You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only maybe-related issue I found was #19465 (I'm suspecting something to do with async-signal-safety) which is why I did the repro with SIGUSR1 and not SIGINT (which also has the issue).
The text was updated successfully, but these errors were encountered:
Unfortunately, C signal handlers can only call functions that are async-signal-safe (https://man7.org/linux/man-pages/man7/signal-safety.7.html). And Go code is never async-signal-safe. It is never going to be possible to call a Go function from a C signal handler.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
Notes
I was trying to help out @paultag (https://twitter.com/paultag/status/1380617072921677828) and managed to reproduce the issue without shared libraries involved, just plain cgo signal handler calling Go code.
The only maybe-related issue I found was #19465 (I'm suspecting something to do with async-signal-safety) which is why I did the repro with SIGUSR1 and not SIGINT (which also has the issue).
The text was updated successfully, but these errors were encountered: