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/http: Transport crash in tryPutIdleConn #19605

Closed
bradfitz opened this issue Mar 18, 2017 · 3 comments
Closed

net/http: Transport crash in tryPutIdleConn #19605

bradfitz opened this issue Mar 18, 2017 · 3 comments
Labels
FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@bradfitz
Copy link
Contributor

Test flake in trybot run of https://go-review.googlesource.com/c/38351/

https://storage.googleapis.com/go-build-log/7db6e167/linux-amd64-race_2fc40adc.log

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x428943]

goroutine 136 [running]:
net/http.(*Transport).tryPutIdleConn(0xc42032c5a0, 0xc42033fb00, 0x0, 0x0)
	/tmp/workdir/go/src/net/http/transport.go:688 +0x29a
net/http.(*persistConn).readLoop.func2(0x0, 0xc420386201)
	/tmp/workdir/go/src/net/http/transport.go:1490 +0x6f
net/http.(*persistConn).readLoop(0xc42033fb00)
	/tmp/workdir/go/src/net/http/transport.go:1587 +0x1549
created by net/http.(*Transport).dialConn
	/tmp/workdir/go/src/net/http/transport.go:1168 +0xbf5
FAIL	net/http	0.207s
@bradfitz bradfitz added help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Testing An issue that has been verified to require only test changes, not just a test failure. labels Mar 18, 2017
@bradfitz bradfitz added this to the Go1.9 milestone Mar 18, 2017
@bradfitz bradfitz self-assigned this Mar 18, 2017
@bradfitz
Copy link
Contributor Author

Maybe CL 38351 is to blame? But in case it's not, filing this.

@mvdan
Copy link
Member

mvdan commented Mar 18, 2017

Likely caused by the CL - the runtime channel code it touches has raceenabled in there, so it could be that I simply broke -race. I'll look into this tomorrow.

@bradfitz bradfitz assigned mvdan and unassigned bradfitz Mar 18, 2017
@mvdan
Copy link
Member

mvdan commented Mar 18, 2017

Yeah, I can reproduce the crash via go test -race net/http. Closing as it's a regression in the CL, not a flake already present in tip.

@mvdan mvdan closed this as completed Mar 18, 2017
@golang golang locked and limited conversation to collaborators Mar 18, 2018
@rsc rsc unassigned mvdan Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

3 participants