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
I don't suspect it's an OS bug but maybe we should continue guarding against such a bad outcome.
seankhliao
changed the title
Crash all applications on MacOS with Apple Silicon with p, err := os.FindProcess(-1) follow by p.Signal(syscall.SIGTERM)
os: Crash all applications on MacOS with Apple Silicon with p, err := os.FindProcess(-1) follow by p.Signal(syscall.SIGTERM)
Jul 17, 2024
This is happening because calling the kill system call with a PID of -1 sends the signal to all processes for which you have permission to send a signal. Before the CL we had special cases for PID 0 and -1 that prevented this from happening. I think we should restore those special rules.
Change https://go.dev/cl/599015 mentions this issue: os: don't try to signal PID 0 or -1 on Unix
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
OS-Darwin
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Jul 17, 2024
Go version
Go toolchain at go1.23-20240626-RC01
Output of
go env
in your module/workspace:What did you do?
Just run this: https://go.dev/play/p/xzGhahkjjJH?v=gotip
As far as I can tell it is due to this commit: beaf7f3
What did you see happen?
All userspace programs on my Mac seem to crash. E.g. Chrome, etc. My Wifi drops out before recovering. The desktop background goes grey.
What did you expect to see?
No crashing.
The text was updated successfully, but these errors were encountered: