unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@infotropique.org>
To: 26931@debbugs.gnu.org, ludo@gnu.org, leo@famulari.name
Subject: bug#26931: GuixSD rebooting fails when tmux is running
Date: Mon, 28 Aug 2017 08:50:39 +0000	[thread overview]
Message-ID: <20170828085039.4utt734rknxpchbx@abyayala> (raw)
In-Reply-To: <87mv6kgkyr.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]

Ludovic Courtès transcribed 1.7K bytes:
> Hi,
> 
> Leo Famulari <leo@famulari.name> skribis:
> 
> > On Sun, May 14, 2017 at 11:36:17PM +0200, Ludovic Courtès wrote:
> >> What does /var/log/shepherd.log show around the time where you hit
> >> “halt”?
> >> 
> >> I get something like this:
> >> 
> >> --8<---------------cut here---------------start------------->8---
> >> 18:06:26 Service mcron has been stopped.
> >> 18:06:26 sending all processes the TERM signal
> >
> > For me, this is where it gets stuck:
> >
> > ------
> > 2017-05-16 19:12:53 sending all processes the TERM signal
> > 2017-05-16 19:12:58 waiting for process termination (processes left: (1 494)) 
> > 2017-05-16 19:13:00 waiting for process termination (processes left: (1 494)) 
> > 2017-05-16 19:13:02 waiting for process termination (processes left: (1 494)) 
> > ------
> >
> > In my experience, it will wait here forever.
> >
> > And from `ps aux`:
> >
> > leo        494  0.0  0.1  27232  3676 ?        Ss   19:12   0:00 tmux
> 
> The bug was 100% reproducible in a VM, and AFAICS it is fixed by
> 7f090203d5fb033eb1b64778b03afad5bb35f5f2.
> 
> The problem was that the tmux server process would be left as a zombie,
> and then the loop would always see it because the parent process of the
> tmux server process is PID 1 and for some reason the PID 1 either didn’t
> get SIGCHLD or the handler didn’t run.
> 
> The test that this commit adds does exactly the same thing: launch tmux
> and then invoke “halt”.  I tried to create a synthetic test not
> involving tmux, simply creating a process that gets PID 1 as its parent,
> but it wouldn’t trigger the bug.  I’m unclear as to why tmux triggers it
> and no that other simple test.
> 
> Thanks,
> Ludo’.
> 
> 
> 
> 
I just found this upstream issue: https://github.com/tmux/tmux/issues/311
which has been fixed in tmux 2.5. I think we should take this bug to upstream,
even if it's just to get more insight if it is a tmux bug.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-08-28  8:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-14 19:30 bug#26931: GuixSD rebooting fails when tmux is running Leo Famulari
2017-05-14 21:36 ` Ludovic Courtès
2017-05-16 23:18   ` Leo Famulari
2017-05-17  7:39     ` Ludovic Courtès
2017-05-18  1:13       ` Leo Famulari
2017-05-18  9:06         ` Ludovic Courtès
2017-05-18 12:22           ` ng0
2017-08-28  8:22     ` Ludovic Courtès
2017-08-28  8:30       ` Clément Lassieur
2017-08-28 10:16         ` Ludovic Courtès
2017-08-30  7:35           ` Clément Lassieur
2017-08-30  8:39             ` Ludovic Courtès
2017-08-28  8:50       ` ng0 [this message]
2017-08-28 10:18         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170828085039.4utt734rknxpchbx@abyayala \
    --to=ng0@infotropique.org \
    --cc=26931@debbugs.gnu.org \
    --cc=leo@famulari.name \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).