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

Issue 11316261: Linux: inform the Zygote when it's waiting on a dead process (Closed)

Created:
8 years ago by jln (very slow on Chromium)
Modified:
7 years, 3 months ago
Reviewers:
Mark Mentovai, brettw, agl, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, sail+watch_chromium.org, James Cook
Visibility:
Public.

Description

Linux: inform the Zygote when it's waiting on a dead process If the browser calls ProcessDied() and asks the Zygote to wait (without blocking) on a dead process, the kernel might not be done destroying it and the Zygote may mistakenly claim that the process is alive. We now inform the Zygote over the IPC that the process is already dead so that it can wait synchroneously. BUG=157458 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171450

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Address Adam's remarks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -51 lines) Patch
M base/process_util.h View 1 chunk +9 lines, -0 lines 0 comments Download
M base/process_util_posix.cc View 2 chunks +49 lines, -37 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M content/browser/child_process_launcher.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 4 chunks +5 lines, -4 lines 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/zygote/zygote_linux.cc View 2 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jln (very slow on Chromium)
Adam, do you mind taking a look ? I'm not super happy with it, but ...
8 years ago (2012-11-30 01:51:16 UTC) #1
jln (very slow on Chromium)
On 2012/11/30 01:51:16, Julien Tinnes wrote: > Adam, do you mind taking a look ? ...
8 years ago (2012-12-04 07:11:19 UTC) #2
agl
Sorry, didn't notice the CL as well as the bug-thread. I'm not a base/ OWNERS, ...
8 years ago (2012-12-04 15:27:55 UTC) #3
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/11316261/diff/7002/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://chromiumcodereview.appspot.com/11316261/diff/7002/content/browser/browser_child_process_host_impl.cc#newcode197 content/browser/browser_child_process_host_impl.cc:197: return child_process_->GetChildTerminationStatus(false, exit_code); On 2012/12/04 15:27:55, agl wrote: > ...
8 years ago (2012-12-04 20:01:25 UTC) #4
jln (very slow on Chromium)
On 2012/12/04 15:27:55, agl wrote: > Sorry, didn't notice the CL as well as the ...
8 years ago (2012-12-04 20:08:41 UTC) #5
agl
On 2012/12/04 20:08:41, Julien Tinnes wrote: > Moreover, even if we *know* a process is ...
8 years ago (2012-12-04 22:20:44 UTC) #6
jln (very slow on Chromium)
sky: would you mind taking a look as owner of content/browser ? brettw: would you ...
8 years ago (2012-12-04 23:30:52 UTC) #7
sky
LGTM
8 years ago (2012-12-05 00:47:08 UTC) #8
brettw
base lgtm rubberstamp based on agl's review
8 years ago (2012-12-05 19:09:49 UTC) #9
jln (very slow on Chromium)
On 2012/12/05 19:09:49, brettw wrote: > base lgtm rubberstamp based on agl's review Thanks Brett. ...
8 years ago (2012-12-05 19:36:11 UTC) #10
brettw
I don't think it's a security hole if a compromised renderer can hang the browser ...
8 years ago (2012-12-05 20:31:35 UTC) #11
jln (very slow on Chromium)
On 2012/12/05 20:31:35, brettw wrote: > I don't think it's a security hole if a ...
8 years ago (2012-12-05 20:36:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/11316261/1011
8 years ago (2012-12-06 00:08:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/11316261/1011
8 years ago (2012-12-06 05:01:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/11316261/1011
8 years ago (2012-12-06 07:41:57 UTC) #15
commit-bot: I haz the power
Change committed as 171450
8 years ago (2012-12-06 08:31:54 UTC) #16
agl
7 years, 3 months ago (2013-09-16 22:56:07 UTC) #17
Message was sent while issue was closed.
I long ago lost track of the dozen different wrappings of waitpid I'm afraid.
Throwing to Mark, who will know the details of OS X that I don't.

Powered by Google App Engine
This is Rietveld 408576698