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/http: BenchmarkServerFakeConnNoKeepAlive can deadlock #5121
Labels
Comments
Apparently the test is just flaky with GOMAXPROCS>1. I can reproduce the deadlock with revisions back to January, even without the race detector. I am on linux/amd64. go test -test.run none -test.bench Fake -test.benchtime .6s -test.cpu=2,2,2,2,2 PASS BenchmarkServerFakeConnNoKeepAlive-2 fatal error: all goroutines are asleep - deadlock! goroutine 1 [chan receive]: testing.(*B).run(0xc2000703c0, 0x3, 0x7ffd3f853be0, 0x1) /opt/remy/go.clean2/src/pkg/testing/benchmark.go:168 +0x49 testing.RunBenchmarks(0x400c00, 0x70a998, 0x1, 0x1) /opt/remy/go.clean2/src/pkg/testing/benchmark.go:300 +0x4f9 testing.Main(0x400c00, 0x70d9d0, 0x3, 0x3, 0x70a998, ...) /opt/remy/go.clean2/src/pkg/testing/testing.go:330 +0x1af main.main() testhttp/_test/_testmain.go:49 +0x9a goroutine 3 [chan receive]: testhttp.BenchmarkServerFakeConnNoKeepAlive(0xc2000703c0, 0x426a24) /home/remy/travail/go/src/testhttp/serve_test.go:172 +0x2dd testing.(*B).runN(0xc2000703c0, 0x4e20, 0x4e20, 0x2710) /opt/remy/go.clean2/src/pkg/testing/benchmark.go:119 +0x83 testing.(*B).launch(0xc2000703c0, 0x0) /opt/remy/go.clean2/src/pkg/testing/benchmark.go:204 +0x134 created by testing.(*B).run /opt/remy/go.clean2/src/pkg/testing/benchmark.go:167 +0x2c exit status 2 FAIL testhttp 0.844s The apparent lockup is because the latest network poller prevents the deadlock detection from working. |
This issue was closed by revision 3add0fe. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: