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

Issue 200007: When forking, restore the default exception handler port.... (Closed)

Created:
11 years, 3 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
Reviewers:
jeremy
CC:
chromium-reviews_googlegroups.com, John Grabowski, brettw, pam+watch_chromium.org
Visibility:
Public.

Description

When forking, restore the default exception handler port. The browser process launches children with fork && exec. On the Mac, this results in a child that has its exception ports set the same as the parent. When Breakpad is enabled, this means that a child such as a renderer process begins its life with its exception port pointing to a Breakpad instance running inside the browser. This is not intended. Even if the child installs its own Breakpad handler (which a renderer would), the previous handler would be pointing to the instance inside the browser, and if the child's Breakpad is misconfigured to pass exceptions to the previous handler it will wind up being passed back to the parent. The misconfiguration was corrected in r25311. This change restores the default exception handler port, which should be Apple Crash Reporter/ReportCrash, in the child process immediately after it it has been forked. BUG=20371 TEST=None, because r25311 fixed the visible aspect of this bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25371

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M base/process_util.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M base/process_util_mac.mm View 2 chunks +19 lines, -0 lines 0 comments Download
M base/process_util_posix.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mark Mentovai
In a Breakpad-enabled release build with this change, renderer crashes go to Breakpad but not ...
11 years, 3 months ago (2009-09-03 19:56:03 UTC) #1
Mark Mentovai
Breakpad-enabled release build with this change: browser crashes go to Breakpad and then to Apple ...
11 years, 3 months ago (2009-09-03 20:05:54 UTC) #2
jeremy
LGTM!! Please test on 10.6 before submitting. http://codereview.chromium.org/200007/diff/1/4 File base/process_util.h (right): http://codereview.chromium.org/200007/diff/1/4#newcode423 Line 423: // ...
11 years, 3 months ago (2009-09-03 20:33:28 UTC) #3
Mark Mentovai
I've added a link to the bug. The behavior is the same on 10.5 and ...
11 years, 3 months ago (2009-09-03 21:06:19 UTC) #4
jeremy
11 years, 3 months ago (2009-09-03 21:25:42 UTC) #5
Still LGTM

Powered by Google App Engine
This is Rietveld 408576698