From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +AJ2JVPxlWX3CAAAkFu2QA (envelope-from ) for ; Thu, 04 Jan 2024 00:44:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gAB0H1PxlWVK/QAAe85BDQ (envelope-from ) for ; Thu, 04 Jan 2024 00:44:19 +0100 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=Wl22N2HZ; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704325459; 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: 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=uGbYlMUZC5XZBfrs4k1BDGwszEOnhuCp9j4AYZFpfRo=; b=Lrcpnf6pO8waiz2GNDsYnx2BfjpdFW6YffOhoSL5CtWBx2blnCKFzBQc8glDUWELA2bMZg EdTJo1cOXmlP5AhbX94YfTIokSs3mSB4Cf2tnIcFnZRGMktfv59kQES1Dazl3wPylz4Lpk 6qeR1wYYrgSQOGuMpnqdUYEEUFOdPC3N7G1vntpzjADeB7xYnKHBk0J6YfEe+zo4y65cnX 7oSfnH/55aFOq27o7Pa6J9KqHIiYdnAx/J3QdWB0P2rc4gzgiRYw4Ip2LG5bCdo80eZ/iu iODOufqrggGjKiNklYZFpeIVesoGcsWOVcoEPr1g7E0jgQc0mckjyfEKXPrElw== 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=Wl22N2HZ; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704325459; a=rsa-sha256; cv=none; b=Y9V33d9NZg5D+i+hZo3Ct+/nQKTbaPjNduRlNSSCKt2tWSajUEjP89N3l43dQAghwPg0jC mDRSujeKjkc3r6fFKnAqJoe367lOM+3C8BkTf4+rDxlzhiE6FdiZk5JlPI5VTGdx7eQsYW vOk4w4OGmbw3jYKbGruBnDt6ULP9BUDdoKonnKIfJRVEZvtFkZw/YG1HU/OXAVgXaCdOm+ Ojnq0YdOCUKTcWItQcogsjJRZGwzRbZQNWMSZHwAj9L8jgudq181PoYgA3V3QUnRaW+pMQ vMzI33zbyzKYQ0W93AnY6l6uCeWeGMk2pF0HWkmeVMgAXz6uDO56ih4iVITmVQ== 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 B6DC1510D1 for ; Thu, 4 Jan 2024 00:44:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLAu1-0008O5-Mx; Wed, 03 Jan 2024 18:44:01 -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 ) id 1rLAtz-0008Ni-QH for bug-guix@gnu.org; Wed, 03 Jan 2024 18:44:00 -0500 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 1rLAtz-0007Db-6m for bug-guix@gnu.org; Wed, 03 Jan 2024 18:43:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLAu2-0000E8-6s for bug-guix@gnu.org; Wed, 03 Jan 2024 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#64653: =?UTF-8?Q?=E2=80=98static-networking=E2=80=99?= fails to start Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 Jan 2024 23:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64653 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64653@debbugs.gnu.org Received: via spool by 64653-submit@debbugs.gnu.org id=B64653.1704325387764 (code B ref 64653); Wed, 03 Jan 2024 23:44:02 +0000 Received: (at 64653) by debbugs.gnu.org; 3 Jan 2024 23:43:07 +0000 Received: from localhost ([127.0.0.1]:53346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLAt9-0000CE-BG for submit@debbugs.gnu.org; Wed, 03 Jan 2024 18:43:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLAt5-0000BU-QK for 64653@debbugs.gnu.org; Wed, 03 Jan 2024 18:43:05 -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 ) id 1rLAsx-00073u-5M for 64653@debbugs.gnu.org; Wed, 03 Jan 2024 18:42:55 -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=uGbYlMUZC5XZBfrs4k1BDGwszEOnhuCp9j4AYZFpfRo=; b=Wl22N2HZWG8/jz6W8t+/ zKujIfn8XC6wBo28dj5d37AsyTb3XnpacR8zLW7cFsCBmIfxJDiGd6ZyAmrWNhXuS8CI9zVywmzTZ g/Cc+5GcU4sDeJmULug+1MfrcYa8dGH0vOuM0wJpfZGG5lKNnYJi4RnOWg+QL8mkYEQJkQDWNfjsJ n1s7unjfoaMvCgHe3GS1Jf/tXrPUKbzlvf/76GMB63BCJQwAxm4ItX/76R1cjRs7ZK5EA8w/9HX0o kSIvluPOJiGarxGIfJ76TFojSA8LPEeNBuLCC491VRSuCMRzlnRoiSzCW3P/KbHQmq9Pis2mJz4jJ eh477VxqHIP8Fw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87pm4tuej8.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 15 Jul 2023 22:04:59 +0200") References: <87pm4tuej8.fsf@inria.fr> Date: Thu, 04 Jan 2024 00:42:51 +0100 Message-ID: <87mstmf0g4.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.97 X-Spam-Score: -6.97 X-Migadu-Queue-Id: B6DC1510D1 X-TUID: pR5B2elvasFk Hello! Ludovic Court=C3=A8s skribis: > [ 121.282538] shepherd[1]: Service user-homes started. > [ 121.368316] ipmi_si IPI0001:00: Using irq 10 > [ 121.405790] ipmi_si IPI0001:00: IPMI message handler: Found new BMC (m= an_id: 0x0002a2, prod_id: 0x0100, dev_id: 0x20) > [ 121.419871] shepherd[1]: Exception caught while starting #< 7= f19889012a0>: (wrong-type-arg "port-filename" "Wrong type argument in posit= ion ~A: ~S" (1 #) (#)) > [ 121.420074] shepherd[1]: Service user-homes running with value #t. > [ 121.420218] shepherd[1]: Service networking failed to start. I=E2=80=99m seeing a similar exception in a Hurd VM running shepherd 0.10.3= rc1: --8<---------------cut here---------------start------------->8--- Jan 3 23:13:22 localhost shepherd[1]: Exception caught while starting netw= orking: (wrong-type-arg "port-filename" "Wrong type argument in position ~A= : ~S" (1 #) (#))=20 Jan 3 23:13:22 localhost shepherd[1]: Service networking failed to start.= =20 --8<---------------cut here---------------end--------------->8--- It=E2=80=99s interesting because it suggests that the offending =E2=80=98po= rt-filename=E2=80=99 call comes from =E2=80=98load=E2=80=99, not from the network-setup code bei= ng loaded (here, the /hurd/pfinet translator has been properly set up). Looking at the code in =E2=80=98boot-9.scm=E2=80=99, I *think* we end up ca= lling =E2=80=98primitive-load=E2=80=99; =E2=80=98shepherd=E2=80=99 replaces it wi= th its own (@ (shepherd support) primitive-load*). I managed to grab this backtrace: --8<---------------cut here---------------start------------->8--- Evaluating user expression (catch #t (lambda () (load "/gnu/store/64?")) # = ?). starting '/gnu/store/gn8q7p790a9zdnlciyp1vlncpin366r0-hurd-v0.9.git20230216= /hurd/pfinet "--ipv6" "/servers/socket/26" "--interface" "/dev/eth0" "--add= ress" "10.0.2.15" "--netmask" "255.255.255.0" "--gateway" "10.0.2.2"' In ice-9/boot-9.scm: 142:2 7 (dynamic-wind # ?) In shepherd/support.scm: 486:15 6 (_ #) In ice-9/read.scm: 859:19 5 (read _) In unknown file: 4 (port-filename #) In ice-9/boot-9.scm: 1685:16 3 (raise-exception _ #:continuable? _) 1780:13 2 (_ #<&compound-exception components: (#<&assertion-fail?>) In ice-9/eval.scm: 159:9 1 (_ #(#(#) (# "port-fil?" ?))) In unknown file: 0 (make-stack #t) #t --8<---------------cut here---------------end--------------->8--- So it=E2=80=99s indeed =E2=80=98read=E2=80=99 as called from =E2=80=98primi= tive-load*=E2=80=99 that stumbles upon a closed port. It also happens when loading a file that simply suspends the current fiber via =E2=80=98sleep=E2=80=99 or similar, but only= on the Hurd though. To be continued=E2=80=A6 Ludo=E2=80=99.