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

Issue 460040: Do not set io_loop_ to NULL until we have deleted request_ and set... (Closed)

Created:
11 years ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
ukai, pmarks
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Do not set io_loop_ to NULL until we have deleted request_ and set request_ to NULL, otherwise Cancel() may fail to post a CancelURLRequest task because io_loop_ is NULL but request_ is not NULL. (That task adds a reference to the OCSPRequestSession object to ensure that it lives longer than the URLRequest object.) R=ukai BUG=28526 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33698

Patch Set 1 #

Patch Set 2 : Better fix: delete request_ before setting finished_ to true. #

Patch Set 3 : Remove a debugging DCHECK. #

Patch Set 4 : Upload before checkin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M net/ocsp/nss_ocsp.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
wtc
pmarks, could you revert ukai's CL in http://codereview.chromium.org/449009 and test this CL? Thanks. I believe ...
11 years ago (2009-12-03 05:25:10 UTC) #1
wtc
I just uploaded Patch Set 2, which is a better fix. It enables Cancel() to ...
11 years ago (2009-12-03 05:49:29 UTC) #2
ukai
LGTM. Thanks!
11 years ago (2009-12-03 05:58:15 UTC) #3
pmarks
My steps: 1. sync & compile 2. test -> crash! 3. apply patch 4. compile ...
11 years ago (2009-12-03 07:50:39 UTC) #4
wtc
11 years ago (2009-12-03 19:08:02 UTC) #5
pmarks: thanks for testing the patch.  You don't need to
review it.

I removed a debugging DCHECK (because it accesses request_
on a worker thread -- request_ should only be used by the
IO thread) and committed the CL.

Powered by Google App Engine
This is Rietveld 408576698