GNU bug report logs - #76037
[shepherd] regression: throw to key `assertion-failed' in init.scm

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; Keywords: notabug; Done: Ludovic Courtès <ludo@HIDDEN>; Maintainer for guix is bug-guix@HIDDEN.
bug closed, send any further explanations to 76037 <at> debbugs.gnu.org and Maxim Cournoyer <maxim.cournoyer@HIDDEN> Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76037 <at> debbugs.gnu.org:


Received: (at 76037) by debbugs.gnu.org; 5 Feb 2025 10:12:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 05 05:12:02 2025
Received: from localhost ([127.0.0.1]:48648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tfcO1-0003gD-Tt
	for submit <at> debbugs.gnu.org; Wed, 05 Feb 2025 05:12:02 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:55502)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tfcNz-0003fu-84
 for 76037 <at> debbugs.gnu.org; Wed, 05 Feb 2025 05:11:59 -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 <ludo@HIDDEN>)
 id 1tfcNs-0007mW-7x; Wed, 05 Feb 2025 05:11:53 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=/TI9411I508tcU1p+s+6FpVqD7I+W/n07Nj+n7PRWmU=; b=BBEAWDJmcjPRaR4oV2lB
 m0HFJVJgbXEvZf6DHAYnDiv1xhUqjGVsSEi2z6yXLNSpyxHTcbarj8ZCJ+C4HhguhGrLzErcuwhBu
 vN0Kb1Xt1Hp2olJKX8cAIQFXrphg13Z5tHwTJvhAMQSBODD5NHYybMYniBcUSZVM+E0DwFyJ8HaLC
 Qk7TE9IXFh57rUMIQekShAIfvUgBEO87Y88SAZTpd+HjuZoO2MsFRTgdZJ8+9Dyfoq4dnGzf95WTw
 WBu8kXd09QgR7yg3lLQVDj4t+fD14y843conFxNhMxL81ewzyqEEXzsIIUAyzoKormeiWijQQbNoW
 Ifh1xFuWYwz0XQ==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: bug#76037: [shepherd] regression: throw to key
 `assertion-failed' in init.scm
