x/sys/unix: Connectx is broken on darwin/amd64 #71302
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Darwin
Milestone
Go version
go version go1.23.5 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
@wwqgtxx reports that
x/sys/unix.Connectx
is broken on darwin/amd64. The call succeeds, but does not return the correct number of bytes sent, and may cause memory corruption (fatal error: stack not a power of 2
).They were able to work around the issue by making the following minimal change:
Connectx
was added by me in golang/sys@59665e5 (CL 606155). It does not have any issues on darwin/arm64. We spent hours on this and were not able to pinpoint the exact cause.What did you see happen?
Connectx
is broken on darwin/amd64.What did you expect to see?
Connectx
works on darwin/amd64.The text was updated successfully, but these errors were encountered: