From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#26931: GuixSD rebooting fails when tmux is running Date: Mon, 28 Aug 2017 08:50:39 +0000 Message-ID: <20170828085039.4utt734rknxpchbx@abyayala> References: <20170514193043.GA5396@jasmine> <87lgpzqfxq.fsf@gnu.org> <20170516231839.GA22678@jasmine> <87mv6kgkyr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tdgqwxstntjucgsl" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmFm9-0005tT-RA for bug-guix@gnu.org; Mon, 28 Aug 2017 04:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmFm5-0002oE-Uv for bug-guix@gnu.org; Mon, 28 Aug 2017 04:52:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmFm5-0002o9-Re for bug-guix@gnu.org; Mon, 28 Aug 2017 04:52:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmFm5-0002mE-L3 for bug-guix@gnu.org; Mon, 28 Aug 2017 04:52:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87mv6kgkyr.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 26931@debbugs.gnu.org, ludo@gnu.org, leo@famulari.name --tdgqwxstntjucgsl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 1.7K bytes: > Hi, >=20 > Leo Famulari skribis: >=20 > > On Sun, May 14, 2017 at 11:36:17PM +0200, Ludovic Court=C3=A8s wrote: > >> What does /var/log/shepherd.log show around the time where you hit > >> =E2=80=9Chalt=E2=80=9D? > >>=20 > >> I get something like this: > >>=20 > >> --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))=20 > > 2017-05-16 19:13:00 waiting for process termination (processes left: (1= 494))=20 > > 2017-05-16 19:13:02 waiting for process termination (processes left: (1= 494))=20 > > ------ > > > > 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 >=20 > The bug was 100% reproducible in a VM, and AFAICS it is fixed by > 7f090203d5fb033eb1b64778b03afad5bb35f5f2. >=20 > 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=C2=A01 and for some reason the PID=C2=A01 eith= er didn=E2=80=99t > get SIGCHLD or the handler didn=E2=80=99t run. >=20 > The test that this commit adds does exactly the same thing: launch tmux > and then invoke =E2=80=9Chalt=E2=80=9D. I tried to create a synthetic te= st not > involving tmux, simply creating a process that gets PID=C2=A01 as its par= ent, > but it wouldn=E2=80=99t trigger the bug. I=E2=80=99m unclear as to why t= mux triggers it > and no that other simple test. >=20 > Thanks, > Ludo=E2=80=99. >=20 >=20 >=20 >=20 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 upstre= am, even if it's just to get more insight if it is a tmux bug. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --tdgqwxstntjucgsl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlmj2V4ACgkQ4i+bv+40 hYhxhA/+J3X6px3/NkcKX4iI8zR7P93mjl+0TrYrCQg875nJhLoPpYvf7Nq3JqJm B5HiqFr/UAqlN0Mv/eUj4xUxsdlQk8VXiBQ4m1vL3hlvbgv6TJF43tVX4jIE0z2M UbtzgUkKGAPzSmS1QWBa/LgwZ7bFofG1zCsh90arr7hG8yGuD0t4Y8VQy2gYpWPJ wi65bO+POQQKO/pnxBqKdLMTqGAUFAjauD6AO6kpz4wcuAnVtjZ8GpfyatZ0Ni7T 6Pbr9+806cygaJjfvHUJxuhTCeKKoE+GcohbFQeFk6VLBZG0Tdci8CSOGCIOF0ln DzNcPSltic3kMTWt9GwRXnAt6vcElEktIHIRBmp/F+Sd7KsFE0GKW1wk2IwOuQcU 3F9FCZbBMMSqW+PVZpuqaLZIV/yt3N6+CUMvw1u6M3GSQWcx4tFTKalgj+dpfD8o JxXVebroZSnuPjce/Nh01X50LSPtd1l0Y6wx7t9rhRSgldkbRwW4NW6chU/mXBVk wwq6VtXHpwhIBykSzZDTFvrOEOdHP/oGq1jR3PVb9u52NzLZfVG4vWkrAYZbWrEi CTi/bfiuSgTVjFaWT5NJYIedm4fXtytgdqTXcxE1R3El/HdUdzBZldXDCzfvI4nh E/5Wk0XC4hdUbVe/QjlNIVo5wcI1r0RXNR1jYzeHLUFnuXEdfsw= =nBoU -----END PGP SIGNATURE----- --tdgqwxstntjucgsl--