-
Notifications
You must be signed in to change notification settings - Fork 18k
net: TestTCPReadWriteAllocs flakiness #8859
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
Comments
Closed by 77a2113. |
This still breaks on my OS X machine. It is an intermittent failure, but it happens enough to be frustrating. Anecdotally, it happens more when running all.bash or the full net tests than just the lone test. I am in Portugal at the moment with flaky internet connections; it is possible that the failures are correlated to internet problems, although I have been unable to pin it down. I have also been unable to reproduce this with the test converted to a benchmark (I was hoping to use -memprofile to point to the source of the allocations). I'm running 10.10.2 (14C109) with the pprof-enabling kernel patch. If you have suggestions for other things to try to diagnose this, I'm happy to help. |
ugh... this one? https://github.com/rsc/pprof_mac_fix |
Yes, that one. Can't live without it, I'm afraid. |
This is driving me crazy. Sending a CL to disable for now. |
Having this test fail, as it does reliably for me, makes working frustrating. Disable it for now, until we can diagnose the issue. Update issue #8859. Change-Id: I9dda30d60793e7a51f48f445c78ccb158068cc25 Reviewed-on: https://go-review.googlesource.com/6381 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
I'm also going to disable Dragonfly. Probably related. |
Update #8859 Update #10042 Change-Id: Idc7eadb447b73563ce9085e50c2042652442c2d9 Reviewed-on: https://go-review.googlesource.com/6412 Reviewed-by: Minux Ma <minux@golang.org>
I managed to get a stack trace, and I think I have a diagnosis. Under some network conditions (I don't understand which), the It's not obvious to me what the right fix is. Perhaps we should ignore Incidentally, this has nothing to do with the kernel patch. The patch is extremely narrow in scope and concerned with the handling of profiling signals, which are not even in use when this test fails. |
Thanks for the investigation. I now understand that some additional stuff (e.g., pprof_mac_fix) or environment condition to the kernel can easily shake scheduling for uio_vectors and make EAGAIN notifications. That means that assuming netpoll hotpaths sail on calm sea during test is pretty naive. Perhaps permitting netpoll hotpaths allocate a few stuff in TestReadWriteAllocs might make sense. |
either applying change 6701 or permitting... |
Update #8859 Change-Id: I5b0005b308e83954a495f06d27b7d8d30e813820 Reviewed-on: https://go-review.googlesource.com/8193 Reviewed-by: Ian Lance Taylor <iant@golang.org>
The previously-submitted https://go-review.googlesource.com/#/c/6701 didn't include dragonfly, freebsd, nacl, netbsd, openbsd, or solaris. (or things like darwin/arm or ppc64 or arm64) So do them all. Note I had to copy the function into tables_nacl.go. I found that preferable to creating a new file just to have suitable build tags. It's likely this function will be mirrored to plan9 and windows later too, each of the 4 with their own policy of which error values are common. The corresponding x/sys CL for this CL is https://golang.org/cl/8190 but it excludes nacl (not in x/sys) and solaris (already broken). Update Issue #8859 Change-Id: I91902615692b29b69c905edd9e126a26337294f6 Reviewed-on: https://go-review.googlesource.com/8192 Reviewed-by: Rob Pike <r@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
The text was updated successfully, but these errors were encountered: