GNU bug report logs - #77365
no error handling on activation scripts

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>; merged with #76698; dated Sat, 29 Mar 2025 14:47:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 76698 77365. Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 77365) by debbugs.gnu.org; 2 Apr 2025 05:42:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 02 01:42:53 2025
Received: from localhost ([127.0.0.1]:53740 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzqsH-0003wl-52
	for submit <at> debbugs.gnu.org; Wed, 02 Apr 2025 01:42:53 -0400
Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:49523)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1tzqsD-0003vE-OM
 for 77365 <at> debbugs.gnu.org; Wed, 02 Apr 2025 01:42:50 -0400
Received: by mail-pl1-x636.google.com with SMTP id
 d9443c01a7336-227a8cdd241so34984705ad.3
 for <77365 <at> debbugs.gnu.org>; Tue, 01 Apr 2025 22:42:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743572563; x=1744177363; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=OtYNVIAEuzTTHAJFeJzN+R2/hHqLHqKnsWMhKxg1RU4=;
 b=KDv+sokZfcg/G9G/xNRiXOe2EqqfTkjCSEF2wcI+IjllTYAoDensNrj4kUODTbX9OT
 Pi61WyPo4ZyuOK28yiwDKp5AEIfnXjyFDvH3vpxe2Q1rP78hbfiGEnFDRQScX/qvT5aV
 6DqK8r3Db9/7ZUKvX/ha45JWsTZ6kc/EkF7v8/L9WElkpdxv7FcxSmS4SxEyQL0KUX7I
 7TR10uVOVhrjoJl+V1apqEXA4FGCq1xKOGtpfxJZ1oUyXingZG0I/5xQllJ1kq984Qzo
 py1n03ilhDQykk9Ka2vo3htLXKIRDd2hibsQneUSKozGD+gziEMdScW1LL//TMRMHNQ6
 kPMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743572563; x=1744177363;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=OtYNVIAEuzTTHAJFeJzN+R2/hHqLHqKnsWMhKxg1RU4=;
 b=VgSnad+RF157MGkigLvqrIvj677qYydjG9X50uNmi3cBS8mJ3CMbGiTxxelwoRhdji
 jjQYOGZyLcmL+N2wf1gXE7AhdUXruCKZ/O0kJXNJDf4lvZQs2MXo3NgtHCrgAs74Ul2p
 ONsxVucvOLgLSEzKQVUu/zGa7sb1iDEwWBgU1+BryT1TGjg0pcNR1LEIbKI36xMvJ00k
 +jNtk7uJYtSLOIwv8Q9Aa7xo4MNxs6pE9Bk+NW78OfSNoeMdEsuazEwUZ1wDtLEl1Gvm
 +kxggzesXf8vYG5Jwksimq1x4QdoODtDyXGPBLTZ1phqmqZjfyVW3dRbDRe7vnG0teof
 Px/Q==
X-Gm-Message-State: AOJu0YxYVXLCC2/mN3Gm5MUt71o5ywMD6lDijv5fBhjtW3n45JehfKOk
 +mHci6+JYpBTR0CJIFEA40oz9VfQI3DmMAdOS87wolPi9tm2eY8W6Ho7Q/OX
X-Gm-Gg: ASbGnctz6t8mR4eQdIFE+03y5q0z609pxmKkU8EzWXNR+LSu20ibOeD4ZaRk3Dxxq61
 ugOX5kvfH0ZO52iOkEAYHyiZ025DKUmLXqNe7e4G56eicaSBbpCRoLqNK1DGMmgq4hdFbs2NURV
 nVghb3IzWxcEmt9rJO7+fqf8n5G6Q9y9IZ3zLIswwPa8uU39F4XP6WyHpkFJS2grdmIZkmlI4hF
 7gJt6/SeLWyzgRG+S2TB1v/MyRutpmjgqMRVuNj+oP/A1nhAckKaCYBVYYX3GcBybz21uaE5Yg8
 gZBRZHWv4h1pGVNN81kJZRU+X+0T2vdIcObbIwMj1Pn6HRFwRX+XWw==
X-Google-Smtp-Source: AGHT+IFnPWN9ODmoDDLVp8hQgTlUAA9FXLJNFG2b80ZmaKESFPwPGvWRVOiuNSP2T6l3aNQQxM6e+g==
X-Received: by 2002:a05:6a00:2d84:b0:730:97a6:f04 with SMTP id
 d2e1a72fcca58-739c787cdbamr1879729b3a.7.1743572563079; 
 Tue, 01 Apr 2025 22:42:43 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-73970def120sm9973207b3a.7.2025.04.01.22.42.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 01 Apr 2025 22:42:42 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Hilton Chain <hako@HIDDEN>
Subject: Re: bug#77365: no error handling on activation scripts
In-Reply-To: <87iknp6tdr.wl-hako@HIDDEN> (Hilton Chain's message of
 "Tue, 01 Apr 2025 00:45:52 +0800")
References: <874izb28vx.fsf@HIDDEN> <87iknp6tdr.wl-hako@HIDDEN>
Date: Wed, 02 Apr 2025 14:42:26 +0900
Message-ID: <878qoj2k71.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77365
Cc: 77365 <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: -1.0 (-)

Hi,

Hilton Chain <hako@HIDDEN> writes:

[...]

> This issue is reported in bug#76698, a solution is proposed there but I haven't
> worked on it yet.

Thanks, I've merged both.

-- 
Maxim




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

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


Received: (at 77365) by debbugs.gnu.org; 31 Mar 2025 16:46:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 31 12:46:16 2025
Received: from localhost ([127.0.0.1]:42636 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzIH9-0005Qx-9Z
	for submit <at> debbugs.gnu.org; Mon, 31 Mar 2025 12:46:15 -0400
Received: from mx.boiledscript.com ([88.99.243.112]:44880)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <hako@HIDDEN>)
 id 1tzIH6-0005MH-TE
 for 77365 <at> debbugs.gnu.org; Mon, 31 Mar 2025 12:46:13 -0400
Date: Tue, 01 Apr 2025 00:45:52 +0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space;
 s=mail; t=1743439571;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=7SJdep6qid06hKoDie1SORNYJ1/chB0WqZsa536IU+0=;
 b=Dp77MCUSeGQ9zDYY4uU1CPCNPNWTaFpCwQYNYdkxGgMf+I4rOs9LrLGKuvClY/h7JEFHd5
 9z1ZCan09eu4v/g1Ur0oLRoy4eH0evW4F5/eLX8vOage9OQPg6bH5AY/d5FYlAMTeU7MQS
 BLRMLPxSecdP0obiOi5n2o4gX9pLYcbdpSK5a/s/Q2227oCEhQ9O+TvEQIfnYCj7prfwrp
 IchMJW3IaPPo390x5AB6XztSzXt1ew+WmfDgVesgpJNW7gNoB9kZtW32t1Poj6nrHjV4Jn
 019Yns5dH8XCXS8iCt2sN1/XKPysEfoPjBor5fB4wNDMzp61bkPyj7nJ7dTZ8w==
Message-ID: <87iknp6tdr.wl-hako@HIDDEN>
From: Hilton Chain <hako@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: bug#77365: no error handling on activation scripts
In-Reply-To: <874izb28vx.fsf@HIDDEN>
References: <874izb28vx.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Reactions: disallow
Content-Type: text/plain; charset=US-ASCII
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77365
Cc: 77365 <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: -1.0 (-)

Hi Maxim,

On Sat, 29 Mar 2025 22:45:22 +0800,
Maxim Cournoyer wrote:
>
> Hi,
>
> Currently, every activation gexp added to the activation-service-type
> ends up in a script loaded via primitive-load of the main activation
> script, which is in turn loaded by the boot script entry point.
>
> This means that raising an exception in the activation scripts may abort
> the boot script and thus the boot itself.
>
> It would probably be nicer and more useful to handle and report the
> errors, while attempting to continue booting.

This issue is reported in bug#76698, a solution is proposed there but I haven't
worked on it yet.

Thanks




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

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


Received: (at submit) by debbugs.gnu.org; 29 Mar 2025 14:46:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 10:46:04 2025
Received: from localhost ([127.0.0.1]:60709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyXRk-0005bJ-5S
	for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 10:46:04 -0400
Received: from lists.gnu.org ([2001:470:142::17]:40648)
 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 1tyXRf-0005aY-0S
 for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 10:46:02 -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 <maxim.cournoyer@HIDDEN>)
 id 1tyXRS-0008OO-N2
 for bug-guix@HIDDEN; Sat, 29 Mar 2025 10:45:50 -0400
Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032])
 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 1tyXRQ-0004Ur-4G
 for bug-guix@HIDDEN; Sat, 29 Mar 2025 10:45:45 -0400
Received: by mail-pj1-x1032.google.com with SMTP id
 98e67ed59e1d1-3014678689aso4506625a91.0
 for <bug-guix@HIDDEN>; Sat, 29 Mar 2025 07:45:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743259540; x=1743864340; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=pHQn3dno//rK31oq85qsRstZzZnboRSxGiPTjbjsXSY=;
 b=GJCt6RLHjkQZhr2hvb1IA8p8jYFOoeihDW5Lu+bTPjzeBvZIfj/EENs22AT8fbTEeo
 64ADMi/1WiSa9q5zd7k/czWuZfpUaZftRB4NLHS8O8ynPoMI8D2vVkIwXTowpo9Efhwx
 KsxvknufpTpDJFqYYmj2k2c7gcLZGzolIk41W+fFAiwglWdCfLEaJYUJnlyW8IZqsQq+
 1qPjLDGRuzT7FrNUMR88GieaAWDclT3LSD+dQBErpC2Auytj68HYnNec8am8DooPb47P
 emkv5UprowhWjlX9eSdxrz7uYh/9LjIxjOW/LaMqL/IYtpWQgn6DRadUXcM4xVw3d4jO
 Ei+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743259540; x=1743864340;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=pHQn3dno//rK31oq85qsRstZzZnboRSxGiPTjbjsXSY=;
 b=fLAxAYNj2IgUL4xcBtXxeVh32SEjks4atXsNAF7it0BpsITejmzVvfbsCH8Wa7y1t7
 Y+PdHcXXAPTX2+K7tGdo6d+EHD75nzDuHx0kNHSQ9UNIuMpiPQ+8qXChtd58Iq03JEdb
 EJZiXT+KBIlzkiozVWDalIhL5ZmXlNvJYI0NdVNsbOrqV+tJHYeUwj0mpsV515F0NxLL
 jC8oAXOLviHpMydzbPn8C+TeO1wHeIwX1zrq7J9EAtT46Nfx9rKLu4XsbgYz9BYMrnDF
 vclRLJpX6YA42gEhagyCp5Qu+3rRsrcopaM5JNeEJQEbaApeE8xUrswqBIA6jGTmpjqz
 bmMA==
X-Gm-Message-State: AOJu0Yx6OHuMnKm+p48wkLd/D5bBEtwI2cqEn/smBHUxvZ7ZgRyNwVml
 YE5QsaolPYOV5tQywN6KkCm3FHjJyS2jNi2o4zjHK5zeJi/6OxgqJbn7bQ==
X-Gm-Gg: ASbGncuWFhwAkg+ntQdvwqjzT/FZoA293r3yUc2VS5cpHAOcjf0MLi+eKpYm24y4BSc
 qX9DuyvfXtW//ug7qtYM5XM1EToEYHstsFcoxa7sD1fIk1nICbfBq92TC88TUiIZK2hOuLsOfsf
 51owfOYnXN3xJAlWuT78gcsVU0Og880Oj9Q1ToQJyXGAxproQjdbChUaVy+KbapRtbALtJhI4Yb
 32ZVgikjTd927psgvoLTLAIfWMyuT2MMaLnJfajKcNCCbeZIWObq4fwwYpt9lAlSRuImGPrWAEs
 P71otoUuZNpc7Y4IUZwVQNE5LC/LN0HzRchipHn4GNE=
X-Google-Smtp-Source: AGHT+IEj8q1ipiZ932fqAHAS/o3/sTBguL2OfKaaWP4srC+MxiiYtVpBZPTZNPhSM/urHBogdwtWKQ==
X-Received: by 2002:a17:90b:4b84:b0:2ee:af31:a7bd with SMTP id
 98e67ed59e1d1-30531f7dd2fmr4500210a91.5.1743259539797; 
 Sat, 29 Mar 2025 07:45:39 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-30516d3e640sm3828916a91.10.2025.03.29.07.45.38
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 29 Mar 2025 07:45:39 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: no error handling on activation scripts
Date: Sat, 29 Mar 2025 23:45:22 +0900
Message-ID: <874izb28vx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::1032;
 envelope-from=maxim.cournoyer@HIDDEN; helo=mail-pj1-x1032.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
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 (/)

Hi,

Currently, every activation gexp added to the activation-service-type
ends up in a script loaded via primitive-load of the main activation
script, which is in turn loaded by the boot script entry point.

This means that raising an exception in the activation scripts may abort
the boot script and thus the boot itself.

It would probably be nicer and more useful to handle and report the
errors, while attempting to continue booting.

-- 
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#77365; 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, 2 Apr 2025 05:45:02 UTC

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