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
You are closing the file descriptor without calling the Close method of the File. This doesn't work. Don't try to mix and match syscall functions with os functions. In this case it is confusing the runtime network poller.
By the way, note that the os.File type already has a finalizer that will close the descriptor.
Go version
go version devel go1.24-1218566fe5 Mon Dec 16 18:19:39 2024 -0800 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
source code:
syscall.Close(int(fd))
fromAddCleanup
will not report an error!syscall.read
inAddCleanup
doesn't give an error either!What did you see happen?
please see the upload file
macos panic.txt
Please
What did you expect to see?
Don't Panic, Consistent with Linux
The text was updated successfully, but these errors were encountered: