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

Issue 404044: Fix race condition in OCSPRequestSession. (Closed)

Created:
11 years, 1 month ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix race condition in OCSPRequestSession. BUG=23437 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32580

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -9 lines) Patch
M net/ocsp/nss_ocsp.cc View 8 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ukai
11 years, 1 month ago (2009-11-19 06:18:02 UTC) #1
wtc
LGTM. Thanks!
11 years, 1 month ago (2009-11-19 19:57:00 UTC) #2
willchan no longer on Chromium
On 2009/11/19 19:57:00, wtc wrote: > LGTM. Thanks! FWIW, I've patched this into my client ...
11 years, 1 month ago (2009-11-19 19:59:02 UTC) #3
willchan no longer on Chromium
Spoke too soon! New crash: [20576:2104:1127202221447:FATAL:net/ocsp/nss_ocsp.cc(251)] Check failed: !request_. Program received signal SIGTRAP, Trace/breakpoint trap. ...
11 years, 1 month ago (2009-11-19 20:07:33 UTC) #4
eroman
Please backport these fixes to 4.0 branch when it is all sorted out. Thanks
11 years, 1 month ago (2009-11-19 20:19:29 UTC) #5
wtc
On 2009/11/19 20:07:33, willchan wrote: > Spoke too soon! New crash: > > [20576:2104:1127202221447:FATAL:net/ocsp/nss_ocsp.cc(251)] Check ...
11 years, 1 month ago (2009-11-19 20:43:23 UTC) #6
wtc
11 years, 1 month ago (2009-11-19 20:59:16 UTC) #7
The RunnableMethod class should take care of acquiring and
releasing the reference to the object:

template <class T, class Method, class Params>
class RunnableMethod : public CancelableTask {
 public:
  RunnableMethod(T* obj, Method meth, const Params& params)
      : obj_(obj), meth_(meth), params_(params) {
    traits_.RetainCallee(obj_);
  }

  ~RunnableMethod() {
    ReleaseCallee();
  }

So I don't know why the reference count seems to be wrong.

Powered by Google App Engine
This is Rietveld 408576698