From unknown Fri Aug 15 20:53:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58926: Shepherd becomes unresponsive after an interrupt Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 31 Oct 2022 12:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58926@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166722029218569 (code B ref -1); Mon, 31 Oct 2022 12:45:01 +0000 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 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-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 unknown Fri Aug 15 20:53:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58926: Shepherd becomes unresponsive after an interrupt Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 10 Nov 2022 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 58926@debbugs.gnu.org Received: via spool by 58926-submit@debbugs.gnu.org id=B58926.166807438018884 (code B ref 58926); Thu, 10 Nov 2022 10:00:02 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-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 unknown Fri Aug 15 20:53:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58926: Shepherd becomes unresponsive after an interrupt Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Nov 2022 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 53225@debbugs.gnu.org, 58926@debbugs.gnu.org Received: via spool by 58926-submit@debbugs.gnu.org id=B58926.166827666611559 (code B ref 58926); Sat, 12 Nov 2022 18:12:02 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-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 unknown Fri Aug 15 20:53:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58926: Shepherd becomes unresponsive after an interrupt Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Nov 2022 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 58926@debbugs.gnu.org Received: via spool by 58926-submit@debbugs.gnu.org id=B58926.166827772321829 (code B ref 58926); Sat, 12 Nov 2022 18:29:02 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-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 unknown Fri Aug 15 20:53:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58926: Shepherd becomes unresponsive after an interrupt Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 14 Nov 2022 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56674@debbugs.gnu.org Cc: Mathieu Othacehe , 58926@debbugs.gnu.org Received: via spool by 58926-submit@debbugs.gnu.org id=B58926.166844357218493 (code B ref 58926); Mon, 14 Nov 2022 16:33:02 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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?="'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-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 unknown Fri Aug 15 20:53:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mathieu Othacehe Subject: bug#58926: closed (Re: bug#58926: Shepherd becomes unresponsive after an interrupt) Message-ID: References: <87a64pkhgy.fsf@gnu.org> <87a65cgo1t.fsf@gnu.org> X-Gnu-PR-Message: they-closed 58926 X-Gnu-PR-Package: guix Reply-To: 58926@debbugs.gnu.org Date: Thu, 17 Nov 2022 10:24:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1668680643-14166-1" This is a multi-part message in MIME format... ------------=_1668680643-14166-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58926: Shepherd becomes unresponsive after an interrupt which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58926@debbugs.gnu.org. --=20 58926: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58926 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1668680643-14166-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1668680643-14166-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1668680643-14166-1-- From unknown Fri Aug 15 20:53:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#56674: closed (Re: bug#58926: Shepherd becomes unresponsive after an interrupt) Message-ID: References: <87a64pkhgy.fsf@gnu.org> <8735evpipv.fsf@inria.fr> X-Gnu-PR-Message: they-closed 56674 X-Gnu-PR-Package: guix Reply-To: 56674@debbugs.gnu.org Date: Thu, 17 Nov 2022 10:24:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1668680644-14166-3" This is a multi-part message in MIME format... ------------=_1668680644-14166-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58926: [Shepherd] Use of =E2=80=98waitpid=E2=80=99, =E2=80=98system*=E2=80= =99, etc. in service code can cause deadlocks which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 56674@debbugs.gnu.org. --=20 58926: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58926 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1668680644-14166-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1668680644-14166-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Jul 2022 21:39:14 +0000 Received: from localhost ([127.0.0.1]:36196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEHPW-0005H1-FD for submit@debbugs.gnu.org; Wed, 20 Jul 2022 17:39:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:56904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEHPT-0005Gs-NI for submit@debbugs.gnu.org; Wed, 20 Jul 2022 17:39:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEHPT-0001Ia-IN for bug-guix@gnu.org; Wed, 20 Jul 2022 17:39:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEHPT-0001TV-AK for bug-guix@gnu.org; Wed, 20 Jul 2022 17:39:11 -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=M8w5WeDxJS14gBGGsfc8CvBrW4CYqhv18DUTdfvx+EU=; b=HBRZBuMtbWN9u3 zm3KRNpSPuVelXLB6WvH2dvU2YbVqCxFLNGQkiD8MfxsjY9q78jQeQQK5OB/8MRhI7UaSsfEjgy/w zDOEyY7mCcTyPZXHaGLEzO/3m+00nAz4K39gCA5KEHYkkYl18VW1r7GAyU6jvhBpikmlXtCPjr8vF CIds4JmF3KO6LCWdCEBf+23EPMNoerp9LFcaZisTscpqoTbhTVU4wsm/ZISSuO1Va7LWi2cc1ofKX 0shWBs0cxQhIuqvl9bmnPZiqSoZ2pTgZ3Gy0/GyrtLu1SMRSoIoiwnUkn/3HctM2lxfZoGb0HDvxz udLc9tiWBxbuQjp9g9Dw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:64292 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEHPS-00062Y-F2 for bug-guix@gnu.org; Wed, 20 Jul 2022 17:39:11 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: [Shepherd] Use of =?utf-8?B?4oCYd2FpdHBpZOKAmSwg4oCYc3lzdGVtKg==?= =?utf-8?B?4oCZLA==?= etc. in service code can cause deadlocks X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 2 Thermidor an 230 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour du Bouillon-blanc X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 20 Jul 2022 23:39:08 +0200 Message-ID: <8735evpipv.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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: 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 (---) Hi! We=E2=80=99ve just had a bad experience with the nginx service on berlin, w= here =E2=80=98herd restart nginx=E2=80=99 would cause shepherd to get stuck fore= ver in =E2=80=98waitpid=E2=80=99 on the process that was supposed to start nginx. The details are unclear, but one thing is clear is that using =E2=80=98wait= pid=E2=80=99 (either directly or indirectly with =E2=80=98system*=E2=80=99, which is what =E2=80=98nginx-service-type=E2=80=99 does) is not great: 1. In the best case, shepherd (as of 0.9.1) is stuck while =E2=80=98syste= m*=E2=80=99 is in =E2=80=98waitpid=E2=80=99 waiting for child process completion (= =E2=80=9Cstuck=E2=80=9D as in: doesn=E2=80=99t do anything, not even answering =E2=80=98herd=E2= =80=99 requests or inetd connections.) 2. I don=E2=80=99t think that can happen with =E2=80=98system*=E2=80=99 (= because it=E2=80=99s in C), but generally speaking, there=E2=80=99s a possibility that shepherd=E2= =80=99s event loop will handle child process termination before some other user-made =E2=80=98waitpid=E2=80=99 call does. Anyway, that=E2=80=99s a bad situation. So I can think of several ways to address it: 1. Change the nginx service =E2=80=98stop=E2=80=99 method to just (make-kill-destructor), which should work just as well as invoking =E2=80=9Cnginx -s stop=E2=80=9D. 2. Have Shepherd provide a replacement for =E2=80=98system*=E2=80=99. Thoughts? Ludo=E2=80=99. ------------=_1668680644-14166-3--