|
|
Created:
6 years, 10 months ago by hubbe Modified:
6 years, 10 months ago CC:
chromium-reviews, darin-cc_chromium.org, jam, Fredrik Öhrn Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionFix 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.
This is cl/30133002 + a memory leak fix.
BUG=338709
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250964
Patch Set 1 #
Total comments: 2
Patch Set 2 : reordered early exit, as requested #
Messages
Total messages: 21 (0 generated)
I'll rubberstamp whatever shess is happy with.
On 2014/01/31 21:41:12, cpu wrote: > I'll rubberstamp whatever shess is happy with. looking...
LGTM. I do not share cpu's confidence in my review fu, though :-). https://codereview.chromium.org/150893002/diff/1/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): https://codereview.chromium.org/150893002/diff/1/ipc/ipc_channel_posix.cc#new... ipc/ipc_channel_posix.cc:526: #endif // IPC_MESSAGE_LOG_ENABLED Is there any problem having this above the above check? On the one hand, the message isn't being sent, so logging that the message was sent seems wrong. On the other hand, the code below also allows for cases where the message isn't actually being sent, so maybe it's logging that the message was passed to Send().
PTAL https://codereview.chromium.org/150893002/diff/1/ipc/ipc_channel_posix.cc File ipc/ipc_channel_posix.cc (right): https://codereview.chromium.org/150893002/diff/1/ipc/ipc_channel_posix.cc#new... ipc/ipc_channel_posix.cc:526: #endif // IPC_MESSAGE_LOG_ENABLED No problem - done. On 2014/02/03 22:00:26, shess wrote: > Is there any problem having this above the above check? > > On the one hand, the message isn't being sent, so logging that the message was > sent seems wrong. On the other hand, the code below also allows for cases where > the message isn't actually being sent, so maybe it's logging that the message > was passed to Send().
Still LGTM. Thanks for paying attention to this kind of terrifying stuff.
The CQ bit was checked by hubbe@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/150893002/80001
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/150893002/80001
cpu? On Tue, Feb 4, 2014 at 12:01 PM, <commit-bot@chromium.org> wrote: > CQ is trying da patch. Follow status at > https://chromium-status.appspot.com/cq/hubbe@chromium.org/150893002/80001 > > > https://codereview.chromium.org/150893002/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/150893002/80001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p...
On 2014/02/04 22:52:39, I haz the power (commit-bot) wrote: > Retried try job too often on chromium_presubmit for step(s) presubmit > http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_p... Ping, cpu, I still need your approval to check this in.
lgtm
The CQ bit was checked by cpu@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/150893002/80001
Message was sent while issue was closed.
Change committed as 250964
Message was sent while issue was closed.
A revert of this CL has been created in https://codereview.chromium.org/170863002/ by hubbe@chromium.org. The reason for reverting is: https://crash.corp.google.com/samples?q=reportid=%2702eaaf63ed6fdda9%27 https://crash.corp.google.com/samples?q=reportid=%272ac5bc4dd7c49ced%27. |