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

Issue 1921183003: Fixes race in Shell (Closed)

Created:
4 years, 8 months ago by sky
Modified:
4 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes race in Shell Generally when a shell test runs something like the following happens: 1. ShellTest (actually BackgroundShell) connects to the test. This connection supplies a bound ShellClientRequest. 2. Test code continues on and may attempt to connect to the test as well. Both of these requests may end up going to the ShellResolver. If that happens, there is no guarantee the ShellResolver will resolve them in order. If 2 happens first, then we attempt to launch the whole unit test again, which is completely wrong, and ends up wedging the test. The fix is twofold: . Cache ShellResolver in shell. This is necessary as if we use separate pipes there is no guaranteed ordering. . Make Reader use have everything execute in sequence. BUG=none TEST=none R=ben@chromium.org Committed: https://crrev.com/ba39333a41b90207da717dde0e5178541d10fe33 Cr-Commit-Position: refs/heads/master@{#390136}

Patch Set 1 #

Patch Set 2 : content uses different type #

Patch Set 3 : block shutdown #

Patch Set 4 : shutdown catalog #

Patch Set 5 : fg #

Patch Set 6 : destroy instances and dont block #

Patch Set 7 : merge 2 trunk #

Patch Set 8 : merge 2 trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -39 lines) Patch
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M services/catalog/catalog.h View 1 4 chunks +11 lines, -3 lines 0 comments Download
M services/catalog/catalog.cc View 1 1 chunk +24 lines, -11 lines 0 comments Download
M services/catalog/reader.h View 1 3 chunks +8 lines, -3 lines 0 comments Download
M services/catalog/reader.cc View 1 2 3 4 5 6 7 2 chunks +26 lines, -11 lines 0 comments Download
M services/shell/shell.h View 3 chunks +9 lines, -2 lines 0 comments Download
M services/shell/shell.cc View 1 2 3 4 5 6 4 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
sky
4 years, 8 months ago (2016-04-26 21:39:22 UTC) #1
Ben Goodger (Google)
lgtm yowza
4 years, 8 months ago (2016-04-26 21:46:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921183003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921183003/1
4 years, 8 months ago (2016-04-26 21:50:13 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/56798)
4 years, 8 months ago (2016-04-26 22:00:31 UTC) #6
sky
Turns out content passes in a different type. I changed the code to take the ...
4 years, 8 months ago (2016-04-26 22:59:18 UTC) #7
sky
Take another look?
4 years, 8 months ago (2016-04-26 22:59:26 UTC) #8
Ben Goodger (Google)
ok, lgtm
4 years, 8 months ago (2016-04-27 00:15:38 UTC) #9
sky
Ok, looks like this passes now. We were leaking Shell::Instances that was DCHECKing. Take another ...
4 years, 7 months ago (2016-04-27 16:37:12 UTC) #10
Ben Goodger (Google)
lgtm
4 years, 7 months ago (2016-04-27 17:17:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921183003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921183003/100001
4 years, 7 months ago (2016-04-27 17:19:50 UTC) #13
commit-bot: I haz the power
Failed to apply patch for services/catalog/reader.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-04-27 17:25:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921183003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921183003/120001
4 years, 7 months ago (2016-04-27 17:32:22 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/26035) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-04-27 17:35:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921183003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921183003/140001
4 years, 7 months ago (2016-04-27 17:40:39 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-04-27 18:44:26 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:11:32 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ba39333a41b90207da717dde0e5178541d10fe33
Cr-Commit-Position: refs/heads/master@{#390136}

Powered by Google App Engine
This is Rietveld 408576698