From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cOC2JSTInmXkAwAAkFu2QA (envelope-from ) for ; Wed, 10 Jan 2024 17:39:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uHICIyTInmWChAEA62LTzQ (envelope-from ) for ; Wed, 10 Jan 2024 17:39:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="UABsd8/q"; dkim=pass header.d=wolfsden.cz header.s=mail header.b="UABsd8/q"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704904740; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bbwnam1TSFWktZU+4JOafwtU2vxJmn/zsMoQdzL83Cw=; b=RPr1H43iwEhEwu9ySzb4GajgLDSoOJu9iMxjbYczc8d5fzxJU9ve8E8yWMEpVjN3VE7+Mr 19OXkWDtfCduVypTLBvGTQz6u5FB/HC/YN+GxdpBilEtEYwX0KiTCHrf3S/aixe44uSo65 zP+ocEUmIYskREry8EsoxOJQEjwjaIgxZB+2cDrW/Cq3bHZCLeb+y3WM/ekHs/p7GMr9Jv m8ZXC6B+IVXXWDbNH5SOHKggf5hPKwcGdWh4RfZup412NVyx4ARVIu6mpcYxpUjCo+fUIc xdnagLSnI1NM9NFDbT1o1DiwtA4Z665nRprTLWRXLFESfe5RnNuSjV7PQdZR+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704904740; a=rsa-sha256; cv=none; b=ifR2VyOaPtRh0P5+XwP4fP94T4QmIoEuWFS0jWLzoCo8+aotJpKZbC4fFQ8/L4xApG/NWv eLwg7jrH5FcU/UxhJXZ/Y1ZWCn/Fcct7pOBLt11kYlmnp0aXdaDgcW2vinoyV6QsANo/ZB CYlniC81ksMNXm2CqEL2n4lGI2HWlhsLYaaH0bdcKrtJUthD8MHvtwKuaZOAjPVzcum/AV pLlkaPZ1z4k2gB6B0DMUBt/jOXheFoS/+srnqTzUZcdJKShlroJ8jS3qhKdLai7mVklKeU KE7tvXhNWPuiAc9Q4OTJbCx7+mEdgv/dr2i+UOt2C1y144OG2SQemLAWYjrP9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="UABsd8/q"; dkim=pass header.d=wolfsden.cz header.s=mail header.b="UABsd8/q"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D3F31E79A for ; Wed, 10 Jan 2024 17:39:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNbb5-0000VE-0F; Wed, 10 Jan 2024 11:38:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rNbb0-0000Ux-Ah for guix-devel@gnu.org; Wed, 10 Jan 2024 11:38:26 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rNbax-0006Zs-S4; Wed, 10 Jan 2024 11:38:26 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id E50FF24DF6E; Wed, 10 Jan 2024 16:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1704904698; bh=SVZFaH9lsmc1SnrpRSpjkjcq7ma5wnr/WqhwObgTPtc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=UABsd8/qKkvgOFuqtYHznwX2yDnOvU2kLIzInj4QM9C1HqeVzT326Kltfmg1NZAmh c9+I3Z0IizCNDTlOLtMRo8/KGgUBYqXbg7QRbo72Oxg+NGbHX+dMxvPE3vW8oI8RKo BBVGdY63YZQp3Z3C5KimQGs3xILHLQDrPWSm5SXajAPJWkvGaEse4jc4OP1ZFsQ6H3 iWhr19Na/hSZOStD7ek6bHy6218h1z8h6AifpOMsPjV6QtYdn++oIpd33ifnsFs5fd qVCMsuPptw/v5rE7tH2I03IOO5Ofb7ocRrb6vdVQbB8lzVn9jkJCS6BpCTMiE3nRTV RVezaTwLFc9apYTH6dNvnizbFMYl8Kpss1VOriOY29732B9vOGlGMsrTZw51U17Ru8 YiZpqs2v0ljdLiIe7nyrprYD+q7tnL5JlqFWePGvd2Q8zOmIU1DafgeQ90DDmOheOF aq2qKY7lIj9f+TcDzKfdMftJMRckQtxVvqq4504esAAoOp4CCz8aOARF8sei7mKfPF xwhu4gw6U+cdoH7S7MZ5pjVMBxmYTZmHsi2z2jFR0ZDWvuztemUrpeXSAi3QfDCo/U sgY+LuNU9EMu28WyBZnx9b2RtVoSIvpNm5x7bRs/Kq5FVAhFXchyJ3i8H+5hDVOaEX b1n66GDEd1Vv7Ifm6ZpDt328= Received: from localhost (unknown [193.32.127.158]) by wolfsden.cz (Postfix) with ESMTPSA id 25DD024F29A; Wed, 10 Jan 2024 16:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1704904698; bh=SVZFaH9lsmc1SnrpRSpjkjcq7ma5wnr/WqhwObgTPtc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=UABsd8/qKkvgOFuqtYHznwX2yDnOvU2kLIzInj4QM9C1HqeVzT326Kltfmg1NZAmh c9+I3Z0IizCNDTlOLtMRo8/KGgUBYqXbg7QRbo72Oxg+NGbHX+dMxvPE3vW8oI8RKo BBVGdY63YZQp3Z3C5KimQGs3xILHLQDrPWSm5SXajAPJWkvGaEse4jc4OP1ZFsQ6H3 iWhr19Na/hSZOStD7ek6bHy6218h1z8h6AifpOMsPjV6QtYdn++oIpd33ifnsFs5fd qVCMsuPptw/v5rE7tH2I03IOO5Ofb7ocRrb6vdVQbB8lzVn9jkJCS6BpCTMiE3nRTV RVezaTwLFc9apYTH6dNvnizbFMYl8Kpss1VOriOY29732B9vOGlGMsrTZw51U17Ru8 YiZpqs2v0ljdLiIe7nyrprYD+q7tnL5JlqFWePGvd2Q8zOmIU1DafgeQ90DDmOheOF aq2qKY7lIj9f+TcDzKfdMftJMRckQtxVvqq4504esAAoOp4CCz8aOARF8sei7mKfPF xwhu4gw6U+cdoH7S7MZ5pjVMBxmYTZmHsi2z2jFR0ZDWvuztemUrpeXSAi3QfDCo/U sgY+LuNU9EMu28WyBZnx9b2RtVoSIvpNm5x7bRs/Kq5FVAhFXchyJ3i8H+5hDVOaEX b1n66GDEd1Vv7Ifm6ZpDt328= Date: Wed, 10 Jan 2024 17:38:17 +0100 From: Tomas Volf <~@wolfsden.cz> To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org Subject: Re: GNU Shepherd 0.10.3 released Message-ID: Mail-Followup-To: Ludovic =?iso-8859-1?Q?Court=E8s?= , guix-devel@gnu.org References: <87sf39ck1w.fsf@gnu.org> <878r4yw06f.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FrWCaetHdLso0PqY" Content-Disposition: inline In-Reply-To: <878r4yw06f.fsf@gnu.org> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.49 X-Spam-Score: -11.49 X-Migadu-Queue-Id: 5D3F31E79A X-Migadu-Scanner: mx12.migadu.com X-TUID: kQ2K/RxN9u3B --FrWCaetHdLso0PqY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2024-01-10 00:34:48 +0100, Ludovic Court=C3=A8s wrote: > Tomas Volf <~@wolfsden.cz> skribis: >=20 > > On 2024-01-07 15:08:59 +0100, Ludovic Court=C3=A8s wrote: >=20 > [...] >=20 > >> ** Do not accidentally wait for Linux kernel thread completion > >> () > >> > >> In cases a PID file contained a bogus PID or one that=E2=80=99s only= valid in a > >> separate PID namespace, shepherd could end up waiting for the termin= ation of > >> what=E2=80=99s actually a Linux kernel thread, such as PID 2 (=E2=80= =9Ckthreadd=E2=80=9D). This > >> situation is now recognized and avoided. > > > > This is great, I will not have to remember to run `modprobe -r mt7921e'= before > > each shutdown anymore. I hope. Looking forward to getting it in the G= uix :) >=20 > D=E2=80=99oh, why did you have to do that? Otherwise the shepherd would be stuck on shutdown waiting for process named [mt76-tx phy0] to terminate with messages along the lines of: shepherd[1]: waiting for process termination (processes left: (1 678)) It is a kernel thread as far as I can tell (based on https://stackoverflow.com/a/12231039): $ cd /proc/678 $ cat cmdline $ readlink exe; echo $? 1 Removing the module mt7921e stops the thread, so shepherd does not wait for= it. > How did Shepherd end up with =E2=80=9Cwrong=E2=80=9D PID? That I do not know. It is visible in `ps' output, so I assume shepherd pic= ked it up on its own somehow. >=20 > I hope this release fixes it! As far as I can tell, the 0.10.3 was already added into guix: $ ps 1 | cat PID TTY STAT TIME COMMAND 1 ? Sl 0:01 /gnu/store/bhynhk0c6ssq3fqqc59fvhxjzwywsjbb-= guile-3.0.9/bin/guile --no-auto-compile /gnu/store/06mz0yjkghi7r6d7lmhvv7gr= yipljhdd-shepherd-0.10.3/bin/shepherd --config /gnu/store/klkqq2y65k141rlip= q4ls0w2rlhds12h-shepherd.conf So I have to say it sadly did not resolve this issue. I am unsure why thou= gh. I am not familiar with Shepherd's code base, but quick look at the git log suggested that procedure (@@ (shepherd service) pseudo-process?) is the rel= evant one. When I try it from a REPL, it returns #t. $ guix shell guile shepherd guile-fibers -- guile GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. =20 Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. =20 Enter `,help' for help. scheme@(guile-user)> ,use (shepherd service) scheme@(guile-user)> ((@@ (shepherd service) pseudo-process?) 688) $1 =3D #t So it *should* work? However the issue is caused by non-free WiFi driver o= n a corrupted kernel, so I am not sure if it is even problem that needs to be solved... I would (obviously) like to see it resolved, but I probably cann= ot even bug report it, since it requires non-free hardware and software to reproduce. Tomas PS: It is interesting that `guix shell guile shepherd' is not enough, the guile-fibers have to be explicitly specified as well. Is that expected? --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --FrWCaetHdLso0PqY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmWex/kACgkQL7/ufbZ/ wan+jhAAsP7egabHz+E/Kf7Jdb4C0wrT6LsMzHTfRciJSGSFVCxjTAoWVLzmsPaE lRIY8idClxhhMSms7fXtt6iy1yY86lZdWocO3xgchih9xbw003UVX7Rp+3uPmoNW QOZsaPJdjLGA1FcZqNWVovVIRax/TNAZbHp7PxeGS1kwfgouSnav+aDGUTKn4N2h 4SMnPn/zDYhMglC55T7hBtru37pr5iTj0yY6duE5w8BrgMbUTjxjXZXJf3Kam1Np TRSWCzW1tKNlnmAZQKhAbEYSzdYZJcGlYLUr80SdGcw42rh2dKAgzv/rq0dmRlL/ g1v2tYWGOkHaeR689l323lzYUpdee8dcWWJkDoFiXquMoJZ6sqEzajscf1YkqkCm dtJaSKQyYRWrWWH2C9Fm0LM/zbS0uVG8KU/IRnBlFTK5Jv2E5UqxzzwGegJ3Dqax TdlRBdYnHXLdIqAagWsMCkwfZDhUnLNurx6PpkL3ZVj6TVJeHkhznLr2K3b43TxC /PzzzVLDoa/h7uykjPtYUYC9bu4Dunx4yBFQyMn8oqBm2/3cEvb43lI+MP0NUB7z dxyl1T5Xup0JFRZnnnx9IEALo2FrO8n6C4ykXANx55ZyTcY8rYPD1y/UNTAYAEL0 Tf7ejvv8dazP4QeuvVDdZDerCInCb2HAl1Nsin2yyfjaheHBXGM= =6wE8 -----END PGP SIGNATURE----- --FrWCaetHdLso0PqY--