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

runtime: TestNetpollDeadlock flakes across the board #35353

Closed
FiloSottile opened this issue Nov 4, 2019 · 7 comments
Closed

runtime: TestNetpollDeadlock flakes across the board #35353

FiloSottile opened this issue Nov 4, 2019 · 7 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@FiloSottile
Copy link
Contributor

FiloSottile commented Nov 4, 2019

@FiloSottile FiloSottile added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker labels Nov 4, 2019
@FiloSottile FiloSottile added this to the Go1.14 milestone Nov 4, 2019
@bradfitz
Copy link
Contributor

bradfitz commented Nov 4, 2019

Maybe https://go-review.googlesource.com/c/go/+/204800 fixes it.

@ianlancetaylor
Copy link
Contributor

The netpollBreak write failed with 9 failures should be fixed by https://golang.org/cl/204937, which is awaiting review.

I'm less sure about the TestNetpollDeadlock failures. Let's see if they still happen now that CL 204800 is in.

@FiloSottile
Copy link
Contributor Author

(FYI you did not assign a reviewer on CL 204937.)

@ianlancetaylor
Copy link
Contributor

It wasn't in anyone's particular speciality. I left it for the default approach.

gopherbot pushed a commit that referenced this issue Nov 5, 2019
As a side-effect ensure that netpollinited only reports true when
netpoll initialization is complete.

Fixes #35282
Updates #35353

Change-Id: I21f08a04fcf229e0de5e6b5ad89c990426ae9b89
Reviewed-on: https://go-review.googlesource.com/c/go/+/204937
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@gopherbot
Copy link

Change https://golang.org/cl/204937 mentions this issue: runtime: don't return from netpollGenericInit until init is complete

@danscales
Copy link
Contributor

I reproduced this on linux-amd64 at 1da575a (the latest test failure above) by repeating this 100 times:

go test runtime -test.run TestNetpollDeadlock -test.count=100

(usually happened within about 20 times). Using this reproduction case, I showed that it was also fixed by Ian's commit d80ab3e ("runtime: wake netpoller when dropping P, don't sleep too long in sysmon"). The failure is reproducible in commit immediate before Ian's, and not reproducible with Ian's commit.

So, I think we can close this bug as well.

@golang golang locked and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Projects
None yet
Development

No branches or pull requests

5 participants