From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uDqrOWXO+WGOgAAAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 01:20:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 83vwNmXO+WHtjQAA9RJhRA (envelope-from ) for ; Wed, 02 Feb 2022 01:20:53 +0100 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 8CA9F1483E for ; Wed, 2 Feb 2022 01:20:53 +0100 (CET) Received: from localhost ([::1]:54860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF3OG-0000gg-Li for larch@yhetil.org; Tue, 01 Feb 2022 19:20:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEypq-0000et-1d for bug-guix@gnu.org; Tue, 01 Feb 2022 14:29:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEypp-0001ua-O8 for bug-guix@gnu.org; Tue, 01 Feb 2022 14:29:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEypp-0000Sx-M1 for bug-guix@gnu.org; Tue, 01 Feb 2022 14:29:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53580: /var/run/shepherd/socket is missing on an otherwise functional system Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 01 Feb 2022 19:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53580 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Attila Lendvai , 53580@debbugs.gnu.org Received: via spool by 53580-submit@debbugs.gnu.org id=B53580.16437436921730 (code B ref 53580); Tue, 01 Feb 2022 19:29:01 +0000 Received: (at 53580) by debbugs.gnu.org; 1 Feb 2022 19:28:12 +0000 Received: from localhost ([127.0.0.1]:44165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEyp2-0000Rq-LJ for submit@debbugs.gnu.org; Tue, 01 Feb 2022 14:28:12 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:37366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEyoz-0000Rf-OU for 53580@debbugs.gnu.org; Tue, 01 Feb 2022 14:28:11 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id pvU72600P4UW6Th01vU7qy; Tue, 01 Feb 2022 20:28:07 +0100 Message-ID: <04e30e30595ba96786a78c1dbc1768636b5c71e9.camel@telenet.be> From: Maxime Devos Date: Tue, 01 Feb 2022 19:28:03 +0000 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-2NWg3TeNJIm0Gr7eWxHF" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1643743687; bh=ZurJxyG4wDioxpJT4RXgNAL2NKalaToEb7BwREiq8AI=; h=Subject:From:To:Date:In-Reply-To:References; b=cRfE0qQ79zy9xXqzT0JOS922HJdIQDET0cQ1fcKt2iOs1Bz6fJfE0lgrqdYYemyeC wuBM6nCWelWs9+Ovl93bcA0jdOuZiBwKW6MDN2+gLtrcqKCJZ0VtQylmId/UYgQFxZ sNd3MUZaDehJg6DXYNo0XB6TcB3rBgf+/V3yuLDt5d+J0ForbfvKPGkWiEJt2hF59U LYGSVZ+CfkpV4h6KNbQE5BF8249vCNMRaiV9sG9HTLrpaCRmdF9QuU7b6ymlE6Bv57 z5EjcSP0xaP/qhkp22F76f8j2lBREENg/k3nwTxiigdLgfmlXxY7aYzCkXLJ14AHlD 1dA3B26VIiErw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643761253; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=ZurJxyG4wDioxpJT4RXgNAL2NKalaToEb7BwREiq8AI=; b=ADz+d6yrwETCxiZlZyGzA/QwPWYYjp3obkMi9tKMhAqvhcYuQhrVf7o8hX0iyH/oRDfGEZ /s6bH4TxGWqoIp7gcwezQPOF1PDFdvK2LEr8Vp6YFwMSEALUgMjQIZej3Rt8Qn8sjYT5A7 GZeNygETBae3NUAU+5R1ePsiAQ1YE3sUtyT2fn9/BOu7FBmAgxlk8AXqCR8/Ahhw1D2zQB XtoNJOP0ATHAlGh94Ckj4qNc2j3dTzEJQgsemoSveEAXFSPXrMdrISPksH40Xibu0SCom8 wx2LLjEsI1x8B+zE2SoHvqJuly3b+jFN0Vp7pUeGYy9CoyUeNi3fFj4TCzdHIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643761253; a=rsa-sha256; cv=none; b=VVkwANz7zshCKLdBoiyXEmRCanPca8qTwb+bGc9u5PBoLpYhww8X/wvBlF+JfVWXkTTuGt VTKQaX77fjnC/sZLhRs+3/nWK1IFLf0tqFIeLhomMSSnQ/rBG95223N1ut3nfJZJYRrfi+ 9ZdOLD+6l5heXquLOlqc98UjQtqnQnl5XWcHlZKSVnjMHvRRlU4cCxR47yZa1rZnHAPuH4 EKC7lzZmrGVLA16dNzhKhgwdwIny65HXPKJk1jebl7ozSD7bgc7kz8P8H8OvzKruKXIY/4 zjisIZ1fvi+SN9b45Uj4QzIfIUxpPA60DblWfzDy5H/uaqN8GqgG5BXeJxaSQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=cRfE0qQ7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=cRfE0qQ7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8CA9F1483E X-Spam-Score: -5.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: D/k0t4J4qbOq --=-2NWg3TeNJIm0Gr7eWxHF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op do 27-01-2022 om 11:32 [+0000]: > (define (call-with-server-socket file-name proc) > =C2=A0 "Call PROC, passing it a listening socket at FILE-NAME and deletin= g the > socket file at FILE-NAME upon exit of PROC.=C2=A0 Return the values of PR= OC." > =C2=A0 (let ((sock (open-server-socket file-name))) > =C2=A0=C2=A0=C2=A0 (dynamic-wind > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 noop > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda () (proc sock)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda () > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (close sock) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (catch-system-error (delete-fi= le file-name)))))) > ``` >=20 > maybe this is caused by some call/cc magic that causes an unwind that del= etes the file, but then continues? Shepherd doesn't use call/cc anywhere. However, it does use _delimited_ continuations, even though only through let/ec and 'guard'/'catch'/... More generally, call/cc is typically unused in (Guile) Scheme code, and call-with-prompt / abort-to-prompt / shift / reset / % are used instead. My guess what happens: the start code of a shepherd service fails between 'fork' and 'exec', with an exception. The exception isn't caught (or is caught and reraised), so the 'out' guard of the 'dynamic-wind' is entered and the file representing the socket is deleted. If that's indeed the case, it might be a good idea to install some exception handlers in fork+exec-command and friends (including make-forkexec-constructor/container), to make shepherd more robust w.r.t. services failing to start. Greetings, Maxime. --=-2NWg3TeNJIm0Gr7eWxHF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYfmJwxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7n+PAQC9O5RtCoEZ35TnqASgf+c0cYCs z4rE4tnPUcUqOg5SRgEAg7SaXSfBntuGGG63v0n522zgxYXgtG+9nZQOOLgv8Qk= =q4tt -----END PGP SIGNATURE----- --=-2NWg3TeNJIm0Gr7eWxHF--