-
Notifications
You must be signed in to change notification settings - Fork 18k
x/net/http2: panics after updating to commit 1a26cf06691746ee35aa7113c9b37289afc7ea28 #20501
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
Labels
Milestone
Comments
Write also needs a guard. |
It looks like the invariant was originally supposed to be that |
CL https://golang.org/cl/44330 mentions this issue. |
CL https://golang.org/cl/44331 mentions this issue. |
gopherbot
pushed a commit
to golang/net
that referenced
this issue
May 26, 2017
Case happens if Read is called after it has already returned an error previously. Verified that the new TestPipeCloseWithError test fails before this change but passes after. Updates golang/go#20501 Change-Id: I636fbb194f2d0019b0722556cc25a88da2d18e13 Reviewed-on: https://go-review.googlesource.com/44330 Run-TryBot: Tom Bergan <tombergan@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
c3mb0
pushed a commit
to c3mb0/net
that referenced
this issue
Apr 2, 2018
Case happens if Read is called after it has already returned an error previously. Verified that the new TestPipeCloseWithError test fails before this change but passes after. Updates golang/go#20501 Change-Id: I636fbb194f2d0019b0722556cc25a88da2d18e13 Reviewed-on: https://go-review.googlesource.com/44330 Run-TryBot: Tom Bergan <tombergan@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8.1
What operating system and processor architecture are you using (
go env
)?linux, amd64
What did you do?
After recent x/net/http2 update I'm getting panics in http2 code.
I'm using kubernetes client-go, version 2.0, so this is the sources:
https://github.com/kubernetes/client-go/blob/release-2.0/rest/request.go
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
No panic.
What did you see instead?
Downgrading to commit golang/net@5961165 resolves the issue.
https://go-review.googlesource.com/c/43810/ - This was the change which introduced panic.
I checked source of
Read
method - it looks like after settingp.b
tonil
in pipe.go:61, consequent calls toRead
should check ifp.b
is nil.The text was updated successfully, but these errors were encountered: