-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Crash in h2_progress_egress
due to NULL stream
#11379
Comments
Can you give us more information? How do you reproduce this problem? What are
the versions of the dependencies? The output of curl -V would be a good start.
|
We include libcurl as a dependency of our iOS app, so there is no commandline for It looks like this line to get the stream can be
From https://github.com/curl/curl/blob/curl-8_1_2/lib/http2.c#L1659 When that happens, It looks like
Otherwise it's unused. I believe replacing:
with
and then using Testing it now. |
Here's the stack trace:
it's unclear if the line numbers are correct but I was able to reproduce the issue with a debugger. |
This appears to fix the issue: #11380 🥳 |
Thanks. While this avoids the crash, it does not do the needed behaviour. This submits the priority to nghttp2 on stream id -2 and not the stream that, afterwards, will be opened in The correct way is to delay the priority handling until the stream has been opened. The |
I made #11384 with a test case and fix. |
Awesome Amazing! |
- Delay the priority handling until the stream has been opened. - Add test2404 to reproduce and verify. Weights may change "on the run", which is why there are checks in general egress handling. These must not trigger when the stream has not been opened yet. Reported-by: jbgoog@users.noreply.github.com Fixes curl#11379 Closes curl#11384
- Delay the priority handling until the stream has been opened. - Add test2404 to reproduce and verify. Weights may change "on the run", which is why there are checks in general egress handling. These must not trigger when the stream has not been opened yet. Reported-by: jbgoog@users.noreply.github.com Fixes curl#11379 Closes curl#11384
I did this
Seeing a crash here during
h2_progress_egress
call:stream
isNULL
sostream->id
throws the following error:I expected the following
curl/libcurl version
operating system
iOS
The text was updated successfully, but these errors were encountered: