Repository navigation
Closed as not planned
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Description
#!watchflakes
default <- pkg == "net" && test == ""
Issue created automatically to collect these failures.
Example (log):
PASS
==================
WARNING: DATA RACE
Write at 0x0001406da008 by main goroutine:
net.uninstallTestHooks()
C:/b/s/w/ir/x/w/goroot/src/net/main_windows_test.go:34 +0x9c
sync.(*Once).doSlow()
C:/b/s/w/ir/x/w/goroot/src/sync/once.go:78 +0xd1
sync.(*Once).Do()
C:/b/s/w/ir/x/w/goroot/src/sync/once.go:69 +0x44
...
(inet4, datagram, default): opened=90 connected=37 listened=0 accepted=0 closed=90 openfailed=0 connectfailed=1 listenfailed=0 acceptfailed=0 closefailed=0
(inet6, datagram, default): opened=27 connected=2 listened=0 accepted=0 closed=27 openfailed=0 connectfailed=4 listenfailed=0 acceptfailed=0 closefailed=0
(inet4, raw, 1): opened=1 connected=0 listened=0 accepted=0 closed=1 openfailed=0 connectfailed=0 listenfailed=0 acceptfailed=0 closefailed=0
(local, datagram, default): opened=0 connected=0 listened=0 accepted=0 closed=0 openfailed=3 connectfailed=0 listenfailed=0 acceptfailed=0 closefailed=0
(local, seqpacket, default): opened=0 connected=0 listened=0 accepted=0 closed=0 openfailed=4 connectfailed=0 listenfailed=0 acceptfailed=0 closefailed=0
(inet4, stream, default): opened=726 connected=0 listened=107 accepted=0 closed=724 openfailed=0 connectfailed=361 listenfailed=0 acceptfailed=247 closefailed=0
(local, stream, default): opened=56 connected=16 listened=26 accepted=0 closed=56 openfailed=0 connectfailed=1 listenfailed=0 acceptfailed=7 closefailed=0
Found 1 data race(s)
FAIL net 30.289s
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Type
Projects
- StatusShow more project fieldsDone
Activity
gopherbot commentedon Jul 23, 2025
Found new dashboard test flakes for:
2025-07-23 18:41 gotip-windows-amd64-race go@2696a11a net (log)
— watchflakes
gopherbot commentedon Aug 5, 2025
Found new dashboard test flakes for:
2025-08-05 17:41 gotip-windows-amd64-race go@c0025d5e net (log)
— watchflakes
gopherbot commentedon Aug 12, 2025
Found new dashboard test flakes for:
2025-08-12 16:00 gotip-windows-amd64-race go@d0a64f79 net (log)
— watchflakes
gopherbot commentedon Sep 12, 2025
Found new dashboard test flakes for:
2025-09-12 17:20 gotip-windows-amd64-race go@911455fe net (log)
— watchflakes
linsite commentedon Sep 15, 2025
It seems that uninstallTestHooks has race with internal/poll.FD.destroy.
Shouldn't forceCloseSockets be called before uninstallTestHooks in net/main_test.go? i.e. sockets which are created by installed hooks should be closed by them, too.
testHookUninstaller.Do(uninstallTestHooks)
if testing.Verbose() {
printRunningGoroutines()
printInflightSockets()
printSocketStats()
}
forceCloseSockets()
cc @ianlancetaylor
ianlancetaylor commentedon Sep 18, 2025
It looks like some test has failed to close a socket. The error is happening when the finalizer is run to close the socket. We may need to find out which test is failing to close which socket.
I don't see why
forceCloseSocketswill help, because the socket is not being printed byprintInflightSockets. But maybe I'm missing something.linsite commentedon Sep 18, 2025
Thanks, Ian. You're right. Some tests did fail with mismatched opened/closed TCP4 sockets, but others didn't. I'll look into that.
Here is a mismatched one:
gopherbot commentedon Sep 22, 2025
Found new dashboard test flakes for:
2025-09-16 17:04 go1.25-windows-amd64-race release-branch.go1.25@be611321 net (log)
— watchflakes
linsite commentedon Sep 23, 2025
I failed to reproduce this locally. I wonder if it's worthy to reproduce or just work around it like https://go-review.googlesource.com/c/go/+/704455.
gopherbot commentedon Apr 1, 2026
Found new dashboard test flakes for:
2026-04-01 10:10 gotip-windows-amd64-race go@a409055b net (log)
— watchflakes
gopherbot commentedon Apr 7, 2026
Found new dashboard test flakes for:
2026-04-07 19:14 go1.26-windows-amd64-race release-branch.go1.26@3a4577a2 net (log)
— watchflakes
gopherbot commentedon Oct 29, 2026
No watchflakes activity for 6 months. Closing.
(Reopening will happen automatically if watchflakes detects new failures.)