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

Issue 2827783003: Initialize RenderSandboxHostLinux in --no-zygote mode to not crash. (Closed)

Created:
3 years, 8 months ago by zoeclifford
Modified:
3 years, 8 months ago
Reviewers:
Charlie Reis, Sami
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize RenderSandboxHostLinux in --no-zygote mode to not crash. http://crrev.com/2384163002 skipped initializing RenderSandboxHostLinux If the sandbox and zygote are both disabled. But the RendererSocket is used even in this case by the Linux ChildProcessLauncherHelper, so it lead to a crash. Instead initialize the RenderSandboxHostLinux unconditionally. This appears to be what some code expects in multi-process code. Tested: cr run chrome --no-zygote --no-sandbox http://www.google.com BUG=712779 Review-Url: https://codereview.chromium.org/2827783003 Cr-Commit-Position: refs/heads/master@{#466168} Committed: https://chromium.googlesource.com/chromium/src/+/9dc1413a9f8a803109530c02aeb4429a8856e525

Patch Set 1 #

Patch Set 2 : Don't crash in --no-zygote mode. #

Patch Set 3 : Disable the test under TSan. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M content/browser/browser_main_loop.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/zygote/zygote_browsertest.cc View 1 2 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
zoeclifford
Does this change look reasonable? Running it by skyostil@ (who wrote http://crrev.com/2384163002) before adding owner ...
3 years, 8 months ago (2017-04-18 20:55:53 UTC) #3
Sami
lgtm, thanks for tracking this down!
3 years, 8 months ago (2017-04-19 15:30:26 UTC) #4
zoeclifford
3 years, 8 months ago (2017-04-19 16:35:29 UTC) #6
Charlie Reis
RS LGTM. Is this something we could include a test for, to prevent regressions if ...
3 years, 8 months ago (2017-04-19 17:15:56 UTC) #7
zoeclifford
On 2017/04/19 17:15:56, Charlie Reis wrote: > RS LGTM. > > Is this something we ...
3 years, 8 months ago (2017-04-19 18:31:33 UTC) #8
Charlie Reis
Yep-- if that crashes without your fix, then that's perfect. Thanks! LGTM.
3 years, 8 months ago (2017-04-19 19:18:46 UTC) #9
zoeclifford
On 2017/04/19 19:18:46, Charlie Reis wrote: > Yep-- if that crashes without your fix, then ...
3 years, 8 months ago (2017-04-19 23:57:06 UTC) #14
Sami
On 2017/04/19 23:57:06, zoeclifford wrote: > Would it be OK to mark this test as ...
3 years, 8 months ago (2017-04-20 10:15:28 UTC) #15
Charlie Reis
On 2017/04/20 10:15:28, Sami wrote: > On 2017/04/19 23:57:06, zoeclifford wrote: > > Would it ...
3 years, 8 months ago (2017-04-20 16:56:22 UTC) #16
zoeclifford
On 2017/04/20 16:56:22, Charlie Reis wrote: > On 2017/04/20 10:15:28, Sami wrote: > > On ...
3 years, 8 months ago (2017-04-20 21:16:20 UTC) #17
Charlie Reis
On 2017/04/20 21:16:20, zoeclifford wrote: > On 2017/04/20 16:56:22, Charlie Reis wrote: > > On ...
3 years, 8 months ago (2017-04-20 21:38:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2827783003/40001
3 years, 8 months ago (2017-04-20 22:31:25 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 22:36:45 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9dc1413a9f8a803109530c02aeb4...

Powered by Google App Engine
This is Rietveld 408576698