From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UNXxAWAcfGbpBAAAe85BDQ:P1 (envelope-from ) for ; Wed, 26 Jun 2024 13:49:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UNXxAWAcfGbpBAAAe85BDQ (envelope-from ) for ; Wed, 26 Jun 2024 15:49:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YjouNKOE; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719409759; 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: content-transfer-encoding:content-transfer-encoding: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=aWb/4+/fNoZsE7WVzQb407hh1omX3I4Iqfd0Oynm/Sw=; b=UWSRUJjNLDa42SD+yxERXEncWix8n40/eilNYAXr7j+zR37K3Cu7e2N33mSDW4Ai2sU9rE NefGDyXAl7U+SFyTbpyTJe87lVMDwUn38o6tELvB+E3b0yTqXdQw1z7OT0IZuz/p+wMlT6 l7lQRNAS4UqzVSWRS9TjSCrYA97fFJOtXOLbYagwV5xEL4Svg+em8rq9mmUBtRGZJ3Wqrp cuRrSgKDsub9pbkSHvhH78czhAq4lxjRJSAQon/2HWbH9NT3RKXVMvKeVK1Si+a9ijtOf8 mH9y85XM8BdZRQEXuHimKKEKAGdBq30ljl8xDqJ2mFy5BO87qO+4bm5muU9tnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719409759; a=rsa-sha256; cv=none; b=FVqINmlNrz1xfIALxCFYrV17pIEkNY3Zz7EYiDr/XKOFbhhDuI613nsbYTb5PEQbeCxes3 oqkgksGR880G9KcXMs1U7bYWNsieC6plXDFrTLkdvJeTe3Sgm0D53Nq4EPxJagjy6y1j5z 1KEocRQ7XfAy4I0kPaMzXl0xmqZtXsfioCT0T1CuU5y5QSKjiciOTGbLQgd+w7Ad6Aue2Q fHlhKZ3OQYOEzCf2UIeo1qvDwVfF9sD399sQ/uZWyh/Qb4d1+tEY/qAL6HpkJDMSJOhraa nAkS6Lzq106JpQDgtDCaTQoe+A3Fhqyo8RQl+zQYBwizPoM5/aLXZmvCVsICYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=YjouNKOE; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 C76DC6B288 for ; Wed, 26 Jun 2024 15:49:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMT1H-0005BN-Um; Wed, 26 Jun 2024 09:49:07 -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 1sMT1A-00058J-Bj for bug-guix@gnu.org; Wed, 26 Jun 2024 09:49:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMT1A-0008Ch-3Z for bug-guix@gnu.org; Wed, 26 Jun 2024 09:49:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMT1C-0000ns-CK for bug-guix@gnu.org; Wed, 26 Jun 2024 09:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71193: Shepherd fails to start a system when given an incorrect form to the start field of any service Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 26 Jun 2024 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71193 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Picnoir" Cc: 71193@debbugs.gnu.org Received: via spool by 71193-submit@debbugs.gnu.org id=B71193.17194096862996 (code B ref 71193); Wed, 26 Jun 2024 13:49:02 +0000 Received: (at 71193) by debbugs.gnu.org; 26 Jun 2024 13:48:06 +0000 Received: from localhost ([127.0.0.1]:38851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMT0I-0000mG-G4 for submit@debbugs.gnu.org; Wed, 26 Jun 2024 09:48:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMT0G-0000lJ-P0 for 71193@debbugs.gnu.org; Wed, 26 Jun 2024 09:48:05 -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 1sMT08-00082U-EU; Wed, 26 Jun 2024 09:47:56 -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:References:In-Reply-To:Subject:To: From; bh=aWb/4+/fNoZsE7WVzQb407hh1omX3I4Iqfd0Oynm/Sw=; b=YjouNKOEEic5zqGcNcff ufW+HZxZV2qq/JwklLI+Q35ErVaxbvgj8tfwnnPm6KVwOxv8fJbIF5fp9OQYYVGs0t/EVn0DGSrzO 9Z6ij+PRtsPqUAyoiLWaGMi1f/TddVJDASRelepiWu4JCUhmI0QO6yBUu1dF1v9Kg9o2dXH4eT8TR KhU0jbxCsrYTKrPWbwVTHTDEvXJpI1apvhOgik7aqj82314HtUJ+5nzFPrbxKJFANyxnleXwb6mNP 4PbxMzwPQgCQBh8pvZlEUX3A1gWbRetNax06uYX5yueOJIFOocbHHRn8NDuHp4yVENt+cJfQcjN4C jU+4YmF/9Pl8Bg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87fru6uyzg.fsf@alternativebit.fr> (picnoir@alternativebit.fr's message of "Sat, 25 May 2024 09:33:55 +0200") References: <87fru6uyzg.fsf@alternativebit.fr> Date: Wed, 26 Jun 2024 15:47:52 +0200 Message-ID: <87msn7byt3.fsf@gnu.org> 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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: C76DC6B288 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.27 X-Spam-Score: -7.27 X-TUID: b1PdgswEXSyh Hi Picnoir, "Picnoir" skribis: > I think the following snippet is a good minimal reproducer for this. Add > this service to a guix system configuration: > > --8<---------------cut here---------------start------------->8--- > (simple-service > 'shepherd-bug-repro > shepherd-root-service-type > (list (shepherd-service > (documentation "shepherd hang minimal repro") > (provision '(shepherd-bug-repro)) > (requirement '()) > (start #~('()))))) > u--8<---------------cut here---------------end--------------->8--- > > =E2=9A=A0 DO NOT BOOT ON A CRITICAL SYSTEM WITH THIS SERVICE, IT'LL BRICK= IT =E2=9A=A0 > > You can create a VM for this system and start it. The VM hangs after the > log line "creating /etc/machine-id...", before any shepherd service gets > started. [...] > Tested on Shepherd 0.10.4 with the Guix revision > c5e63e19ac672f9e63fc8ee98fa9a16f978ce19c. This sounds very much like , which was fixed in Guix commit cca25a67693bb68a1884a081b415a43fad1e8641, shortly after the commit you mention. I tested the reproducer you posted in a VM and it boots fine. The problem simply leads to an error message in /var/log/messages: --8<---------------cut here---------------start------------->8--- Jun 26 15:43:09 localhost vmunix: [ 3.574026] shepherd[1]: Exception cau= ght while loading '/gnu/store/c44hd3gfksalrbsgc3a0ax4v9jmnkzb4-shepherd-she= pherd-bug-repro.go': #<&compound-exception components: (#<&assertion-failur= e> #<&origin origin: #f> #<&message message: "Wrong type to apply: ~S"> #<&i Jun 26 15:43:09 localhost vmunix: [ 3.574132] rritants irritants: (())> = #<&exception-with-kind-and-args kind: wrong-type-arg args: (#f "Wrong type = to apply: ~S" (()) (()))>)> Jun 26 15:43:09 localhost vmunix: [ 3.583838] shepherd[1]: starting serv= ices... Jun 26 15:43:09 localhost vmunix: [ 3.585444] shepherd[1]: Configuration= successfully loaded from '/gnu/store/8cch4dv5ca1v0hsgyr6d8jay513x7d8g-shep= herd.conf'. --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and of course the faulty service doesn=E2=80=99t show up at all i= n =E2=80=98herd status=E2=80=99. Could you confirm it=E2=80=99s fine for you? Thanks, Ludo=E2=80=99.