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

net: dialing a loopback address sometimes fails with ECONNRESET on NetBSD #60743

Closed
gopherbot opened this issue Jun 12, 2023 · 5 comments
Closed
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-NetBSD
Milestone

Comments

@gopherbot
Copy link

gopherbot commented Jun 12, 2023

#!watchflakes
post <- goos == "netbsd" && `connect: connection reset by peer`

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestConnUnicastSocketOptions (0.00s)
    unicastsockopt_test.go:44: dial tcp6 [::1]:65504: connect: connection reset by peer

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 12, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/net/ipv6" && test == "TestConnUnicastSocketOptions"
2023-06-08 16:11 netbsd-386-9_3 net@5541298b go@1db23771 x/net/ipv6.TestConnUnicastSocketOptions (log)
--- FAIL: TestConnUnicastSocketOptions (0.00s)
    unicastsockopt_test.go:44: dial tcp6 [::1]:65504: connect: connection reset by peer

watchflakes

@gopherbot gopherbot added this to the Unreleased milestone Jun 12, 2023
@bcmills
Copy link
Contributor

bcmills commented Jun 13, 2023

The “ECONNRESET in connect on netbsd” failure mode looks like #52168.

(attn @golang/netbsd)

@bcmills
Copy link
Contributor

bcmills commented Jun 13, 2023

(POSIX does allow connect to return ECONNRESET if “[the r]emote host reset the connection request”, but in this case the remote host is a loopback port.)

@bcmills bcmills changed the title x/net/ipv6: TestConnUnicastSocketOptions failures net: dialing a loopback address sometimes fails with ECONNRESET on NetBSD Jun 13, 2023
@bcmills bcmills modified the milestones: Unreleased, Backlog Jun 13, 2023
@bcmills
Copy link
Contributor

bcmills commented Jun 13, 2023

Duplicate of #58276

@bcmills bcmills marked this as a duplicate of #58276 Jun 13, 2023
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "netbsd" && `connect: connection reset by peer`
2023-05-02 02:52 netbsd-386-9_3 vuln@76abf843 go@c3c53a2c x/vuln/internal/client.TestByModules (log)
--- FAIL: TestByModules (0.55s)
    --- FAIL: TestByModules/all (0.13s)
        --- FAIL: TestByModules/all/http (0.00s)
            client_test.go:277: Get "http://127.0.0.1:65467/index/modules.json.gz": dial tcp 127.0.0.1:65467: connect: connection reset by peer
2023-05-05 20:14 netbsd-amd64-9_3 vuln@d573de52 go@f3034bed x/vuln/internal/client.TestByModules (log)
--- FAIL: TestByModules (0.30s)
    --- FAIL: TestByModules/all (0.12s)
        --- FAIL: TestByModules/all/http (0.00s)
            client_test.go:277: Get "http://127.0.0.1:65468/index/modules.json.gz": dial tcp 127.0.0.1:65468: connect: connection reset by peer
2023-06-01 14:35 netbsd-amd64-9_3 net@10cf3880 go@db3f952b x/net/ipv6.TestConnInitiatorPathMTU (log)
--- FAIL: TestConnInitiatorPathMTU (0.00s)
    sockopt_test.go:40: dial tcp6 [::1]:65509: connect: connection reset by peer
    asm_amd64.s:1650: accept tcp6 [::1]:65509: use of closed network connection
2023-06-29 19:38 netbsd-386-9_3 vuln@2f47882f go@c4590af1 x/vuln/internal/client.TestByModules (log)
--- FAIL: TestByModules (0.67s)
    --- FAIL: TestByModules/all (0.30s)
        --- FAIL: TestByModules/all/http (0.02s)
            client_test.go:287: Get "http://127.0.0.1:65474/ID/GO-2021-0068.json.gz": dial tcp 127.0.0.1:65474: connect: connection reset by peer

watchflakes

@gopherbot gopherbot reopened this Jun 30, 2023
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-NetBSD
Projects
None yet
Development

No branches or pull requests

2 participants