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

Issue 6538033: Breakpad Linux: Fix crash handler writing to disk on the wrong thread.... (Closed)

Created:
9 years, 10 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
agl, piman
CC:
chromium-reviews
Visibility:
Public.

Description

Breakpad Linux: Fix crash handler writing to disk on the wrong thread. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75325

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -46 lines) Patch
M chrome/browser/crash_handler_host_linux.h View 3 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/crash_handler_host_linux.cc View 7 chunks +65 lines, -43 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
Lei Zhang
Official build in debug mode triggered the thread restriction code because we were doing writes ...
9 years, 10 months ago (2011-02-17 22:49:08 UTC) #1
agl
LGTM
9 years, 10 months ago (2011-02-17 22:57:41 UTC) #2
piman
http://codereview.chromium.org/6538033/diff/1/chrome/browser/crash_handler_host_linux.cc File chrome/browser/crash_handler_host_linux.cc (right): http://codereview.chromium.org/6538033/diff/1/chrome/browser/crash_handler_host_linux.cc#newcode309 chrome/browser/crash_handler_host_linux.cc:309: reinterpret_cast<char*>(&crash_context), Woah, are we passing a reference to a ...
9 years, 8 months ago (2011-04-15 05:17:16 UTC) #3
Lei Zhang
9 years, 8 months ago (2011-04-15 05:25:07 UTC) #4
http://codereview.chromium.org/6538033/diff/1/chrome/browser/crash_handler_ho...
File chrome/browser/crash_handler_host_linux.cc (right):

http://codereview.chromium.org/6538033/diff/1/chrome/browser/crash_handler_ho...
chrome/browser/crash_handler_host_linux.cc:309:
reinterpret_cast<char*>(&crash_context),
On 2011/04/15 05:17:17, piman wrote:
> Woah, are we passing a reference to a buffer on the stack here ? It's invalid
> when WriteDumpFile executes
> 
> Also, is it really necessary to hop threads ? We are already on a worker
thread.

Doh. I'll fix it in a bit.

Powered by Google App Engine
This is Rietveld 408576698