From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yOamCa9zqmAutQAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 17:24:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ADxVBa9zqmAFYAAAB5/wlQ (envelope-from ) for ; Sun, 23 May 2021 15:24:31 +0000 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 7BD78F47D for ; Sun, 23 May 2021 17:24:30 +0200 (CEST) Received: from localhost ([::1]:54006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkpxt-0004U3-Ap for larch@yhetil.org; Sun, 23 May 2021 11:24:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkpxT-0004TF-27 for bug-guix@gnu.org; Sun, 23 May 2021 11:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkpxS-0001ht-1t for bug-guix@gnu.org; Sun, 23 May 2021 11:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkpxR-0003cn-SY for bug-guix@gnu.org; Sun, 23 May 2021 11:24:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47172: Shepherd 0.8.1 tests fail on core-updates Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 23 May 2021 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47172 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 47172@debbugs.gnu.org Received: via spool by 47172-submit@debbugs.gnu.org id=B47172.162178343913916 (code B ref 47172); Sun, 23 May 2021 15:24:01 +0000 Received: (at 47172) by debbugs.gnu.org; 23 May 2021 15:23:59 +0000 Received: from localhost ([127.0.0.1]:41651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkpxO-0003cN-Tc for submit@debbugs.gnu.org; Sun, 23 May 2021 11:23:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkpxM-0003c7-SK; Sun, 23 May 2021 11:23:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34382) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkpxH-0001fq-Mq; Sun, 23 May 2021 11:23:51 -0400 Received: from host-37-191-231-185.lynet.no ([37.191.231.185]:44036 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkpxG-0006Gs-82; Sun, 23 May 2021 11:23:51 -0400 From: Marius Bakke In-Reply-To: <87v9794l2a.fsf@gnu.org> References: <37305bfa08faea95b45a6496623154c2ebab1f11.camel@zaclys.net> <87zgwl4ui0.fsf@gnu.org> <87v9794l2a.fsf@gnu.org> Date: Sun, 23 May 2021 17:23:48 +0200 Message-ID: <875yz9qxrv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: , Cc: 48368@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621783470; 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: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; bh=hXVVGXEgVd0sJJFZBorVO4DzWmrPhO/DMsLpDkFIFTQ=; b=B6Ga2WkuXKwJ+KMDatZtga+SSeAzMzhHh5kUWJrBS6+L7WFSz3MzodXDcTmg1yuC2XsvN2 QiOcx2CMknvvd+fsFf6WdUi7KzA6v3YP3Kfyhiofo6PFdvlA/t4fp2DEC6riCEKiLZK7bK 00usIImyxUqmj6L8cnopCT2E2I7zNKU1KVop68gHBGnr68Ga9DH+NvBE9gYEzCo4JZ8WpV qPQOCO/lo0HomAgbyJNaAAArDqQLN6PLd0XDhXAWlNux/NPrcd1u12wiuaub0AR2E79En6 uZPnj6N8C4c/rjFAi8/B5r4aC8SPft3ru0AGsHvMVolvTfdfSpC/JU+k/8HhWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621783470; a=rsa-sha256; cv=none; b=HW3cXIVHF//EXK4gOKwcoRG78tqbvz95u0G7y720F78/n7dEsO80zfXmcKA3fn5zi3pTgq WdQdUQU1WdSb+MgXdmffmHG8rnkD4mARayQpMoltsUFST5nCkQ+3nCr4b101j2OnAMJ2lD xudLIuBNF9nKC41BQ4/1GNy7IffIWMQfuhp2xM6lzEJMH7DdFeTnjynnet59QR0bW8BN3U NCqwB9/Nsdq89JRaYXOZLeks6OTwvHy10tLyX/qDFe0xf5HbfETOAoycYl+BZeJhIp7cg2 WFdb2Wfh72D0cw4pzkGqcSNBDLvWD6aCCWMj8xGX5Vga5noal1thBZ160bUd8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -5.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 7BD78F47D X-Spam-Score: -5.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: JhMQpTdpFexE --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skriver: > Ludovic Court=C3=A8s skribis: > >> This turns out to be due to a=E2=80=A6 miscompilation bug. >> >> In (shepherd scripts herd), =E2=80=98run-command=E2=80=99 has this code: >> >> (let ((sock (open-connection socket-file)) >> (action* (if (and (eq? action 'detailed-status) >> (memq service '(root shepherd))) >> 'status >> action))) >> =E2=80=A6) >> >> Problem is that everything works as if (eq? action 'detailed-status) >> was omitted, such that =E2=80=98herd stop root=E2=80=99 is interpreted a= s =E2=80=98herd status >> root=E2=80=99. > > A workaround that works with 3.0.7 is swapping the two =E2=80=98and=E2=80= =99 > sub-expressions: > > diff --git a/modules/shepherd/scripts/herd.scm b/modules/shepherd/scripts= /herd.scm > index 106de1e..39d2e34 100644 > --- a/modules/shepherd/scripts/herd.scm > +++ b/modules/shepherd/scripts/herd.scm > @@ -126,8 +126,8 @@ of pairs." > the daemon via SOCKET-FILE." > (with-system-error-handling > (let ((sock (open-connection socket-file)) > - (action* (if (and (eq? action 'detailed-status) > - (memq service '(root shepherd))) > + (action* (if (and (memq service '(root shepherd)) > + (eq? action 'detailed-status)) > 'status > action))) > ;; Send the command. Cc'ing the relevant Guile bug: https://bugs.gnu.org/48368 See also commit 79be6a985799adc6d663890250f4fb7c12f015b4 on 'core-updates' that builds with -O1 as a less satisfactory workaround. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYKpzhA8cbWFyaXVzQGdu dS5vcmcACgkQ6HGLpZEUEHd0CgD9FsWiNMu2PxB/773BI2hOmYPKZqyX+KbAy05R C7+xubIBAPcyjBy9TtmqfG0aCSUu1r6a8dmFKkJm4r4eb5fLEwEK =o7Sr -----END PGP SIGNATURE----- --=-=-=--