In-Reply-To: <87ikpqtqqi.fsf@HIDDEN> (Maxim Cournoyer's message of "Tue, 04
 Feb 2025 10:59:01 +0900")
References: <87ikpqtqqi.fsf@HIDDEN>
Date: Wed, 05 Feb 2025 11:11:42 +0100
Message-ID: <878qqkbt0h.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
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: 76037
Cc: 76037 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:

> ~/src/shepherd$ /gnu/store/5hcznfjzxvjbwixr5fkgpfd2w2zi4fxl-shepherd-1.0.=
99-git/bin/shepherd
> GNU Shepherd 1.0.1 (Guile 3.0.9, x86_64-unknown-linux-gnu)
> Starting service root...
> Service root started.
> Service root running with value #<<process> id: 2771 command: #f>.
> Service root d=C3=A9marr=C3=A9.
> shepherd/service.scm:236: Assertion (procedure? proc) failed.
> While loading configuration file '/home/maxim/.config/shepherd/init.scm':=
 "Throw to key `assertion-failed' with args `()'."

[...]

> ;; Send shepherd into the background.
> (action 'shepherd 'daemonize)

This is because you should be writing this instead (info "(shepherd)
Managing User Services"):

  (perform-service-action root-service 'daemonize)

This is because =E2=80=98action=E2=80=99, which was deprecated in 0.10, now=
 has a
different meaning (info "(shepherd) Defining Services").

HTH!

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#76037; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Feb 2025 01:59:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 20:59:33 2025
Received: from localhost ([127.0.0.1]:41935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tf8Ds-0005U0-O3
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 20:59:33 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41792)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tf8Dq-0005Tl-9U
 for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 20:59:30 -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 <maxim.cournoyer@HIDDEN>)
 id 1tf8Dk-0002Xl-VN
 for bug-guix@HIDDEN; Mon, 03 Feb 2025 20:59:24 -0500
Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tf8Dj-0002gg-GA; Mon, 03 Feb 2025 20:59:24 -0500
Received: by mail-pl1-x62a.google.com with SMTP id
 d9443c01a7336-21c2f1b610dso117940575ad.0; 
 Mon, 03 Feb 2025 17:59:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738634359; x=1739239159; darn=gnu.org;
 h=mime-version:message-id:date:cc:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=EZeSBNueKrDRKajDzzfxmxDHmfICnjNRk9UcnZyCUZo=;
 b=i7wLDs1oOqvc4AY6K+S+W4GIH7lJcixYpenxCM6qcQyyliFnhPC0ElkIV1d0edW5t8
 hILB7z2a31o34/cbPzXMY9JmAT3oZvp3gfMIiC/GOTvEH4457BIPeE3oKeMo+fGb+EXn
 lL2TeJeRSUQl/RApYQGdqQfCcoCZkFgh4kYVrbLP5z0fZ8nS72qHPbfJoZhZZXqfNwHE
 tae5Xig0FpWPaD/+iestgxG+ObwU69QGEKJSgXCfuQZtzAyNLQPgYWd6X9OhHwUBKiqo
 +ts8mbtQXGj0dPovE8yDTxzg1sTpYmITN+8zMUILpIFvKhnJbQezArK3OCwHlOqG+Bth
 09gA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738634359; x=1739239159;
 h=mime-version:message-id:date:cc:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=EZeSBNueKrDRKajDzzfxmxDHmfICnjNRk9UcnZyCUZo=;
 b=WVRKLPKUzwFOwdWHUSiq9ByGMKnRqguZ5wBhkljNjztQizxymu1GbPlCkcpzSi68jt
 XW96raykj5UTEXvs01Tm+9pb8ab0Lvp+3AjOMWebuxK9IrXExOWrTa1G2HBF1t2izfQx
 7++zWDxk5EfBOb//eryRS1r/pkD1C0cuNwBfuz2kRyBnNOeNy2vygLuiy9VBBVXI0vSr
 5vLaqRlHc519kLMZQX0OrBY9GothnnKefVafMvNzRmKaA+Taw7XRUjWUlyG/q0Wojpwu
 skThrwA9WFzhfIEjunrDAnGmXp8LKhwxp1+4I5higQ7wwT3qaUFy+tN74ZfkmW0as9r+
 vTAw==
X-Gm-Message-State: AOJu0YyWRq3Y8Tr2H4na5EyOPI7HgXCmSW7p+kMce//+ulEf3igk6cN6
 DbkjtkjTEHY3pjTNxvtLiVvgILuC6J6n/i6tUN23l/Lu1C4H/kNgCa/4bzUp
X-Gm-Gg: ASbGnctmxoz/6tQzEEYl9hOFdD+11dniHmayh+l1lo13vGjsaQQ+hxiOQChv+xMEG4r
 MU6ijsh7aFMs6xoj44REr+rD2nMFY+HpHbkyzCasxs+5xZxgG30Y1yJLYCV40nlEm8m0H+1vyI5
 IgdxUsmhnecbTqVJ6yjpZ2aF3bw/dIgKklF2kV8DvxL6aUSiXmxYPDvoz0dR/As6ze3isyrHdcj
 wEQYg9LMje6vAWm1UiHhLUx3mVtD0Gw/yxi4dz4yGvJ7uvUXd5ffZXiBk4QuDajpcdJfdjTj74T
 GOcMjjFXiiPG
X-Google-Smtp-Source: AGHT+IFro78PJAv2ajeCYbH9mD3OUWw23pk2Tz7U+4DzZmn8bedCuZrmGy7QKYOdXPMJmd2nsyLSeA==
X-Received: by 2002:a05:6300:6287:b0:1ed:a6d7:3ac8 with SMTP id
 adf61e73a8af0-1eda6d73c61mr18373643637.7.1738634359093; 
 Mon, 03 Feb 2025 17:59:19 -0800 (PST)
Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-72fe642b218sm9386409b3a.57.2025.02.03.17.59.16
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 03 Feb 2025 17:59:18 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: [shepherd] regression: throw to key `assertion-failed' in init.scm
Date: Tue, 04 Feb 2025 10:59:01 +0900
Message-ID: <87ikpqtqqi.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2607:f8b0:4864:20::62a;
 envelope-from=maxim.cournoyer@HIDDEN; helo=mail-pl1-x62a.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

In the latest Shepherd as packaged in Guix, as well as when building it
from commit 63075c9, starting shepherd my home services (which I still
manually roll, not via 'guix home'):

--8<---------------cut here---------------start------------->8---
~/src/shepherd$ /gnu/store/5hcznfjzxvjbwixr5fkgpfd2w2zi4fxl-shepherd-1.0.99=
-git/bin/shepherd
GNU Shepherd 1.0.1 (Guile 3.0.9, x86_64-unknown-linux-gnu)
Starting service root...
Service root started.
Service root running with value #<<process> id: 2771 command: #f>.
Service root d=C3=A9marr=C3=A9.
shepherd/service.scm:236: Assertion (procedure? proc) failed.
While loading configuration file '/home/maxim/.config/shepherd/init.scm': "=
Throw to key `assertion-failed' with args `()'."
shepherd: error: "/home/maxim/.config/shepherd/init.scm": exception thrown =
while loading configuration file
--8<---------------cut here---------------end--------------->8---

And none of the services I have defined in my init are run (file
attached):

$ shepherd status

--8<---------------cut here---------------start------------->8---
$ herd status
D=C3=A9marr=C3=A9s=C2=A0:
 + root
Arr=C3=AAt=C3=A9s=C2=A0:
 - emacs
 - gpg-agent
 - ibus-daemon
 - jackd
 - workrave
--8<---------------cut here---------------end--------------->8---

The services can be manually started, in the meantime, with 'herd start
emacs', etc.


--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=init.scm
Content-Transfer-Encoding: base64

Ozs7IFNoZXBoZXJkIFVzZXIgU2VydmljZXMKKHVzZS1tb2R1bGVzIChzaGVwaGVyZCBzZXJ2aWNl
IHJlcGwpKQoKKGxvYWQgInNlcnZpY2VzLnNjbSIpCgoocmVnaXN0ZXItc2VydmljZXMKIGVtYWNz
CiBncGctYWdlbnQKIGphY2tkCiBpYnVzLWRhZW1vbgo7IChyZXBsLXNlcnZpY2UpCiB3b3JrcmF2
ZSkKCjs7IFNlbmQgc2hlcGhlcmQgaW50byB0aGUgYmFja2dyb3VuZC4KKGFjdGlvbiAnc2hlcGhl
cmQgJ2RhZW1vbml6ZSkKCjs7IFNlcnZpY2VzIHRvIHN0YXJ0IHdoZW4gc2hlcGhlcmQgc3RhcnRz
Ogooc3RhcnQtaW4tdGhlLWJhY2tncm91bmQgJyhlbWFjcyBncGctYWdlbnQgaWJ1cy1kYWVtb24p
KQo=
--=-=-=
Content-Type: text/plain


-- 
Thanks,
Maxim

--=-=-=--




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#76037; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 5 Feb 2025 15:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.