New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 726372 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocked on:
issue 731780



Sign in to add a comment

debugd: fix ping

Project Member Reported by semenzato@chromium.org, May 25 2017

Issue description

The crosh ping command has two problems:

1. (Brian reported, I confirmed) at least on R59 in verified mode, "ping -c # <foo>" hangs after # pings.  (Control-c unhangs it.)

2. Typing control-C in the shell stops the pings but also prints summary statistics.  In crosh, it does not.  Brian writes:

SandboxedProcess::KillProcessGroup sends SIGKILL, while ping only provides summary output if it completes (e.g., with --count) or gets SIGINT.

This may be a good onboarding bug?

 
Cc: sjg@chromium.org
Did somebody say onboarding?

Comment 2 by sjg@chromium.org, May 25 2017

Labels: Hotlist-GoodFirstBug
Owner: sjg@chromium.org

Comment 3 by vapier@chromium.org, May 25 2017

Cc: vapier@chromium.org
Summary: debugd: fix ping (was: fix ping)
we probably could make the killing more graceful ... have it send SIGINT first, then wait for it to die, and if it's still around, SIGKILL it.

Comment 4 by sjg@chromium.org, Jun 1 2017

Owner: la...@chromium.org

Comment 5 by la...@chromium.org, Jun 1 2017

Cannot repro problem 1 on M60. Working on problem 2.
Yeah, I'm not sure Luigi translated all our data on problem 1 completely: he noted that it was working on ToT (at time of filing), but I noted the following tests on devices I had sitting around:

Kevin, R59 beta channel, normal mode: hang
Kevin, R60, 9515.0.0 builder test image, dev mode: hang
Gru, R60, 9472.0.0 builder test image, dev mode: hang

So presumably it got fixed in R60, since 9515.0.0. And still buggy on R59.

Could be nice to figure out what fixed it, but it's probably not a priority at all.
FYI, I recently updated net-misc/iputils (https://chromium-review.googlesource.com/c/516063/), which landed in 9604.0.0, which may have changed the behavior of #1.
Eric also landed some fd related changes in debugd in R60

Comment 9 by la...@chromium.org, Jun 7 2017

Blockedon: 730682
Minijail recently gained the power to forward signals to its child. Waiting on a fix to that feature in 730682 which should make problem 2 easy to fix.
Blockedon: -730682 731780

Comment 11 by la...@chromium.org, Jun 15 2017

Status: Started (was: Untriaged)

Comment 13 by la...@chromium.org, Jun 20 2017

Status: Fixed (was: Started)

Comment 14 by sjg@google.com, Jul 5 2017

Labels: Team-BLD

Comment 15 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment