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

Issue 1526563004: Fix shutdown assert with the new Mojo EDK. (Closed)

Created:
5 years ago by jam
Modified:
5 years ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix shutdown assert with the new Mojo EDK. This was seen on Windows tryjobs enabling the new EDK. The problem was that RoutedRawChannel was destroying the channel on write errors, while normally (without multiplexing) this is only done on read errors. So MessagePipeDispatcher thought it had a channel_ (which it didn't use because it knew it had seen a write error) and it was asserting at shutdown. The fix is to make RoutedRawChannel match non-multiplexed MessagePipeDispatcher's destruction of the channel only when read errors occur. BUG=561803 Committed: https://crrev.com/a0c8ebc44e574bf12e7ffca0d492b9859f914a4d Cr-Commit-Position: refs/heads/master@{#365175}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : real fix #

Total comments: 2

Patch Set 4 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M mojo/edk/system/message_pipe_dispatcher.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/edk/system/routed_raw_channel.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
jam
5 years ago (2015-12-14 23:05:49 UTC) #2
yzshen1
lgtm
5 years ago (2015-12-14 23:43:34 UTC) #3
jam
ptal, here's the real fix as discussed. Thanks for asking more questions :)
5 years ago (2015-12-15 00:52:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526563004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526563004/40001
5 years ago (2015-12-15 00:56:14 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
5 years ago (2015-12-15 02:51:21 UTC) #10
yzshen1
LGTM ++ Thanks! https://codereview.chromium.org/1526563004/diff/40001/mojo/edk/system/routed_raw_channel.cc File mojo/edk/system/routed_raw_channel.cc (right): https://codereview.chromium.org/1526563004/diff/40001/mojo/edk/system/routed_raw_channel.cc#newcode135 mojo/edk/system/routed_raw_channel.cc:135: if (error != ERROR_WRITE) { It ...
5 years ago (2015-12-15 03:06:01 UTC) #11
jam
https://codereview.chromium.org/1526563004/diff/40001/mojo/edk/system/routed_raw_channel.cc File mojo/edk/system/routed_raw_channel.cc (right): https://codereview.chromium.org/1526563004/diff/40001/mojo/edk/system/routed_raw_channel.cc#newcode135 mojo/edk/system/routed_raw_channel.cc:135: if (error != ERROR_WRITE) { On 2015/12/15 03:06:01, yzshen1 ...
5 years ago (2015-12-15 04:22:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526563004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526563004/60001
5 years ago (2015-12-15 04:28:50 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-15 06:18:22 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-15 06:19:00 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a0c8ebc44e574bf12e7ffca0d492b9859f914a4d
Cr-Commit-Position: refs/heads/master@{#365175}

Powered by Google App Engine
This is Rietveld 408576698