From unknown Thu Jun 19 14:20:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58926 <58926@debbugs.gnu.org> To: bug#58926 <58926@debbugs.gnu.org> Subject: Status: Shepherd becomes unresponsive after an interrupt Reply-To: bug#58926 <58926@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:20:42 +0000 retitle 58926 Shepherd becomes unresponsive after an interrupt reassign 58926 guix submitter 58926 Mathieu Othacehe severity 58926 important thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 08:44:52 2022 Received: (at submit) by debbugs.gnu.org; 31 Oct 2022 12:44:52 +0000 Received: from localhost ([127.0.0.1]:39725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opU9s-0004pR-KS for submit@debbugs.gnu.org; Mon, 31 Oct 2022 08:44:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:40192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opU9q-0004pJ-Ia for submit@debbugs.gnu.org; Mon, 31 Oct 2022 08:44:50 -0400 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 ) id 1opU9q-0004Ka-94 for bug-guix@gnu.org; Mon, 31 Oct 2022 08:44:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opU9q-0008Ie-0Z for bug-guix@gnu.org; Mon, 31 Oct 2022 08:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=9/W/V1C5GPV6WG5EmhDXKqQnjmSM4FPbr7aIeTPlQFM=; b=sKHp3Cx61RCfbA whuWw596NY6FpFpuKT5rCvS0H4MO6THyl54xijRxk7+sDUZlBXKhbfqD+Hi1LzbjAY/p+xk4NJQ3+ W6CgIjz0CxvfD9peUfI/qZzUOKNOPZRDo5YUD7xklewHzEqYLzThGbUb1ArD7h4nHcIDTz9Ybn12c l1nKaesnqCVZkoAM7H3Em1ZlwmZZQ/eEkArK99ADXb8IhbJllYOGei4xXxoqe5jO7gQirE064OiMP xGFcZA9IDjuoVfjl8KvG2lE7GWRiI4a2Rgp+An9f0nF867CmJvb5xcWJXSDFwy4EOv8LeEWYedReZ 5byoinriMEOhpx5shGyg==; Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opU9p-0003Nt-K1 for bug-guix@gnu.org; Mon, 31 Oct 2022 08:44:49 -0400 From: Mathieu Othacehe To: bug-guix@gnu.org Subject: Shepherd becomes unresponsive after an interrupt Date: Mon, 31 Oct 2022 13:44:46 +0100 Message-ID: <87a65cgo1t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, When running the following command: --8<---------------cut here---------------start------------->8--- sudo herd restart service-that-hangs-upon-restart --8<---------------cut here---------------end--------------->8--- then hitting C-c, Shepherd becomes totally unresponsive: --8<---------------cut here---------------start------------->8--- sudo herd status --8<---------------cut here---------------end--------------->8--- and all further Shpeherd commands hang forever. I was able to reproduce it in two different configurations: 1. On my laptop with a Wireguard service trying to reach a non-existing DNS server. --8<---------------cut here---------------start------------->8--- (service wireguard-service-type (wireguard-configuration (addresses (list "10.0.0.2/24")) (dns '("10.0.0.50")) #does not exit --8<---------------cut here---------------end--------------->8--- 2. On Berlin, while trying to restart nginx. In both situations, the "reboot" command was also hanging. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 09:36:37 2022 Received: (at control) by debbugs.gnu.org; 31 Oct 2022 13:36:37 +0000 Received: from localhost ([127.0.0.1]:39812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opUxx-0008L5-Ia for submit@debbugs.gnu.org; Mon, 31 Oct 2022 09:36:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opUxv-0008Ke-IG for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:36:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUxq-0003DY-C6 for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:36:30 -0400 Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUxq-0006f6-0A for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:36:30 -0400 Date: Mon, 31 Oct 2022 14:36:28 +0100 Message-Id: <87tu3km7xf.fsf@meije.mail-host-address-is-not-set> To: control@debbugs.gnu.org From: Mathieu Othacehe Subject: control message for bug #53214 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) block 53214 by 58926 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 31 09:37:22 2022 Received: (at control) by debbugs.gnu.org; 31 Oct 2022 13:37:22 +0000 Received: from localhost ([127.0.0.1]:39821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opUyg-0008N4-3F for submit@debbugs.gnu.org; Mon, 31 Oct 2022 09:37:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opUyb-0008Md-CC for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:37:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUyW-0003IT-5S for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:37:12 -0400 Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2775.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2775] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opUyV-0006h0-Pd for control@debbugs.gnu.org; Mon, 31 Oct 2022 09:37:12 -0400 Date: Mon, 31 Oct 2022 14:37:10 +0100 Message-Id: <87r0yom7w9.fsf@meije.mail-host-address-is-not-set> To: control@debbugs.gnu.org From: Mathieu Othacehe Subject: control message for bug #58926 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) severity 58926 important quit From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 10 04:59:40 2022 Received: (at 58926) by debbugs.gnu.org; 10 Nov 2022 09:59:40 +0000 Received: from localhost ([127.0.0.1]:41947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4LU-0004uV-C4 for submit@debbugs.gnu.org; Thu, 10 Nov 2022 04:59:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ot4LR-0004uH-Tc for 58926@debbugs.gnu.org; Thu, 10 Nov 2022 04:59:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4LG-0000Fb-Dn for 58926@debbugs.gnu.org; Thu, 10 Nov 2022 04:59:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=vTT/XaNncd8whl7IFZUCii75DjLvMG8Q/r7m7y3p6k4=; b=ma/G9yBa/RGh5OeOVEEr hTbCWRVg21MuLj5qEAVyyng0sBBN0+dITIyEbdNgP2Xa5ZR5sJ1flrbr7Coufbks35DDmtsZKSg8w +BzXd6w1i0x0ZnSibgUv0wiwLQR79QzdTzFOrGdXCcxH/ootesC40zQoLQTTnnRkU7QTbJyTpS2VJ ESHIHdvGOcxnNRF48bOAMLzC5hWJordBlop16NWUwzRf4kJoTyByEZiuH7HaHHf1Z1Q4vrw+s7i7f irgcHZ7uJnf2sxtPEGWezpfm2U0QomAPIkQmDvbZQrpu4o3chCWXp4qKlwVkNELcwWh6CuSVCkcg8 pRvuRg+Wrlm7dQ==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot4LE-0003bX-UD; Thu, 10 Nov 2022 04:59:25 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#58926: Shepherd becomes unresponsive after an interrupt References: <87a65cgo1t.fsf@gnu.org> Date: Thu, 10 Nov 2022 10:59:23 +0100 In-Reply-To: <87a65cgo1t.fsf@gnu.org> (Mathieu Othacehe's message of "Mon, 31 Oct 2022 13:44:46 +0100") Message-ID: <87wn83jfk4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58926 Cc: 58926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Mathieu Othacehe skribis: > sudo herd restart service-that-hangs-upon-restart > > > then hitting C-c, Shepherd becomes totally unresponsive: > > sudo herd status > > > and all further Shpeherd commands hang forever. I was able to reproduce > it in two different configurations: > > 1. On my laptop with a Wireguard service trying to reach a non-existing > DNS server. > > (service wireguard-service-type > (wireguard-configuration > (addresses (list "10.0.0.2/24")) > (dns '("10.0.0.50")) #does not exit > > 2. On Berlin, while trying to restart nginx. I experienced case #2: in that case =E2=80=98strace -p1=E2=80=99 showed tha= t shepherd was stuck on waitpid of the nginx process, which was not terminating. Killing that process would unlock shepherd. This might be . Would be good to see what=E2=80=99s up with WireGuard. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 03:36:16 2022 Received: (at control) by debbugs.gnu.org; 12 Nov 2022 08:36:16 +0000 Received: from localhost ([127.0.0.1]:47269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otlzs-0008S8-2S for submit@debbugs.gnu.org; Sat, 12 Nov 2022 03:36:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otlzp-0008Rs-QQ for control@debbugs.gnu.org; Sat, 12 Nov 2022 03:36:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otlzk-0001Nr-Jp for control@debbugs.gnu.org; Sat, 12 Nov 2022 03:36:08 -0500 Received: from 2a02-8429-81d2-3d01-94c9-8097-ea5c-2774.rev.sfr.net ([2a02:8429:81d2:3d01:94c9:8097:ea5c:2774] helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otlzk-0002CK-2i for control@debbugs.gnu.org; Sat, 12 Nov 2022 03:36:08 -0500 Date: Sat, 12 Nov 2022 09:36:05 +0100 Message-Id: <87leog603u.fsf@meije.mail-host-address-is-not-set> To: control@debbugs.gnu.org From: Mathieu Othacehe Subject: control message for bug #58926 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) merge 58926 56674 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 13:11:06 2022 Received: (at 58926) by debbugs.gnu.org; 12 Nov 2022 18:11:06 +0000 Received: from localhost ([127.0.0.1]:48973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otuyA-00030H-EJ for submit@debbugs.gnu.org; Sat, 12 Nov 2022 13:11:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otuy8-0002zJ-Au; Sat, 12 Nov 2022 13:11:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otuy2-00080x-Vi; Sat, 12 Nov 2022 13:10:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=QUfQPeQUVghV2I6WcVMRYa0zU6OP89RZlhYnFRr1rvY=; b=pLJnUbWtFdXxz16T1JGJ Y9jsW+DfehulC9+0oEgyEIKsO7Fr5+l4ic3bKZ4Ww3LOiTpJ1SspPA5jOg343DNsoPQcmGJN/4Rvh zezTe3M57DO8flVrXu+7jxdbOioaRERxGNUfhBedxx9w/9Pbt/co6ixZNB8t2vzwfjD/Zkcq/8bIl EAlSF4g8Jz9AXbCb95xcCTwNWMyZzfnhGyu0HYBiCe0LHaoZPncnF2It8fTb6DHSuCMPcl2k3TP++ DYrCYytbfjGi2Tfzd7cNn1X/GLmRzbNtNAQ+k4JMbIwbyYKEH41YZKj6n2c7g6Qliw/5qfh7wEbr6 ofxAzt+rR+Zpmg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otuy2-0000ho-Cc; Sat, 12 Nov 2022 13:10:58 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#58926: Shepherd becomes unresponsive after an interrupt References: <87a65cgo1t.fsf@gnu.org> Date: Sat, 12 Nov 2022 19:10:56 +0100 In-Reply-To: <87a65cgo1t.fsf@gnu.org> (Mathieu Othacehe's message of "Mon, 31 Oct 2022 13:44:46 +0100") Message-ID: <878rkgcabz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58926 Cc: 53225@debbugs.gnu.org, 58926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mathieu Othacehe skribis: > 1. On my laptop with a Wireguard service trying to reach a non-existing > DNS server. > > (service wireguard-service-type > (wireguard-configuration > (addresses (list "10.0.0.2/24")) > (dns '("10.0.0.50")) #does not exit This one is similar to: https://issues.guix.gnu.org/53225 https://issues.guix.gnu.org/53381 It has to do with the fact that =E2=80=9Cwg-quick up=E2=80=9D blocks until = it succeeds and that =E2=80=98invoke=E2=80=99 gets stuck on =E2=80=98waitpid=E2=80=99 u= ntil the =E2=80=9Cwg-quick=E2=80=9D process terminates. The solution will be to use something non-blocking instead of =E2=80=98invo= ke=E2=80=99; I=E2=80=99m looking into it. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 13:28:43 2022 Received: (at 58926) by debbugs.gnu.org; 12 Nov 2022 18:28:43 +0000 Received: from localhost ([127.0.0.1]:49026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otvFD-0005g1-9h for submit@debbugs.gnu.org; Sat, 12 Nov 2022 13:28:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otvFB-0005fo-Bf for 58926@debbugs.gnu.org; Sat, 12 Nov 2022 13:28:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otvF6-0003Nz-4v for 58926@debbugs.gnu.org; Sat, 12 Nov 2022 13:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=+pQQcWpE4DjjqShzGj2MNPLhMDQT3dDtuFOHfAjRTok=; b=YswjwHC3urt1uuukpKn/ xwW4BrAbRK6otVNccXANKXkGJpZksBWTgzUfLHDE9edAFvYKPM//s0YsMFrka3H4KEqRImvy8C1Us Dk+OeUi9/Lrv8K/2bmTKiV3Hu+q+DPVNKv3/9HqXt3LNujQsGX40YXE1bjdPT+pKX1P7fDNkLG5U1 pz8SAU/QxizZNTNJC3gwj5pd/TGi4JEDPQVL0jK+A4Ifu75kx7O5/8IB46YyCafNCIoVyjAQBkZba rMke3ryAdJtxmjsLYU1aQn3jdhea5FzHMFP1Xpx0zIy5j8VYH+3bNZfCf9mgg6IenG2Zo3FRZDKVQ O6Qq2PBbSJqabg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otvF5-0007AV-IO; Sat, 12 Nov 2022 13:28:35 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#58926: Shepherd becomes unresponsive after an interrupt References: <87a65cgo1t.fsf@gnu.org> Date: Sat, 12 Nov 2022 19:28:33 +0100 In-Reply-To: <87a65cgo1t.fsf@gnu.org> (Mathieu Othacehe's message of "Mon, 31 Oct 2022 13:44:46 +0100") Message-ID: <874jv4c9im.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58926 Cc: 58926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mathieu Othacehe skribis: > then hitting C-c, Shepherd becomes totally unresponsive: > > sudo herd status > > > and all further Shpeherd commands hang forever. I was able to reproduce > it in two different configurations: [...] > 2. On Berlin, while trying to restart nginx. I can=E2=80=99t reproduce it in a VM. Before I try it on a production system :-), does anyone have a tip on how to reproduce it? Or perhaps strace output from a system that exhibits this bug? TIA! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 11:32:52 2022 Received: (at 58926) by debbugs.gnu.org; 14 Nov 2022 16:32:52 +0000 Received: from localhost ([127.0.0.1]:50793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oucOC-0004oB-0f for submit@debbugs.gnu.org; Mon, 14 Nov 2022 11:32:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oucOB-0004nx-2m; Mon, 14 Nov 2022 11:32:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oucO3-0001GE-4L; Mon, 14 Nov 2022 11:32:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=4ITMDdwLRrONPIJ4+TLF/aJWUdttfliJXRHIuCOqVZw=; b=haDCh+rMxku/qDsRqBrq Fufly6h1PZmOCfYlKdD4hFnI22C9skwRQIFdz1VKIsIguAeRBQsddIFLo3GcvAb8ppjmppA2xrOUR zKF8S+4FJxDJRIl+IC/LdsFmaaPph6WMv5N9koUbEPajW8QScgLtH0vEF1G8ftY+FVRwnA5C1aMYm 9aYkRUhk7s1dCmHyLqwUQR4O0Wc6Zxht2i8cRgNE9fEAOypeCI0mlMoJe/S4GvEEsyj2XhrE/Zlt6 +GB1FCzcXv2AyzLOQUH6icyPEddOWP2ldmRWC22GuBbib8J6RE1P2XoXaItOR0uGUg41bxQmbeeig f5nNNMCNs6sjhg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oucNy-0004KX-40; Mon, 14 Nov 2022 11:32:39 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 56674@debbugs.gnu.org Subject: Re: bug#58926: Shepherd becomes unresponsive after an interrupt References: <8735evpipv.fsf@inria.fr> <87o7tabg2x.fsf@gnu.org> Date: Mon, 14 Nov 2022 17:32:35 +0100 In-Reply-To: <87o7tabg2x.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 14 Nov 2022 00:16:38 +0100") Message-ID: <87wn7xo5ss.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58926 Cc: Mathieu Othacehe , 58926@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! Ludovic Court=C3=A8s skribis: > These fresh Shepherd commits install a non-blocking =E2=80=98system*=E2= =80=99 replacement: > > 975b0aa service: Provide a non-blocking replacement of 'system*'. > 039c7a8 service: Spawn a fiber responsible for process monitoring. > > We=E2=80=99ll have to do more testing and probably go for a 0.9.3 release= soon. Shepherd commit ada88074f0ab7551fd0f3dce8bf06de971382e79 passes my tests. It definitely solves the wireguard example and similar things (uses of =E2=80=98system*=E2=80=99 in service constructors/destructors); I = can=E2=80=99t tell for sure about nginx because I haven=E2=80=99t been able to reproduce it in= a VM. I=E2=80=99m interested in ways to reproduce it. It does look like we could go with 0.9.3 real soon now. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 17 05:23:18 2022 Received: (at 58926-done) by debbugs.gnu.org; 17 Nov 2022 10:23:18 +0000 Received: from localhost ([127.0.0.1]:59215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovc3C-0003eT-6K for submit@debbugs.gnu.org; Thu, 17 Nov 2022 05:23:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovc3A-0003eF-Qm; Thu, 17 Nov 2022 05:23:17 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovc35-0001Mm-IX; Thu, 17 Nov 2022 05:23:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Hs+vlGl1Os/YmALKRzvaqJJjTq9ztnL/kKBt+eZogek=; b=KxRc+KJSpyjda/cRtL9y 71iKVT7+MYppPg7rHJeEDaJg1+kNp0UPGNdlZMG7gb64Twv63WDzDJU6LKu4Nr88gcpzHjnG1lECH iCIJUtcc5lib99vBUXK0vDa0yIbI8WlhtmE/PfBs1uNx7DlBVofjOT2ESBkC+ZbSb1MFD7Rc6+Z+Y 7Jnc+w8GrlUkwpGZi/fBX1ZIFFjJyIX53uGsF6OchICwn8/VIQqJQWeUIot7AICGWY+hEIUGRQ+39 85KbIl9RT0iBhJYghxrzvR20pvluEPlJr98l9yJ4NFjZUXhnO+XfsE8DYJ5XjuEXS+JS6bqGpwKYb NPb3uQCN0vIJew==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovc34-0005Iy-Eu; Thu, 17 Nov 2022 05:23:10 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#58926: Shepherd becomes unresponsive after an interrupt References: <87a65cgo1t.fsf@gnu.org> <878rkgcabz.fsf@gnu.org> Date: Thu, 17 Nov 2022 11:23:09 +0100 In-Reply-To: <878rkgcabz.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 12 Nov 2022 19:10:56 +0100") Message-ID: <87a64pkhgy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58926-done Cc: 53225-done@debbugs.gnu.org, 58926-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ludovic Court=C3=A8s skribis: > Mathieu Othacehe skribis: > >> 1. On my laptop with a Wireguard service trying to reach a non-existing >> DNS server. >> >> (service wireguard-service-type >> (wireguard-configuration >> (addresses (list "10.0.0.2/24")) >> (dns '("10.0.0.50")) #does not exit > > This one is similar to: > > https://issues.guix.gnu.org/53225 > https://issues.guix.gnu.org/53381 > > It has to do with the fact that =E2=80=9Cwg-quick up=E2=80=9D blocks unti= l it succeeds > and that =E2=80=98invoke=E2=80=99 gets stuck on =E2=80=98waitpid=E2=80=99= until the =E2=80=9Cwg-quick=E2=80=9D process > terminates. > > The solution will be to use something non-blocking instead of =E2=80=98in= voke=E2=80=99; > I=E2=80=99m looking into it. This is fixed in the Shepherd 0.9.3, which landed in Guix commit 283d7318c5b312d7129adb6dbeea6ad205ce89d1. As I wrote, I=E2=80=99m not sure whether it fixes the nginx situation since= I could not reproduce it. I=E2=80=99m closing and let=E2=80=99s open a new i= ssue specifically for nginx if it comes up again with 0.9.3. Thanks, Ludo=E2=80=99. From unknown Thu Jun 19 14:20:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Dec 2022 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator