Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/net/ipv4: deadlock in TestPacketConnConcurrentReadWriteUnicast #51342

Closed
bcmills opened this issue Feb 24, 2022 · 3 comments
Closed

x/net/ipv4: deadlock in TestPacketConnConcurrentReadWriteUnicast #51342

bcmills opened this issue Feb 24, 2022 · 3 comments
Labels
help wanted NeedsFix The path to resolution is known, but the work has not been done. release-blocker Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Feb 24, 2022

Looks like exactly the same failure mode as in #50455, but for the ipv4 package instead of ipv6.

That probably means we can just port over CL 376094 and CL 376095 to the ipv4 package. We may also want to audit whether any other ipv6 test fixes should be ported to ipv4.

greplogs --dashboard -md -l -e '(?ms)panic: test timed out.*\nsync\.\(\*WaitGroup\)\.Wait.*\n\t.*\ngolang\.org/x/net/ipv4_test.testPacketConnConcurrentReadWriteUnicast'

2022-02-24T00:04:18-cd36cc0-78e9976/freebsd-amd64-13_0

@bcmills bcmills added Testing An issue that has been verified to require only test changes, not just a test failure. help wanted NeedsFix The path to resolution is known, but the work has not been done. labels Feb 24, 2022
@gopherbot gopherbot added this to the Unreleased milestone Feb 24, 2022
@bcmills
Copy link
Member Author

@bcmills bcmills commented Feb 24, 2022

Marking as release-blocker for Go 1.19 due to the similarity to #50455, which was observed on darwin/amd64 (a first-class port).

@bcmills bcmills modified the milestones: Unreleased, Go1.19 Feb 24, 2022
@bcmills bcmills self-assigned this Feb 24, 2022
@gopherbot
Copy link

@gopherbot gopherbot commented Feb 24, 2022

Change https://go.dev/cl/387915 mentions this issue: ipv4: shut down the PacketConn on failure in TestPacketConnConcurrentReadWriteUnicast

@gopherbot
Copy link

@gopherbot gopherbot commented Feb 24, 2022

Change https://go.dev/cl/387916 mentions this issue: ipv6: retry ENOBUFS errors in TestPacketConnConcurrentReadWriteUnicast

gopherbot pushed a commit to golang/net that referenced this issue Feb 25, 2022
…ReadWriteUnicast

This avoids a deadlock (observed in golang/go#51342) that may
otherwise swallow the error logs from a failure, which may help us
better diagnose the underlying problem.

This is a port of CL 376094 to the "ipv4" package.

For golang/go#51342

Change-Id: I7b5ba25fcbdd1ec0b319fe35b558d9dcbf8054c6
Reviewed-on: https://go-review.googlesource.com/c/net/+/387915
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
@rsc rsc unassigned bcmills Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted NeedsFix The path to resolution is known, but the work has not been done. release-blocker Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

2 participants