Skip to content

net/http: panic: Fail in goroutine after TestIdleConnH2Crash has completed #17838

@mundaym

Description

@mundaym

Seen this a few times on the builders/try-bots:

https://storage.googleapis.com/go-build-log/a00e08e6/linux-amd64-race_ddab7f06.log
https://build.golang.org/log/bea93398c6a9b02b43c328ff42ecb46aa68b6e42
https://build.golang.org/log/46e5048ad14411222494a1c0b36460239d09df8b

The TLS handshake error in the log below isn't always reported.

2016/11/05 00:51:18 http: TLS handshake error from 127.0.0.1:48335: read tcp 127.0.0.1:59339->127.0.0.1:48335: use of closed network connection
panic: Fail in goroutine after TestIdleConnH2Crash has completed

goroutine 2711 [running]:
panic(0x810760, 0xc420511040)
	/tmp/workdir/go/src/runtime/panic.go:531 +0x1cf
testing.(*common).Fail(0xc4203da380)
	/tmp/workdir/go/src/testing/testing.go:464 +0x119
testing.(*common).Error(0xc4203da380, 0xc42051d988, 0x1, 0x1)
	/tmp/workdir/go/src/testing/testing.go:531 +0x6f
net/http_test.TestIdleConnH2Crash.func2(0x896c5c, 0x3, 0xc420420b80, 0xf, 0x5, 0xc420420b80, 0xf, 0x8)
	/tmp/workdir/go/src/net/http/transport_test.go:3681 +0x1e1
net/http.(*Transport).dialConn(0xc42062c3c0, 0xa9f6e0, 0xc420372540, 0x0, 0xc42000aac0, 0x5, 0xc420420b80, 0xf, 0x180001, 0x0, ...)
	/tmp/workdir/go/src/net/http/transport.go:976 +0x38f
net/http.(*Transport).getConn.func4(0xc42062c3c0, 0xa9f6e0, 0xc420372540, 0xc42032db00, 0xc420439860)
	/tmp/workdir/go/src/net/http/transport.go:903 +0x78
created by net/http.(*Transport).getConn
	/tmp/workdir/go/src/net/http/transport.go:905 +0x3a3
FAIL	net/http	0.670s

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.TestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions