You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash in h2_progress_egress due to NULL stream #11379
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.
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 nghttp2.
The correct way is to delay the priority handling until the stream has been opened. The if should only be entered here when in addition stream != NULL && stream->id > 0. Could you amend your PR in this way?
Activity
dfandrich commentedon Jun 23, 2023
jbgoog commentedon Jun 23, 2023
We include libcurl as a dependency of our iOS app, so there is no commandline for
curl -Vunfortunately.It looks like this line to get the stream can be
NULL:From https://github.com/curl/curl/blob/curl-8_1_2/lib/http2.c#L1659
When that happens,
stream->idaborts.It looks like
streamhere is only used to get thestream->idOtherwise it's unused.
I believe replacing:
with
and then using
stream_iddirectly instead ofstream->idwill fix the issue.Testing it now.
jbgoog commentedon Jun 23, 2023
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.
jbgoog commentedon Jun 23, 2023
This appears to fix the issue: #11380
🥳
icing commentedon Jun 24, 2023
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
nghttp2.The correct way is to delay the priority handling until the stream has been opened. The
ifshould only be entered here when in additionstream != NULL && stream->id > 0. Could you amend your PR in this way?icing commentedon Jun 26, 2023
I made #11384 with a test case and fix.
jbgoog commentedon Jun 26, 2023
Awesome Amazing!
http2: fix crash in handling stream weights
http2: fix crash in handling stream weights
http2: fix crash in handling stream weights