Open dr2chase opened 7 years ago
Happened again: https://storage.googleapis.com/go-build-log/82d5c3e9/freebsd-amd64-gce101_318ec227.log. Going to mail a CL disabling the test for now.
CL https://golang.org/cl/37653 mentions this issue.
This test is failing with my fake networking for js/wasm. It might be flaky on freebsd/amd64 for the same reason. Here is what I found:
Change https://golang.org/cl/120958 mentions this issue: net: re-implement built-in simulated network on JS and NaCl
Another failure, this time on freebsd-386-11_2
: https://build.golang.org/log/f96ab0392ed0c683f8649fbb3686e9d74e3b30bb
--- FAIL: TestTLSClient (0.01s)
smtp_test.go:746: client error: close tcp 127.0.0.1:46749->127.0.0.1:46748: connection reset by peer
FAIL
FAIL net/smtp 0.049s
greplogs --dashboard -md -l -e '(?m)FAIL: TestTLSClient.*\n.*connection reset by peer' --since=2021-02-20
2021-11-17T04:55:12-1d004fa/freebsd-386-11_4 2021-11-05T17:23:06-37951d8/freebsd-386-12_2 2021-11-02T13:43:24-4d7bf41/freebsd-386-11_4 2021-10-27T21:34:20-4fefd43/freebsd-386-11_4 2021-10-21T15:42:41-8b0bea9/freebsd-386-11_4 2021-10-20T20:39:29-1dff8f0/freebsd-386-11_4 2021-09-21T23:11:47-30faf96/freebsd-arm64-dmgk 2021-06-04T14:31:24-c6b6211/freebsd-386-11_4 2021-06-04T01:26:43-b29b123/freebsd-386-12_2 2021-05-04T23:35:34-137be77/freebsd-386-11_4 2021-05-03T19:14:16-9f34703/freebsd-386-11_4 2021-04-28T20:36:50-fa6ed6e/freebsd-386-11_4 2021-04-23T14:06:54-d4bfe00/freebsd-386-11_2 2021-04-22T18:17:00-b6ff3c6/freebsd-386-11_4 2021-04-18T17:40:12-4efd581/freebsd-386-11_2 2021-04-08T19:30:34-ecca94a/freebsd-386-11_2 2021-04-06T23:39:42-972e883/freebsd-386-12_0 2021-03-25T21:30:55-11b4aee/freebsd-arm64-dmgk 2021-03-24T21:19:57-63e9f6d/freebsd-386-11_2 2021-03-23T23:08:19-769d4b6/freebsd-386-11_2 2021-03-23T22:17:52-dc289d3/freebsd-arm64-dmgk 2021-03-04T03:29:58-95ff296/freebsd-386-12_0 2021-02-20T03:54:50-d4b2638/freebsd-386-11_2
Change https://golang.org/cl/370137 mentions this issue: net/smtp: skip TestTLSSClient on all freebsd platforms
A proper fix for this will likely need someone with at least some expertise in the TLS protocol and/or the FreeBSD network stack (i.e. not me 😅).
I don't think the issue is crypto/tls trying to send the close notify alert, or we would see tls: failed to send closeNotify alert
in the error. Instead, the error is returned by the actual net.Conn.Close, which suggests a difference in behavior when trying to close already-closed connections in FreeBSD.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8+ (development)
What operating system and processor architecture are you using (
go env
)?freebsd-amd64-gce101
What did you do?
Tried to run Trybots for an unrelated change: https://go-review.googlesource.com/c/37333/#message-ae31a67c5f6927959d8d507bc5ae951e01fbc4e7
Observed failure, followed instructions to check https://build.golang.org
In the first column for freebsd-x64 (the left-hand one), I clicked through some of the failures in that column, and noticed the repeated occurrence of
which is also what besmirched my otherwise-clean TryBot run.