Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Issue 2163883004: Do not invoke QuicHttpStream::DoCallback when in DoLoop (Closed)

Created:
4 years, 5 months ago by xunjieli
Modified:
4 years, 5 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not invoke QuicHttpStream::DoCallback when in DoLoop Latest crash dumps suggest that callback is invoked re-entrantly during QuicHttpStream::DoLoop(). This can be problematic because the caller can delete the QuicHttpStream when the callback is run. This CL changes QuicHttpStream::OnClose() to not invoke callback when already in DoLoop(). This CL also adds a unit test which will crash without the change or the CHECKs. BUG=629043 Committed: https://crrev.com/8dff50bad755b439be74e98225647699f555ee96 Cr-Commit-Position: refs/heads/master@{#407152}

Patch Set 1 #

Patch Set 2 : Add a test which crashes with the exact call stack without the patch #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -0 lines) Patch
M net/quic/quic_http_stream.cc View 1 chunk +4 lines, -0 lines 2 comments Download
M net/quic/quic_http_stream_test.cc View 1 2 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
xunjieli
What do you think about this approach instead? I am not sure how to fix ...
4 years, 5 months ago (2016-07-20 15:10:07 UTC) #2
mmenke
On 2016/07/20 15:10:07, xunjieli wrote: > What do you think about this approach instead? I ...
4 years, 5 months ago (2016-07-20 15:14:43 UTC) #3
xunjieli
On 2016/07/20 15:14:43, mmenke wrote: > On 2016/07/20 15:10:07, xunjieli wrote: > > What do ...
4 years, 5 months ago (2016-07-20 15:20:23 UTC) #4
mmenke
On 2016/07/20 15:20:23, xunjieli wrote: > On 2016/07/20 15:14:43, mmenke wrote: > > On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 15:34:59 UTC) #5
xunjieli
Done. I added a test which will crash with the same callstack without applying the ...
4 years, 5 months ago (2016-07-20 16:45:51 UTC) #9
Ryan Hamilton
Since this fixes a crash, I'm happy to see it land now but I think ...
4 years, 5 months ago (2016-07-21 22:29:33 UTC) #18
xunjieli
> Since this fixes a crash, I'm happy to see it land now but I ...
4 years, 5 months ago (2016-07-22 13:21:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2163883004/40001
4 years, 5 months ago (2016-07-22 13:21:57 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 5 months ago (2016-07-22 14:19:25 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 14:20:52 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8dff50bad755b439be74e98225647699f555ee96
Cr-Commit-Position: refs/heads/master@{#407152}

Powered by Google App Engine
This is Rietveld 408576698