-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
Does this issue reproduce with the latest release?
- yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env GOARCH="amd64" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOVERSION="go1.20.1"
What did you do?
import (
"golang.org/x/sys/unix"
)
...
retn, _, _, _, err = unix.Recvmsg(tunfd, msg[:], nil, 0)What did you expect to see?
retn == -1
err != nilWhat did you see instead?
retn == -1
err == nilhttps://github.com/golang/sys/blob/494aa493ccb0c797af52f75ff7839a241bb26cdd/unix/syscall_unix.go#L356 is lacking error check
n, oobn, recvflags, err = recvmsgRaw(fd, iov[:], oob, flags, &rsa)
if rsa.Addr.Family != AF_UNSPEC {
from, err = anyToSockaddr(fd, &rsa)
}vs
n, oobn, recvflags, err = recvmsgRaw(fd, iov[:], oob, flags, &rsa)
if err == nil && rsa.Addr.Family != AF_UNSPEC {
from, err = anyToSockaddr(fd, &rsa)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.Issue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.