-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: (*http2pipe).closeWithError” Crashed #43965
Comments
The Line 3558 in 2117ea9
The question is, where does the Line 3537 in 2117ea9
At that point we know that The comment for that field says: Line 3469 in 2117ea9
That behavior is implemented here: Lines 3507 to 3514 in 2117ea9
So the question is: what is calling |
@bcmills Why does it matter? There are only 2 places where p.b = nil occurs. In Read(), but the guarantee is p.err is non nil or during closeWithError() which will set p.breakErr non nil. @wgplt Have you run your program with race detection enabled? |
I run my program with race detection enabled,sometimes it can reappear, sometimes it can't! |
@wgplt can you provide more details? |
@davecheney @fraenkel @bcmills @seankhliao I found out why the program crashed because the website I requested returned the following response: `HTTP/1.1 100001 ` |
There has to be more than this. The fact that your panic was in processData means we saw a data frame. There is no way for the http2 stack to process the above as something remotely valid. Do you have any more of the actual wire flow? |
The test code is as follows: `// test project main.go import ( func main() { func GET(URL string) { |
What version of Go are you using (go version)?
Does this issue reproduce with the latest release? What operating system and processor architecture are you using (go env)? go env
What did you do?
and got
Hi I have come across a site that does this issue here each time. I have no idea what this site is as it does not even load in chrome or curl, due to I assume the same issue go is seeing. Curl shows this.
Any ideas how to cope with this scenario without causing a panic. For now I have put this site on a skip list. |
@3lixy Thanks for the reproducer. |
Change https://golang.org/cl/330415 mentions this issue: |
just wondering when this fix will be merged to master branch? |
@yusong0926 The patch is still under review. We can't make a prediction yet. Sorry. |
any update? |
Not sure if related but we saw a similar crash for
No panic with |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
1.15.7
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I used a common "http.Transport" object for every “http.Client”,bug after running for a while ,the program crashes and the output error message is as follows。
my codes like this:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: