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

Issue 12374061: Windows: BrowserChildProcessHostImpl reports OnProcessCrashed if the child process crashes before… (Closed)

Created:
7 years, 9 months ago by apatrick_chromium
Modified:
7 years, 9 months ago
Reviewers:
cpu_(ooo_6.6-7.5), sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Windows: BrowserChildProcessHostImpl reports OnProcessCrashed if the child process crashes before connecting the IPC channel. When a child process crashes, this is generally detected by an error on the IPC channel, i.e. OnChannelError being called. However, if the child process exits or crashes before this IPC channel has been established, the crash is lost. The browser process sees the child process being launched but never learns of its termination. This patch uses a WaitableEventWatcher to track the lifetime of the child process up to the point the IPC channel is connected. If the child process crashes in the interim, the usual OnProcessCrashed handler is invoked. This is important for the GPU child process because it is prone to crashing before the IPC channel is established; it has to initialize Direct3D before the sandbox is turned on. This would lead to a browser hang if Direct3D or the driver crashed during initialization. BUG=177611 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186498

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -0 lines) Patch
M content/browser/browser_child_process_host_impl.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 4 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
apatrick_chromium
7 years, 9 months ago (2013-03-04 19:26:29 UTC) #1
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/12374061/diff/4002/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/12374061/diff/4002/content/browser/browser_child_process_host_impl.cc#newcode94 content/browser/browser_child_process_host_impl.cc:94: process_waitable_event_->Release(); call GetWatchedEvent to obtain this? https://codereview.chromium.org/12374061/diff/4002/content/browser/browser_child_process_host_impl.cc#newcode220 content/browser/browser_child_process_host_impl.cc:220: early_exit_watcher_.StopWatching(); ...
7 years, 9 months ago (2013-03-04 22:46:59 UTC) #2
apatrick_chromium
PTAL https://codereview.chromium.org/12374061/diff/4002/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/12374061/diff/4002/content/browser/browser_child_process_host_impl.cc#newcode94 content/browser/browser_child_process_host_impl.cc:94: process_waitable_event_->Release(); On 2013/03/04 22:46:59, cpu wrote: > call ...
7 years, 9 months ago (2013-03-05 00:22:41 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm
7 years, 9 months ago (2013-03-05 00:42:40 UTC) #4
apatrick_chromium
+sky for owners
7 years, 9 months ago (2013-03-05 00:44:06 UTC) #5
sky
LGTM
7 years, 9 months ago (2013-03-05 03:52:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apatrick@chromium.org/12374061/1007
7 years, 9 months ago (2013-03-05 19:53:00 UTC) #7
commit-bot: I haz the power
Failed to apply patch for content/browser/browser_child_process_host_impl.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-05 19:53:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apatrick@chromium.org/12374061/22002
7 years, 9 months ago (2013-03-05 22:56:16 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=105576
7 years, 9 months ago (2013-03-06 01:21:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apatrick@chromium.org/12374061/22002
7 years, 9 months ago (2013-03-06 20:01:39 UTC) #11
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 20:47:51 UTC) #12
Message was sent while issue was closed.
Change committed as 186498

Powered by Google App Engine
This is Rietveld 408576698