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

Issue 30133002: Fix posix IPC channel hanging problem. (Closed)

Created:
7 years, 2 months ago by hubbe
Modified:
6 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Fredrik Öhrn
Visibility:
Public.

Description

Fix posix IPC channel hanging problem. If a channel closes right before a send call, listeners might not be notified of the problem, which can cause hangs. This CL fixes that and adds a test that makes sure that this does not happen in the future. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248060

Patch Set 1 #

Patch Set 2 : actual fix #

Total comments: 2

Patch Set 3 : added another test #

Patch Set 4 : make new test pass #

Total comments: 4

Patch Set 5 : git cl try #

Patch Set 6 : try calling OnChannelError only once #

Patch Set 7 : early-fail send after close #

Patch Set 8 : LOG(INFO) -> LOG(WARNING) to make presubmit happy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -6 lines) Patch
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -3 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 1 2 3 4 5 6 7 4 chunks +50 lines, -3 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
hubbe
Not sure if this ever happens, except when the mac kernel goes berserk. But it ...
7 years, 2 months ago (2013-10-18 22:49:31 UTC) #1
cpu_(ooo_6.6-7.5)
plus scott
7 years, 2 months ago (2013-10-18 23:23:25 UTC) #2
hubbe
On 2013/10/18 23:23:25, cpu wrote: > plus scott Ping?
7 years, 2 months ago (2013-10-21 23:41:53 UTC) #3
Scott Hess - ex-Googler
LGTM, I think. I'm a little out of my depth, though. https://codereview.chromium.org/30133002/diff/40001/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): ...
7 years, 2 months ago (2013-10-22 23:52:45 UTC) #4
hubbe
https://codereview.chromium.org/30133002/diff/40001/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): https://codereview.chromium.org/30133002/diff/40001/ipc/ipc_channel_posix.cc#newcode713 ipc/ipc_channel_posix.cc:713: return ProcessOutgoingMessages(); On 2013/10/22 23:52:46, shess wrote: > Could ...
7 years, 2 months ago (2013-10-23 00:29:27 UTC) #5
cpu_(ooo_6.6-7.5)
lgtm
7 years, 2 months ago (2013-10-23 20:18:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/40001
7 years, 2 months ago (2013-10-23 20:19:29 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=212747
7 years, 2 months ago (2013-10-23 21:58:58 UTC) #8
cpu_(ooo_6.6-7.5)
is this CL abandoned?
7 years, 1 month ago (2013-11-11 23:15:57 UTC) #9
hubbe
On 2013/11/11 23:15:57, cpu wrote: > is this CL abandoned? No, but it's been on ...
7 years, 1 month ago (2013-11-11 23:41:58 UTC) #10
hubbe
On 2013/11/11 23:41:58, hubbe wrote: > On 2013/11/11 23:15:57, cpu wrote: > > is this ...
7 years, 1 month ago (2013-11-12 01:10:28 UTC) #11
cpu_(ooo_6.6-7.5)
lgtm
7 years, 1 month ago (2013-11-13 21:18:26 UTC) #12
Scott Hess - ex-Googler
lgtm. https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc File ipc/ipc_channel_posix_unittest.cc (right): https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc#newcode252 ipc/ipc_channel_posix_unittest.cc:252: in_chan.Close(); // simulate remote process dying at an ...
7 years, 1 month ago (2013-11-13 21:33:22 UTC) #13
hubbe
https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc File ipc/ipc_channel_posix_unittest.cc (right): https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc#newcode252 ipc/ipc_channel_posix_unittest.cc:252: in_chan.Close(); // simulate remote process dying at an unforunate ...
7 years, 1 month ago (2013-11-20 20:21:21 UTC) #14
hubbe
On 2013/11/20 20:21:21, hubbe wrote: > https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc > File ipc/ipc_channel_posix_unittest.cc (right): > > https://codereview.chromium.org/30133002/diff/440001/ipc/ipc_channel_posix_unittest.cc#newcode252 > ...
7 years ago (2013-11-26 18:12:27 UTC) #15
Scott Hess - ex-Googler
lgtm
7 years ago (2013-11-26 18:21:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-27 20:02:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 01:14:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 01:57:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 02:16:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 02:24:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 02:56:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
7 years ago (2013-11-28 03:25:57 UTC) #23
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38508
7 years ago (2013-11-28 03:57:20 UTC) #24
Scott Hess - ex-Googler
Any news on this? https://codereview.chromium.org/131513018/ wants to fix the same thing (I think).
6 years, 10 months ago (2014-01-29 19:13:51 UTC) #25
hubbe1
I haven't given up, but fixing things is harder than I thought, because it is ...
6 years, 10 months ago (2014-01-29 19:47:37 UTC) #26
Fredrik Öhrn
6 years, 10 months ago (2014-01-30 09:41:48 UTC) #27
Fredrik Öhrn
On 2014/01/29 19:13:51, shess wrote: > Any news on this? > > https://codereview.chromium.org/131513018/ wants to ...
6 years, 10 months ago (2014-01-30 09:45:25 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/730001
6 years, 10 months ago (2014-01-30 19:57:12 UTC) #29
hubbe
On 2014/01/30 09:45:25, Fredrik Öhrn wrote: > On 2014/01/29 19:13:51, shess wrote: > > Any ...
6 years, 10 months ago (2014-01-30 19:57:25 UTC) #30
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=47308
6 years, 10 months ago (2014-01-30 20:20:49 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 20:20:59 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/30133002/750001
6 years, 10 months ago (2014-01-30 20:59:24 UTC) #33
commit-bot: I haz the power
Change committed as 248060
6 years, 10 months ago (2014-01-30 22:31:16 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 22:31:20 UTC) #35
hubbe
6 years, 10 months ago (2014-01-30 22:59:43 UTC) #36
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/150883002/ by hubbe@chromium.org.

The reason for reverting is: Seems to cause some leaks.
Reverting while I investigate.
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASAN%20Tests%20%...
.

Powered by Google App Engine
This is Rietveld 408576698