GNU logs - #77610, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 07 Apr 2025 16:30:03 +0000
Resent-Message-ID: <handler.77610.B.174404339814789 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 77610 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.174404339814789
          (code B ref -1); Mon, 07 Apr 2025 16:30:03 +0000
Received: (at submit) by debbugs.gnu.org; 7 Apr 2025 16:29:58 +0000
Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u1pME-0003qS-EN
	for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:33086)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u1pMB-0003pK-6e
 for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:55 -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 <yelninei@HIDDEN>)
 id 1u1pLu-0007Uy-5E
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:38 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yelninei@HIDDEN>)
 id 1u1pLr-0000rZ-Om
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:37 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 16D99770595B
 for <bug-guix@HIDDEN>; Mon,  7 Apr 2025 18:29:30 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744043369; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=5p4YSmF0hQjeZfawrNPq00ncxO6o/SEPA2yXAioufLA=;
 b=RzY7HwJ+OzAJZSgt7ya2pC1mUS0cMo0GvpTGNjISYLFYaLImXZQ1RtAOiE7PHVaJ
 GfCHHh54SiZzNCkZzwc4SQeuJM8kPAXq0zXLxRCtQGVPj7No0IqggI94Q12E8a+RohJ
 duaaEA0YZy5BMXBT+KLUivTD98KNXu2Bi1MEgxg9SGzU66UtqFo6R5GW4qW4+BfCdJM
 ANI4eLClx5WYl2aVI7gQDcLoqylpcrBh5cq9czvyHkvFtv9YqlM9Vc4wwl8+KDmpAXD
 kBd7DTmSjx5qUU0CGLt4HFMzl5sOvWhh0uPKnMBoiN6JK+I+eCq4XqfoGZ/WLdZsVKG
 xAnCxREc4g==
Date: Mon, 7 Apr 2025 18:29:29 +0200 (CEST)
From: yelninei@HIDDEN
Message-ID: <ONG4TKn--F-9@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.205.69.213;
 envelope-from=yelninei@HIDDEN; helo=mail.w13.tutanota.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
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.1 (/)

Hi,

today i reconfigured my system and after a reboot I am unable to use the gu=
ix-daemon on a childhurd.


guix build hello -n
guix build: error: failed to connect to `/var/guix/daemon-socket/socket': P=
rotocol error

Offloading:
guix offload: error: failed to connect over SSH to daemon at 'localhost', s=
ocket /var/guix/daemon-socket/socket

Daemon Logs:
socket-activated with 1 socket
unexpected build daemon error: reading from file: Resource temporarily unav=
ailable
Starting the daemon as the root user normally continues to work as before s=
o i suspect the socket activation change is to blame.
Guix commit:=C2=A06af680670bf9055b90e6f8b63c4c2ab7b08e7c56




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: yelninei@HIDDEN
Subject: bug#77610: Acknowledgement (guix-daemon socket activation does
 not work on the hurd)
Message-ID: <handler.77610.B.174404339814789.ack <at> debbugs.gnu.org>
References: <ONG4TKn--F-9@HIDDEN>
X-Gnu-PR-Message: ack 77610
X-Gnu-PR-Package: guix
Reply-To: 77610 <at> debbugs.gnu.org
Date: Mon, 07 Apr 2025 16:30:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 77610 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
77610: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77610
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
References: <ONG4TKn--F-9@HIDDEN>
In-Reply-To: <ONG4TKn--F-9@HIDDEN>
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 09 Apr 2025 10:30:03 +0000
Resent-Message-ID: <handler.77610.B77610.17441945891363 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.17441945891363
          (code B ref 77610); Wed, 09 Apr 2025 10:30:03 +0000
Received: (at 77610) by debbugs.gnu.org; 9 Apr 2025 10:29:49 +0000
Received: from localhost ([127.0.0.1]:37812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2Sgn-0000Lu-Au
	for submit <at> debbugs.gnu.org; Wed, 09 Apr 2025 06:29:49 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213]:35330)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u2Sgk-0000LV-Nd
 for 77610 <at> debbugs.gnu.org; Wed, 09 Apr 2025 06:29:47 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 01E3C77DB7BA
 for <77610 <at> debbugs.gnu.org>; Wed,  9 Apr 2025 12:29:10 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744194549; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=rbr/a+pavC9Dnn1US12mYfIDM5KnzoZx26cN6Fd2UPw=;
 b=vA+wZUl0PUaCy/9UJcoU11bcMRdiLJwKViKkjBntVIzIjEw/BcF7Nha7QLCZT5mP
 ndlLLa0V+Z4Yd9bc6gPht7I+DTB9Zvs6zjmKqHJtsTIqpmEVc9gRzKJIBLhx/Yyxq5d
 ZlKUvWr/y5xtkM5d/bCKNo2CkOWzWyOpyKUZEa5ZXPx8cfnarpg9S8leDEB4KLJrMOZ
 MT2gox90WyyH7NP82Apnx6EJZkG8fLnfd24rfNzMaS9KZ3d7ZBO2wGRyv4INtN/9/Ky
 dz1Mx9yJvcDWssLwZ1Ia6H01kF+XUpB7CskXeu2UI2/wpDSFaXdkocj5ZhLiOPDQORT
 07eIk+xJ8w==
Date: Wed, 9 Apr 2025 12:29:09 +0200 (CEST)
From: yelninei@HIDDEN
Message-ID: <ONLquG3--F-9@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
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.7 (-)

After mentioning this on IRC Ludovic pushed=C2=A08d31cafbdcb818160852a5d1e6=
fc24c1a9c53e41 to the shepherd repo.

I wanted to try this out and reconfigured using the shepherd from this comm=
it as pid1 in the vm (a bit tricky because of help2man).

The first connection still fails in the same way.unexpected build daemon er=
ror: reading from file: Resource temporarily unavailable

A client mentions:
guix build: error: corrupt input while restoring archive from #<closed: fil=
e 2396ea8>

However subsequent connections work.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 15 Apr 2025 16:09:02 +0000
Resent-Message-ID: <handler.77610.B77610.17447333047524 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 77610 <at> debbugs.gnu.org,  yelninei@HIDDEN
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.17447333047524
          (code B ref 77610); Tue, 15 Apr 2025 16:09:02 +0000
Received: (at 77610) by debbugs.gnu.org; 15 Apr 2025 16:08:24 +0000
Received: from localhost ([127.0.0.1]:54125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u4ipj-0001xH-CW
	for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 12:08:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57790)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1u4iph-0001wS-5I
 for 77610 <at> debbugs.gnu.org; Tue, 15 Apr 2025 12:08:21 -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 <ludo@HIDDEN>)
 id 1u4ipb-0003Q5-Lj; Tue, 15 Apr 2025 12:08:15 -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=7TRQzbpVEbGVa++j2UfmzUafj0py4UpZ9Jbj6B9bhXo=; b=a19wdBBWcoEJCs4QERa+
 EuS5Ozfm8ViStNLwmFKxvp/bvI7aAVkZR7AQmLfNpzIJajXixDjrCjDpcKO2IZ5qbX3cpPt0SzCJe
 n9dFTzmICVgbD1Su51NZ7fMKIOOBvdh5XdH9sx+1TcsxXjUWbJ4PR9VkyezbcFqkrI2TISIr71kxt
 AjAQ4ztgD1fsOvicTdPKVsu0GpQMUuVObdRifdjJTG06P4FgJa1W4jG7Rc9IVGFqld5JEq23TQ5Ya
 1Vp+4++KHIaXFhqqBPCjc4gAOaeRWEMhbwm+PTbk72pGyCnmtpc4IqKB6JX5b3tqEoI+pAdENWMAu
 +KqEytQNgCV/4Q==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <ONLquG3--F-9@HIDDEN> (yelninei's message of "Wed, 9 Apr
 2025 12:29:09 +0200 (CEST)")
References: <ONG4TKn--F-9@HIDDEN> <ONLquG3--F-9@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Sextidi 26 Germinal an 233 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Lilas
Date: Tue, 15 Apr 2025 18:07:43 +0200
Message-ID: <87a58he7cg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -2.3 (--)
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 (---)

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

yelninei--- via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> After mentioning this on IRC Ludovic pushed=C2=A08d31cafbdcb818160852a5d1=
e6fc24c1a9c53e41 to the shepherd repo.
>
> I wanted to try this out and reconfigured using the shepherd from this co=
mmit as pid1 in the vm (a bit tricky because of help2man).
>
> The first connection still fails in the same way.unexpected build daemon =
error: reading from file: Resource temporarily unavailable

I looked a bit into this, and I think shepherd is doing the right
working as expected, making the socket blocking before executing
guix-daemon (it=E2=80=99s clear when stracing it on Linux).

So there must be something specific at play on the Hurd.

I tried this snippet (server on one side, client on the other side) and
it works as expected: =E2=80=98accept=E2=80=99 blocks and subsequent read d=
oes not get
EAGAIN.

So I=E2=80=99m at loss here.  Does =E2=80=98tests/systemd.sh=E2=80=99 succe=
ed when ran natively?
(In particular the check added in
8d31cafbdcb818160852a5d1e6fc24c1a9c53e41.)

Thanks,
Ludo=E2=80=99.


--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=non-blocking-hurd.scm

(use-modules (ice-9 match))

(define (blocking-port port)
  "Return PORT after putting it in non-blocking mode."
  (let ((flags (fcntl port F_GETFL)))
    (fcntl port F_SETFL (logand (lognot O_NONBLOCK) flags))
    port))

(let ((sock (socket AF_UNIX (logior SOCK_STREAM SOCK_NONBLOCK) 0)))
  (bind sock AF_UNIX "/tmp/sock")
  (listen sock 10)
  (match (pk 'x (accept (blocking-port sock) SOCK_CLOEXEC)) ;should block
    ((port . _)
     (pk 'read (read port)))))

;; Client:
(let ((sock (socket AF_UNIX (logior SOCK_STREAM) 0)))
  (connect sock AF_UNIX "/tmp/sock")
  (display "hi!\n" sock))

--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 16 Apr 2025 18:09:07 +0000
Resent-Message-ID: <handler.77610.B77610.174482691720345 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174482691720345
          (code B ref 77610); Wed, 16 Apr 2025 18:09:07 +0000
Received: (at 77610) by debbugs.gnu.org; 16 Apr 2025 18:08:37 +0000
Received: from localhost ([127.0.0.1]:41669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u57BY-0005I0-1y
	for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 14:08:36 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213]:36310)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u57BP-0005Gt-1O
 for 77610 <at> debbugs.gnu.org; Wed, 16 Apr 2025 14:08:28 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id DC7E77B478B7
 for <77610 <at> debbugs.gnu.org>; Wed, 16 Apr 2025 20:08:14 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744826894; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
 bh=R9KrqnMhq4IX5U3LjEqdklyy+N9dWTZD149TIfhSW6g=;
 b=nn8NuM5UQ+PcDxrKEmAT+egjEBpqDp7SLarGahmSiGnrTodkqRZpchHOTC+uLyqx
 x1X5voCiumgdoToHYJQv1oIvjn96FPY13k2RgwQHZDrt8VGqf4HK7fKd5Bw3Up0KSnR
 W6Y3eNWRr0YKWx8rAkuVuhbZdqW2n3eohOrxYwNkQxowfHbIe/ZhtgpboTzcQF/DKUE
 6yHRW9ZFAMtAXG/n4ifWzcIShkM8vQ+djmLamX+tA/BGtJPq4dtEYAkEyqXLWzqq6xA
 Y+MhGf4N0vJCX7Zzdse+SN5C3zAWio+fFm9Q5/TKR9TV5IFPzsk5AIn01ZgXqJt43AN
 chytkRyfqw==
Date: Wed, 16 Apr 2025 20:08:14 +0200 (CEST)
From: yelninei@HIDDEN
Message-ID: <ONuQa_2--R-9@HIDDEN>
In-Reply-To: <87a58he7cg.fsf@HIDDEN>
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
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.7 (-)


Hello,

Apr 15, 2025, 16:08 by ludo@HIDDEN:

> yelninei--- via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:
>
>> After mentioning this on IRC Ludovic pushed=C2=A08d31cafbdcb818160852a5d=
1e6fc24c1a9c53e41 to the shepherd repo.
>>
>> I wanted to try this out and reconfigured using the shepherd from this c=
ommit as pid1 in the vm (a bit tricky because of help2man).
>>
>> The first connection still fails in the same way.unexpected build daemon=
 error: reading from file: Resource temporarily unavailable
>>
>
> I looked a bit into this, and I think shepherd is doing the right
> working as expected, making the socket blocking before executing
> guix-daemon (it=E2=80=99s clear when stracing it on Linux).
>
> So there must be something specific at play on the Hurd.
>
> I tried this snippet (server on one side, client on the other side) and
> it works as expected: =E2=80=98accept=E2=80=99 blocks and subsequent read=
 does not get
> EAGAIN.
>
> So I=E2=80=99m at loss here.  Does =E2=80=98tests/systemd.sh=E2=80=99 suc=
ceed when ran natively?
> (In particular the check added in
> 8d31cafbdcb818160852a5d1e6fc24c1a9c53e41.)
>

Yes, it is passing both on 1.0.3 and 1.0.4. The only thing failing now is t=
he system-log test.
As before when using #:lazy-start #f it works as expected which makes the o=
nly difference the timing of the first connection. What would the most mini=
mal guix-daemon client need to look like to trigger the EAGAIN
=C2=A0
I tried to verify that the port is definitly blocking before being passed t=
o guix-daemon and it is. I am very confused.

Do you know of other processes (with not a lot of dependencies) that can be=
 socket activated to try to replicate this with something less complicated =
than guix-daemon?



> Thanks,
> Ludo=E2=80=99.
>
> (use-modules (ice-9 match))
>
> (define (blocking-port port)
> "Return PORT after putting it in non-blocking mode."
> (let ((flags (fcntl port F_GETFL)))
> (fcntl port F_SETFL (logand (lognot O_NONBLOCK) flags))
> port))
>
> (let ((sock (socket AF_UNIX (logior SOCK_STREAM SOCK_NONBLOCK) 0)))
> (bind sock AF_UNIX "/tmp/sock")
> (listen sock 10)
> (match (pk 'x (accept (blocking-port sock) SOCK_CLOEXEC)) ;should block
> ((port . _)
> (pk 'read (read port)))))
>
> ;; Client:
> (let ((sock (socket AF_UNIX (logior SOCK_STREAM) 0)))
> (connect sock AF_UNIX "/tmp/sock")
> (display "hi!\n" sock))
>





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 16 Apr 2025 20:20:02 +0000
Resent-Message-ID: <handler.77610.B77610.174483478714863 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: yelninei@HIDDEN
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174483478714863
          (code B ref 77610); Wed, 16 Apr 2025 20:20:02 +0000
Received: (at 77610) by debbugs.gnu.org; 16 Apr 2025 20:19:47 +0000
Received: from localhost ([127.0.0.1]:42786 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u59EZ-0003rc-8Q
	for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 16:19:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45774)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1u59EW-0003qS-Ed
 for 77610 <at> debbugs.gnu.org; Wed, 16 Apr 2025 16:19:45 -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 <ludo@HIDDEN>)
 id 1u59EN-0000nN-W0; Wed, 16 Apr 2025 16:19:38 -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=oyM7bJr8IIj7E5qTaZc98RIs9MapBA69gjfYlwGmyBY=; b=MJpBf7Xgg4ZO926EWMS8
 XKRtK2wJxH3knJrTLv0vtBPuZG/v2nxgq1TibOsJ7S59DITVLg+WtU110qIGIM4HOt+xEf8wKUtuB
 Y2WU4K2li4kIgVV4N2ezf8YzqbFrESV6o/Xr3HIJQNoejtzP0ZHWp9C9MYdMj/xpUGxTVZAxAyHm5
 PISDl7p910Xl4r91mdYPwSm6AD6UCMdZCRuARSHmx7yHVpzR6lOyQT3KjTNqsMVRFu+ybr/RmbB5C
 e+6MMvzLzKTio3vefbqJlqy+heR+NCvgcGkjG+VLZDk0Gln4bCgHRLxZoRF4aNsjcmjY6ne3sghAs
 7NB3HCfgRkuLHg==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <ONuQa_2--R-9@HIDDEN> (yelninei@HIDDEN's message of
 "Wed, 16 Apr 2025 20:08:14 +0200 (CEST)")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Septidi 27 Germinal an 233 de la =?UTF-8?Q?R=C3=A9volution,?= jour de =?UTF-8?Q?l'An=C3=A9mone?=
Date: Wed, 16 Apr 2025 22:19:17 +0200
Message-ID: <87h62n7tbu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
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,

yelninei@HIDDEN writes:

>> So I=E2=80=99m at loss here.  Does =E2=80=98tests/systemd.sh=E2=80=99 su=
cceed when ran natively?
>> (In particular the check added in
>> 8d31cafbdcb818160852a5d1e6fc24c1a9c53e41.)
>>
>
> Yes, it is passing both on 1.0.3 and 1.0.4. The only thing failing now is=
 the system-log test.

Intriguing.

> As before when using #:lazy-start #f it works as expected which makes
> the only difference the timing of the first connection. What would the
> most minimal guix-daemon client need to look like to trigger the
> EAGAIN
> =C2=A0
> I tried to verify that the port is definitly blocking before being passed=
 to guix-daemon and it is. I am very confused.
>
> Do you know of other processes (with not a lot of dependencies) that can =
be socket activated to try to replicate this with something less complicate=
d than guix-daemon?

Well there=E2=80=99s =E2=80=98guix publish=E2=80=99, and otherwise the exam=
ples from
=E2=80=98tests/systemd.sh=E2=80=99 (following =E2=80=98define %command=E2=
=80=99).

Otherwise we could mimic it by writing a C program that that opens a
SOCK_NONBLOCK socket, binds + listens + select(2) until something
happens, then calls fcntl(2) to clear the O_NONBLOCK flag, and then
forks + execs and call accept(2) in the child process.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 18 Apr 2025 08:23:08 +0000
Resent-Message-ID: <handler.77610.B77610.174496456113604 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174496456113604
          (code B ref 77610); Fri, 18 Apr 2025 08:23:08 +0000
Received: (at 77610) by debbugs.gnu.org; 18 Apr 2025 08:22:41 +0000
Received: from localhost ([127.0.0.1]:49634 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u5gza-0003Wg-TZ
	for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 04:22:39 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213]:37324)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u5gyz-0003QY-R8
 for 77610 <at> debbugs.gnu.org; Fri, 18 Apr 2025 04:22:05 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id EF5CE7C036A0
 for <77610 <at> debbugs.gnu.org>; Fri, 18 Apr 2025 10:21:20 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744964480; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
 bh=fwNR/stb6li5Skq0YwSe1Km5v7XEdVitQc3SOodr+CY=;
 b=SX4knPFkcoxP2zt6fu/Ee6YsVtAjnu23oFs2p1ZLIPumfj9kDyMKmDDO5vr2DyYg
 8/bPM3shoz84uR3KOu0bRVORxd8rXO48ipW9rpCCvsMJfIDrL/WQ4S6w84tGE1yGLzg
 C5mdHoIT2KI5j5XwxlD9ytKOHT1YjZj6AwssNsqzR0xxJG6zD+cMxIbqFNKAQyaMB8l
 L+SLLMPKdcsOo6IFae4duF//tsFDezERee3IGaQf4mBGsBdCqVxjN1iJGsdxWcfFbXm
 go6CpPifyM6NAgWgL6d71hliu0curkK8pOfZoYnuvIbUcnIngR5cl96noHgW976T/9B
 fmUrJBwXhg==
Date: Fri, 18 Apr 2025 10:21:20 +0200 (GMT+02:00)
From: yelninei@HIDDEN
Message-ID: <OO6zDvS--F-9@HIDDEN>
In-Reply-To: <87h62n7tbu.fsf@HIDDEN>
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello, Apr 16, 2025, 20:19 by ludo@HIDDEN: > Well =?UTF-8?Q?there=E2=80=99s?=
    =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?publish=E2=80=99,?= and otherwise the examples from > =?UTF-8?Q?=E2=80=98tests/systemd.sh=E2=80=99?=
    (following =?UTF-8?Q?=E2=80=98define_?= =?UTF-8?Q?%command=E2=80=99?=). > > Otherwise we could mimic it by writing
    a C program that that opens [...] 
 
 Content analysis details:   (2.0 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  1.9 URIBL_ABUSE_SURBL      Contains an URL listed in the ABUSE SURBL
                             blocklist
                             [URIs: systemd.sh]
  0.0 URIBL_PH_SURBL         Contains an URL listed in the PH SURBL blocklist
                             [URIs: systemd.sh]
  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE:
                             The query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                             [185.205.69.213 listed in sa-accredit.habeas.com]
  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The
                             query to Validity was blocked.  See
                             https://knowledge.validity.com/hc/en-us/articles/20961730681243
                              for more information.
                            [185.205.69.213 listed in bl.score.senderscore.com]
  0.0 RCVD_IN_MSPIKE_H5      RBL: Excellent reputation (+5)
                             [185.205.69.213 listed in wl.mailspike.net]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
                             low trust
                             [185.205.69.213 listed in list.dnswl.org]
  0.1 URIBL_SBL_A            Contains URL's A record listed in the Spamhaus SBL
                             blocklist
                             [URIs: systemd.sh]
  0.6 URIBL_SBL              Contains an URL's NS IP listed in the Spamhaus SBL
                             blocklist
                             [URIs: systemd.sh]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
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 (+)

Hello,

Apr 16, 2025, 20:19 by ludo@HIDDEN:

> Well there=E2=80=99s =E2=80=98guix publish=E2=80=99, and otherwise the ex=
amples from
> =E2=80=98tests/systemd.sh=E2=80=99 (following =E2=80=98define %command=E2=
=80=99).
>
> Otherwise we could mimic it by writing a C program that that opens a
> SOCK_NONBLOCK socket, binds + listens + select(2) until something
> happens, then calls fcntl(2) to clear the O_NONBLOCK flag, and then
> forks + execs and call accept(2) in the child process.
>
> Ludo=E2=80=99.
>
I tested guix-publish and that had no issues.

Some checks I did yesterday with guix-dameon:
- Shepherd is passing a blocking socket
- The "fdSocket" in "acceptConnection" is always blocking.
- the "remote" socket in "acceptConnection" is O_NONBLOCK on the first conn=
ection only.
- Then also the "from.fd" socket in=C2=A0 "processConnection" is O_NONBLOCK=
 on the first connectionThis then causes EAGAIN on trying to read the clien=
tVersion.

On linux none of this is an issue.
Adding the same check as for the fd 3 socket=C2=A0 for O_NONBLOCK to the "c=
onnection" socket after accept=C2=A0 to tests/systemd.sh passes on Linux bu=
t causes a failure on the Hurd.

Is glibc accept doing something weird?
I am struggling to understand how the first connection would be any differe=
nt than subsequent ones (and only in the #:lazy-start? #t case)

I am unsure what to do about this because shepherd seems to do everything c=
orrectly. I saw that ci.g.g.o has started to build i586-gnu substitutes (in=
 particular gcc-final) but if you are restarting the builders more aggressi=
vely now then each first build will fail because of this and idk if cuirass=
 can reschedule builds on such failures.

Maybe the easiest is to to expose the #:lazy-start? option for now and disa=
ble it for guix-daemon in %base-services/hurd ?











Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 18 Apr 2025 09:43:05 +0000
Resent-Message-ID: <handler.77610.B77610.17449693662677 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: yelninei@HIDDEN
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.17449693662677
          (code B ref 77610); Fri, 18 Apr 2025 09:43:05 +0000
Received: (at 77610) by debbugs.gnu.org; 18 Apr 2025 09:42:46 +0000
Received: from localhost ([127.0.0.1]:49727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u5iF9-0000gk-21
	for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 05:42:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40350)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1u5iF4-0000fB-Ft
 for 77610 <at> debbugs.gnu.org; Fri, 18 Apr 2025 05:42:40 -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 <ludo@HIDDEN>)
 id 1u5iEy-0002yI-P8; Fri, 18 Apr 2025 05:42:32 -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=ZNqACZGhCaVU3zfa0ED/X0nCkq03FpE6qP0uBXN2yLs=; b=Rv0m8ISd9KK+gwRRu76+
 ZVN6b0Tx+q/ZLtrjMTwUphVCYmOqt023cXCOocBYvWba+WHvmYJTQg5elPwXH1V1CXTedqQWuNlWl
 keqCdxH5H9+Al07M/j4kerQefkFTw3RoKnmVqdGQstDa4qQf8sD+nSsTKda0+wiHwwqT0mfIBg+6C
 C04rALt27Z8N3woeLipB0uOy7KxtNWcJo5E8EfESN3aEL66lK91gdvVP0YD+48Nx4tYyhaxI8aLgD
 sBqPOsJ/IFC2ICe8GLrTNv2Yu1TsuKDOJFauih5VfAHxv8nBBBelIdqCiKOcXpmFRTFsVJLasNqzS
 QAut5R/G5j95Bw==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <OO6zDvS--F-9@HIDDEN> (yelninei@HIDDEN's message of
 "Fri, 18 Apr 2025 10:21:20 +0200 (GMT+02:00)")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Nonidi 29 Germinal an 233 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Myrtille
Date: Fri, 18 Apr 2025 11:42:17 +0200
Message-ID: <87v7r1yfeu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.4 (/)
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.6 (/)

Hi,

yelninei@HIDDEN writes:

> I tested guix-publish and that had no issues.

You mean the first =E2=80=98wget -O =E2=80=A6=E2=80=99 passes?

> Some checks I did yesterday with guix-dameon:
> - Shepherd is passing a blocking socket
> - The "fdSocket" in "acceptConnection" is always blocking.
> - the "remote" socket in "acceptConnection" is O_NONBLOCK on the first co=
nnection only.

Looking at =E2=80=98accept4.c=E2=80=99 in libc, the only way =E2=80=98remot=
e=E2=80=99 can be O_NONBLOCK
is if:

  1. =E2=80=98accept4=E2=80=99 is passed SOCK_NONBLOCK, but that=E2=80=99s =
not the case here
     (see =E2=80=98accept.c=E2=80=99);

  2. =E2=80=98__socket_accept=E2=80=99 returns a O_NONBLOCK socket, which w=
ould be a bug
     in the server, pflocal.

At first sight =E2=80=98S_io_set_all_openmodes=E2=80=99 in pflocal does the=
 job and
=E2=80=98S_socket_accept=E2=80=99 honors those flags.

> Adding the same check as for the fd 3 socket=C2=A0 for O_NONBLOCK to the
> "connection" socket after accept=C2=A0 to tests/systemd.sh passes on Linux
> but causes a failure on the Hurd.

So we have a reproducer.

Could you pass it on to bug-hurd? :-)  It may be easier if the whole
thing is in C.

> I am unsure what to do about this because shepherd seems to do
> everything correctly. I saw that ci.g.g.o has started to build
> i586-gnu substitutes (in particular gcc-final) but if you are
> restarting the builders more aggressively now then each first build
> will fail because of this and idk if cuirass can reschedule builds on
> such failures.

Yeah, it=E2=80=99s not great.  Those will have to be restarted manually I=
=E2=80=99m
afraid, but most of the time anybody can click on the =E2=80=9CRestart=E2=
=80=9D button
in Cuirass.

> Maybe the easiest is to to expose the #:lazy-start? option for now and di=
sable it for guix-daemon in %base-services/hurd ?

Hmm maybe.  Let=E2=80=99s first figure out if this is Hurd bug.

Thanks for investigating!

Ludo=E2=80=99.




Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: bug#77610: closed (guix-daemon socket activation does not work on
 the hurd)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.77610.D77610.174724224618455.ackdone <at> debbugs.gnu.org>
References: <874ixn18m0.fsf@HIDDEN> <ONG4TKn--F-9@HIDDEN>
X-Gnu-PR-Message: closed 77610
X-Gnu-PR-Package: guix
Date: Wed, 14 May 2025 17:05:09 +0000
Content-Type: multipart/mixed; boundary="----------=_1747242309-18749-0"

This is a multi-part message in MIME format...

------------=_1747242309-18749-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Wed, 14 May 2025 18:04:55 +0200
with message-id <874ixn18m0.fsf@HIDDEN>
and subject line Re: bug#77610: guix-daemon socket activation does not work=
 on the hurd
has caused the debbugs.gnu.org bug report #77610,
regarding guix-daemon socket activation does not work on the hurd
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)


--=20
77610: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77610
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1747242309-18749-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 7 Apr 2025 16:29:58 +0000
Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u1pME-0003qS-EN
	for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:33086)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u1pMB-0003pK-6e
 for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:55 -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 <yelninei@HIDDEN>)
 id 1u1pLu-0007Uy-5E
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:38 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yelninei@HIDDEN>)
 id 1u1pLr-0000rZ-Om
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:37 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 16D99770595B
 for <bug-guix@HIDDEN>; Mon,  7 Apr 2025 18:29:30 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744043369; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=5p4YSmF0hQjeZfawrNPq00ncxO6o/SEPA2yXAioufLA=;
 b=RzY7HwJ+OzAJZSgt7ya2pC1mUS0cMo0GvpTGNjISYLFYaLImXZQ1RtAOiE7PHVaJ
 GfCHHh54SiZzNCkZzwc4SQeuJM8kPAXq0zXLxRCtQGVPj7No0IqggI94Q12E8a+RohJ
 duaaEA0YZy5BMXBT+KLUivTD98KNXu2Bi1MEgxg9SGzU66UtqFo6R5GW4qW4+BfCdJM
 ANI4eLClx5WYl2aVI7gQDcLoqylpcrBh5cq9czvyHkvFtv9YqlM9Vc4wwl8+KDmpAXD
 kBd7DTmSjx5qUU0CGLt4HFMzl5sOvWhh0uPKnMBoiN6JK+I+eCq4XqfoGZ/WLdZsVKG
 xAnCxREc4g==
Date: Mon, 7 Apr 2025 18:29:29 +0200 (CEST)
From: yelninei@HIDDEN
To: bug-guix@HIDDEN
Message-ID: <ONG4TKn--F-9@HIDDEN>
Subject: guix-daemon socket activation does not work on the hurd
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.205.69.213;
 envelope-from=yelninei@HIDDEN; helo=mail.w13.tutanota.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
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.1 (/)

Hi,

today i reconfigured my system and after a reboot I am unable to use the gu=
ix-daemon on a childhurd.


guix build hello -n
guix build: error: failed to connect to `/var/guix/daemon-socket/socket': P=
rotocol error

Offloading:
guix offload: error: failed to connect over SSH to daemon at 'localhost', s=
ocket /var/guix/daemon-socket/socket

Daemon Logs:
socket-activated with 1 socket
unexpected build daemon error: reading from file: Resource temporarily unav=
ailable
Starting the daemon as the root user normally continues to work as before s=
o i suspect the socket activation change is to blame.
Guix commit:=C2=A06af680670bf9055b90e6f8b63c4c2ab7b08e7c56



------------=_1747242309-18749-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 77610-done) by debbugs.gnu.org; 14 May 2025 17:04:06 +0000
Received: from localhost ([127.0.0.1]:44755 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFFWX-0004na-Tc
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:06 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:37290)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uFFWR-0004m7-Qq
 for 77610-done <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:00 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 0B385E33;
 Wed, 14 May 2025 19:03:54 +0200 (CEST)
X-Virus-Scanned: Debian amavis at hera.aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP
 id engkMYAC7nBF; Wed, 14 May 2025 19:03:52 +0200 (CEST)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id A4D018A9;
 Wed, 14 May 2025 19:03:52 +0200 (CEST)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: yelninei@HIDDEN
Subject: Re: bug#77610: guix-daemon socket activation does not work on the hurd
In-Reply-To: <87v7r1yfeu.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Fri, 18 Apr 2025 11:42:17 +0200")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN>
Date: Wed, 14 May 2025 18:04:55 +0200
Message-ID: <874ixn18m0.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: 0.7 (/)
X-Debbugs-Envelope-To: 77610-done
Cc: 77610-done <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: -0.3 (/)

For the record, this issue is now fixed upstream:

  https://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=3D029ab7d7b38c=
76ba14c24fcbf526ccef29af9e88
  https://lists.gnu.org/archive/html/bug-hurd/2025-05/msg00016.html

Closing!

Ludo=E2=80=99.


------------=_1747242309-18749-0--


Message sent:


MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: yelninei@HIDDEN
Subject: bug#77610: closed (Re: bug#77610: guix-daemon socket activation
 does not work on the hurd)
Message-ID: <handler.77610.D77610.174724224618455.notifdone <at> debbugs.gnu.org>
References: <874ixn18m0.fsf@HIDDEN> <ONG4TKn--F-9@HIDDEN>
X-Gnu-PR-Message: they-closed 77610
X-Gnu-PR-Package: guix
Reply-To: 77610 <at> debbugs.gnu.org
Date: Wed, 14 May 2025 17:05:09 +0000
Content-Type: multipart/mixed; boundary="----------=_1747242309-18749-1"

This is a multi-part message in MIME format...

------------=_1747242309-18749-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your bug report

#77610: guix-daemon socket activation does not work on the hurd

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77610 <at> debbugs.gnu.org.

--=20
77610: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77610
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

------------=_1747242309-18749-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 77610-done) by debbugs.gnu.org; 14 May 2025 17:04:06 +0000
Received: from localhost ([127.0.0.1]:44755 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFFWX-0004na-Tc
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:06 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:37290)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uFFWR-0004m7-Qq
 for 77610-done <at> debbugs.gnu.org; Wed, 14 May 2025 13:04:00 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 0B385E33;
 Wed, 14 May 2025 19:03:54 +0200 (CEST)
X-Virus-Scanned: Debian amavis at hera.aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP
 id engkMYAC7nBF; Wed, 14 May 2025 19:03:52 +0200 (CEST)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id A4D018A9;
 Wed, 14 May 2025 19:03:52 +0200 (CEST)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: yelninei@HIDDEN
Subject: Re: bug#77610: guix-daemon socket activation does not work on the hurd
In-Reply-To: <87v7r1yfeu.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Fri, 18 Apr 2025 11:42:17 +0200")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN>
Date: Wed, 14 May 2025 18:04:55 +0200
Message-ID: <874ixn18m0.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: 0.7 (/)
X-Debbugs-Envelope-To: 77610-done
Cc: 77610-done <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: -0.3 (/)

For the record, this issue is now fixed upstream:

  https://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=3D029ab7d7b38c=
76ba14c24fcbf526ccef29af9e88
  https://lists.gnu.org/archive/html/bug-hurd/2025-05/msg00016.html

Closing!

Ludo=E2=80=99.


------------=_1747242309-18749-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by debbugs.gnu.org; 7 Apr 2025 16:29:58 +0000
Received: from localhost ([127.0.0.1]:56549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u1pME-0003qS-EN
	for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:33086)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1u1pMB-0003pK-6e
 for submit <at> debbugs.gnu.org; Mon, 07 Apr 2025 12:29:55 -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 <yelninei@HIDDEN>)
 id 1u1pLu-0007Uy-5E
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:38 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yelninei@HIDDEN>)
 id 1u1pLr-0000rZ-Om
 for bug-guix@HIDDEN; Mon, 07 Apr 2025 12:29:37 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 16D99770595B
 for <bug-guix@HIDDEN>; Mon,  7 Apr 2025 18:29:30 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744043369; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
 bh=5p4YSmF0hQjeZfawrNPq00ncxO6o/SEPA2yXAioufLA=;
 b=RzY7HwJ+OzAJZSgt7ya2pC1mUS0cMo0GvpTGNjISYLFYaLImXZQ1RtAOiE7PHVaJ
 GfCHHh54SiZzNCkZzwc4SQeuJM8kPAXq0zXLxRCtQGVPj7No0IqggI94Q12E8a+RohJ
 duaaEA0YZy5BMXBT+KLUivTD98KNXu2Bi1MEgxg9SGzU66UtqFo6R5GW4qW4+BfCdJM
 ANI4eLClx5WYl2aVI7gQDcLoqylpcrBh5cq9czvyHkvFtv9YqlM9Vc4wwl8+KDmpAXD
 kBd7DTmSjx5qUU0CGLt4HFMzl5sOvWhh0uPKnMBoiN6JK+I+eCq4XqfoGZ/WLdZsVKG
 xAnCxREc4g==
Date: Mon, 7 Apr 2025 18:29:29 +0200 (CEST)
From: yelninei@HIDDEN
To: bug-guix@HIDDEN
Message-ID: <ONG4TKn--F-9@HIDDEN>
Subject: guix-daemon socket activation does not work on the hurd
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.205.69.213;
 envelope-from=yelninei@HIDDEN; helo=mail.w13.tutanota.de
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
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.1 (/)

Hi,

today i reconfigured my system and after a reboot I am unable to use the gu=
ix-daemon on a childhurd.


guix build hello -n
guix build: error: failed to connect to `/var/guix/daemon-socket/socket': P=
rotocol error

Offloading:
guix offload: error: failed to connect over SSH to daemon at 'localhost', s=
ocket /var/guix/daemon-socket/socket

Daemon Logs:
socket-activated with 1 socket
unexpected build daemon error: reading from file: Resource temporarily unav=
ailable
Starting the daemon as the root user normally continues to work as before s=
o i suspect the socket activation change is to blame.
Guix commit:=C2=A06af680670bf9055b90e6f8b63c4c2ab7b08e7c56



------------=_1747242309-18749-1--


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 14 May 2025 19:26:02 +0000
Resent-Message-ID: <handler.77610.B77610.174725070513805 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174725070513805
          (code B ref 77610); Wed, 14 May 2025 19:26:02 +0000
Received: (at 77610) by debbugs.gnu.org; 14 May 2025 19:25:05 +0000
Received: from localhost ([127.0.0.1]:45506 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFHiy-0003aP-7R
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 15:25:04 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213]:57584)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1uFHis-0003YT-QA
 for 77610 <at> debbugs.gnu.org; Wed, 14 May 2025 15:25:02 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 4AFB687E2FF2
 for <77610 <at> debbugs.gnu.org>; Wed, 14 May 2025 21:24:22 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1747250662; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
 bh=ldE8kyoawP+rlaEPfpDAtOLHgakKQmqXJJ0E0SlPAy4=;
 b=ev3akgMGBIXPpk7/FlnigHARm3kYXhoQcbpGklUwUkdeYTnoNawBaepXsr7RmwIB
 H+ynSBW4hJe/Z2otsWYwtwWfC2is5pJeVWEWinxe/sx0pAXrFGRav39xewBSYfYnGjx
 4fxJo5Ni0sgvKyGF4dTc1F28Qi0xSc1Lutu9MIRpoxvRo+Jzu3m6N6YfAKWxFmE9Rx2
 Pr73Zmq+xCl3FUhwJt+BZcckxU8xQaMuAhCPUciVR6Ve7DJKCnBoiIJzPOuYCa3G/Ua
 acTFQGXIjeWyJDI4GEOdGzzs/XBD1+9y+gXE3EFCrP99CCAv5atlrd87D+VIcev3Olm
 RLrWiUi4vQ==
Date: Wed, 14 May 2025 21:24:22 +0200 (CEST)
From: yelninei@HIDDEN
Message-ID: <OQFFJfe--F-9@HIDDEN>
In-Reply-To: <874ixn18m0.fsf@HIDDEN>
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN> <874ixn18m0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
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.7 (-)

Hi Ludo,

Thank you again for finding the cause.Could we add your patch to our hurd e=
ither for master or core-packages-team as it will be a while until it is av=
ailable in a tagged snapshot.It would fix the hurd ci builders randomly fai=
ling, the childhurd system test and the minor annoyance that the manual off=
load is failing.

From what I can see only adding it to hurd (and not the headers) should not=
 cause a rebootstrap.=C2=A0
May 14, 2025, 17:03 by ludo@HIDDEN:

> For the record, this issue is now fixed upstream:
>
>  https://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=3D029ab7d7b38=
c76ba14c24fcbf526ccef29af9e88
>  https://lists.gnu.org/archive/html/bug-hurd/2025-05/msg00016.html
>
> Closing!
>
> Ludo=E2=80=99.
>





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 14 May 2025 21:52:02 +0000
Resent-Message-ID: <handler.77610.B77610.174725949822297 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: yelninei@HIDDEN
Cc: 77610 <at> debbugs.gnu.org
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174725949822297
          (code B ref 77610); Wed, 14 May 2025 21:52:02 +0000
Received: (at 77610) by debbugs.gnu.org; 14 May 2025 21:51:38 +0000
Received: from localhost ([127.0.0.1]:46793 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFK0m-0005nI-4E
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 17:51:37 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44308)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uFK0I-0005ih-Ki
 for 77610 <at> debbugs.gnu.org; Wed, 14 May 2025 17:51:07 -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 <ludo@HIDDEN>)
 id 1uFK0C-0007wG-Fl; Wed, 14 May 2025 17:51:00 -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=8BpUewszrlT60ysE4bhTqi4G4mZr7S6qZEGyAe9TEAg=; b=eqcF62INppxU2hBDv3AZ
 XRkhBXDw9+IeNuBLSiNCksZauNnImZyE241c0vuCood60syQ8FZQ6jSVxct3x5Qn0iXvB8Sa+OjBG
 iujomXA+HUdabcXW/bcinp0u81ml1z7tWj8D97NrEmRgwxz+WJAPgadQJAtBJeZD0lCEYn1nwKLIC
 No48TE7L6C7z36Tu+apFWZalErRELfy/08d8rdsLnPuiYchiL9N8Tu2Qp6vPWbVFOZ/dunYzcwzDB
 FEPa56pxj1IFy9rzUIxT2yHmk/Z+KO7Kg/Zd6TG7cQdNQ8zKSGlo9p/5jEGJpLqwS+mXflvUXWfPR
 YoBuB5mKDriOHQ==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <OQFFJfe--F-9@HIDDEN> (yelninei@HIDDEN's message of
 "Wed, 14 May 2025 21:24:22 +0200 (CEST)")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN>
 <874ixn18m0.fsf@HIDDEN> <OQFFJfe--F-9@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Quintidi 25 =?UTF-8?Q?Flor=C3=A9al?= an 233 de la
 =?UTF-8?Q?R=C3=A9volution,?= jour de la Carpe
Date: Wed, 14 May 2025 23:48:45 +0200
Message-ID: <87v7q2yibm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
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 yelninei,

yelninei@HIDDEN writes:

> Thank you again for finding the cause.Could we add your patch to our
> hurd either for master or core-packages-team as it will be a while
> until it is available in a tagged snapshot.It would fix the hurd ci
> builders randomly failing, the childhurd system test and the minor
> annoyance that the manual offload is failing.
>
> From what I can see only adding it to hurd (and not the headers) should n=
ot cause a rebootstrap.=C2=A0

Yes, sounds like a good idea.  Do you want to give it a try?

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: yelninei@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 15 May 2025 08:20:02 +0000
Resent-Message-ID: <handler.77610.B77610.174729716018860 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 77610 <at> debbugs.gnu.org, Janneke Nieuwenhuizen <janneke@HIDDEN>
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174729716018860
          (code B ref 77610); Thu, 15 May 2025 08:20:02 +0000
Received: (at 77610) by debbugs.gnu.org; 15 May 2025 08:19:20 +0000
Received: from localhost ([127.0.0.1]:50808 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFToG-0004u6-60
	for submit <at> debbugs.gnu.org; Thu, 15 May 2025 04:19:20 -0400
Received: from mail.w13.tutanota.de ([185.205.69.213]:41186)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <yelninei@HIDDEN>)
 id 1uFToA-0004to-Sj
 for 77610 <at> debbugs.gnu.org; Thu, 15 May 2025 04:19:16 -0400
Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10])
 by mail.w13.tutanota.de (Postfix) with ESMTP id 91A76881805D
 for <77610 <at> debbugs.gnu.org>; Thu, 15 May 2025 10:18:38 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1747297118; 
 s=s1; d=tutamail.com;
 h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender;
 bh=X1ZWQZewSTxQxSvXCml9GRKy6G/21JR9tNR7qNp25Z0=;
 b=ZwuipCo22lxmQORd3G2c9OOaqF/BB7yOFz56VtFgUlKNMk8ltfVQ4q0MdPySvVLF
 mktu0o0eWsWu1juLYzDDs/0rFBujF5bxrwr09dG811NMZaX+HBeAVuqD9E2sE8eB6ry
 5+lvE/DLUy0pd9ztmpGvILKUvZDg+eWKVz9sudDsKbab13OVabpdDZQDisleRnngjfo
 ZCrDBxU7BrAnnaZZbAPKm9tUqN3QgfTlkDvBEh/pflAdVIJFrjHBE9zClpGhYSKPChf
 C/eb1Q2m63xCfZq+f8juvH40QWj1Jspv9iat+Ao4hKbPLY+MMNXc7xanKgFf/mmYoJK
 q1zy5LMe/A==
Date: Thu, 15 May 2025 10:18:38 +0200 (CEST)
From: yelninei@HIDDEN
Message-ID: <OQI0C9G--F-9@HIDDEN>
In-Reply-To: <87v7q2yibm.fsf@HIDDEN>
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN> <874ixn18m0.fsf@HIDDEN>
 <OQFFJfe--F-9@HIDDEN> <87v7q2yibm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; 
 boundary="----=_Part_114301_919680049.1747297118591"
X-Spam-Score: -0.7 (/)
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.7 (-)

------=_Part_114301_919680049.1747297118591
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello Ludo,

Something like this? I called the patch hurd-socket-activation.patch to ind=
icate what it is addressing. Do you have a better suggestion?

I added it to master but this will create a minor merge conflict with the h=
urd update on core-packages-team.

May 14, 2025, 21:51 by ludo@HIDDEN:

> Hi yelninei,
>
> yelninei@HIDDEN writes:
>
>> Thank you again for finding the cause.Could we add your patch to our
>> hurd either for master or core-packages-team as it will be a while
>> until it is available in a tagged snapshot.It would fix the hurd ci
>> builders randomly failing, the childhurd system test and the minor
>> annoyance that the manual offload is failing.
>>
>> From what I can see only adding it to hurd (and not the headers) should =
not cause a rebootstrap.=C2=A0
>>
>
> Yes, sounds like a good idea.  Do you want to give it a try?
>
> Thanks,
> Ludo=E2=80=99.
>


------=_Part_114301_919680049.1747297118591
Content-Type: text/x-patch; charset=UTF-8; 
	name=0001-gnu-hurd-Fix-service-socket-activation.patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; 
	filename=0001-gnu-hurd-Fix-service-socket-activation.patch

From 9119ca37613df139db80e36b821a54c137a56037 Mon Sep 17 00:00:00 2001
Message-ID: <9119ca37613df139db80e36b821a54c137a56037.1747296042.git.yelnin=
ei@HIDDEN>
From: Yelninei <yelninei@HIDDEN>
Date: Thu, 15 May 2025 07:51:43 +0000
Subject: [PATCH] gnu: hurd: Fix service socket activation.

Fixes https://issues.guix.gnu.org/77610.

* gnu/packages/patches/hurd-socket-activation.patch: New patch
* gnu/packages/hurd.scm (hurd): Add it.
* gnu/local.mk: Register it.

Change-Id: Iff7f30099ffeb014aaacdc3a19bd7930795904b6
---
 gnu/local.mk                                  |  1 +
 gnu/packages/hurd.scm                         |  1 +
 .../patches/hurd-socket-activation.patch      | 44 +++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 gnu/packages/patches/hurd-socket-activation.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index dfafe8b8953..5dc3be1927f 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1591,6 +1591,7 @@ dist_patch_DATA =3D=09=09=09=09=09=09\
   %D%/packages/patches/hurd-64bit.patch=09=09=09=09\
   %D%/packages/patches/hurd-refcounts-assert.patch=09=09\
   %D%/packages/patches/hurd-rumpdisk-no-hd.patch=09=09\
+  %D%/packages/patches/hurd-socket-activation.patch=09=09\
   %D%/packages/patches/hurd-startup.patch=09=09=09\
   %D%/packages/patches/hwloc-1-test-btrfs.patch=09=09=09\
   %D%/packages/patches/i7z-gcc-10.patch=09=09=09=09\
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 3b02ed00d1a..443001fbb7b 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -319,6 +319,7 @@ (define-public hurd
               (patches (search-patches "hurd-refcounts-assert.patch"
                                        "hurd-rumpdisk-no-hd.patch"
                                        "hurd-startup.patch"
+                                       "hurd-socket-activation.patch"
                                        "hurd-64bit.patch"))))
     (version (package-version hurd-headers))
     (arguments
diff --git a/gnu/packages/patches/hurd-socket-activation.patch b/gnu/packag=
es/patches/hurd-socket-activation.patch
new file mode 100644
index 00000000000..e204a90d3aa
--- /dev/null
+++ b/gnu/packages/patches/hurd-socket-activation.patch
@@ -0,0 +1,44 @@
+From 029ab7d7b38c76ba14c24fcbf526ccef29af9e88 Mon Sep 17 00:00:00 2001
+From: =3D?UTF-8?q?Ludovic=3D20Court=3DC3=3DA8s?=3D <ludo@HIDDEN>
+Date: Thu, 8 May 2025 23:11:36 +0200
+Subject: pflocal: Do not inherit PFLOCAL_SOCK_NONBLOCK across connect/acce=
pt.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=3DUTF-8
+Content-Transfer-Encoding: 8bit
+
+Previously, =E2=80=98accept=E2=80=99 would return an O_NONBLOCK socket if =
the listening
+socket was O_NONBLOCK at the time the connection was made.  With this
+change, =E2=80=98accept=E2=80=99 always returns a socket where O_NONBLOCK =
is cleared.
+---
+ pflocal/sock.c | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/pflocal/sock.c b/pflocal/sock.c
+index 90c618e..6bc061d 100644
+--- a/pflocal/sock.c
++++ b/pflocal/sock.c
+@@ -1,6 +1,6 @@
+ /* Sock functions
+=20
+-   Copyright (C) 1995,96,2000,01,02, 2005 Free Software Foundation, Inc.
++   Copyright (C) 1995,96,2000,01,02, 2005, 2025 Free Software Foundation,=
 Inc.
+    Written by Miles Bader <miles@HIDDEN>
+=20
+    This program is free software; you can redistribute it and/or
+@@ -167,8 +167,11 @@ sock_clone (struct sock *template, struct sock **sock=
)
+   if (err)
+     return err;
+=20
+-  /* Copy some properties from TEMPLATE.  */
+-  (*sock)->flags =3D template->flags & ~PFLOCAL_SOCK_CONNECTED;
++  /* Copy some properties from TEMPLATE.  Clear O_NONBLOCK because the so=
cket
++     returned by 'accept' must not inherit O_NONBLOCK from the parent
++     socket.  */
++  (*sock)->flags =3D
++    template->flags & ~(PFLOCAL_SOCK_CONNECTED | PFLOCAL_SOCK_NONBLOCK);
+=20
+   return 0;
+ }
+--=20
+cgit v1.1
+

base-commit: 7b73f02c38d568147f1b6a7ff4467f73a212cd1e
--=20
2.49.0


------=_Part_114301_919680049.1747297118591--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77610: guix-daemon socket activation does not work on the hurd
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 18 May 2025 21:04:02 +0000
Resent-Message-ID: <handler.77610.B77610.174760221629214 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77610
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: yelninei@HIDDEN
Cc: 77610 <at> debbugs.gnu.org, Janneke Nieuwenhuizen <janneke@HIDDEN>
Received: via spool by 77610-submit <at> debbugs.gnu.org id=B77610.174760221629214
          (code B ref 77610); Sun, 18 May 2025 21:04:02 +0000
Received: (at 77610) by debbugs.gnu.org; 18 May 2025 21:03:36 +0000
Received: from localhost ([127.0.0.1]:60973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uGlAV-0007b6-SF
	for submit <at> debbugs.gnu.org; Sun, 18 May 2025 17:03:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51796)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1uGlAH-0007ZR-0i
 for 77610 <at> debbugs.gnu.org; Sun, 18 May 2025 17:03:21 -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 <ludo@HIDDEN>)
 id 1uGlAB-0002Kz-IT; Sun, 18 May 2025 17:03:15 -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=c4hYxLd0pt6FLhooidui0YoSjdxq4W38dJ/OoWkLxqg=; b=ENzVbeZY3NmIX1PFhEYU
 pN5FfzX1TiHvJVNkxk/jJnNNjBANIw/LpirmPUIini/zFlH5GVsoonUyDh8GRgVf2BU20B/5LdyQU
 wNoVU6oOzjzDeyUWvZQ09vHVOIMZ1C6JRxUjkOMwNVBhEdyVulp8VK1wObGaoLUdVFASJ2q3erDwN
 hfgIjUdQE4Q9IuY+diuQlBkVUlXqIO3pfz+v5OtRMIBn1zHvdVzkJxbwXrEDeBjIYR+it13eWvfCS
 7Erz5ct1pBar4s+YITTzDEalLscdj4D3WZGFCKGTpHwRzoJad8cpyAGpsl6eIgDuNtkmoE2B/w9we
 Er3NPdPaXc1NSA==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <OQI0C9G--F-9@HIDDEN> (yelninei@HIDDEN's message of
 "Thu, 15 May 2025 10:18:38 +0200 (CEST)")
References: <ONLquG3--F-9@HIDDEN> <87a58he7cg.fsf@HIDDEN>
 <ONuQa_2--R-9@HIDDEN> <87h62n7tbu.fsf@HIDDEN>
 <OO6zDvS--F-9@HIDDEN> <87v7r1yfeu.fsf@HIDDEN>
 <874ixn18m0.fsf@HIDDEN> <OQFFJfe--F-9@HIDDEN>
 <87v7q2yibm.fsf@HIDDEN> <OQI0C9G--F-9@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Nonidi 29 =?UTF-8?Q?Flor=C3=A9al?= an 233 de la
 =?UTF-8?Q?R=C3=A9volution,?= jour du =?UTF-8?Q?S=C3=A9nev=C3=A9?=
Date: Sun, 18 May 2025 22:46:24 +0200
Message-ID: <875xhxlk9r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
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 (---)

Hello,

yelninei@HIDDEN writes:

> Something like this? I called the patch hurd-socket-activation.patch
> to indicate what it is addressing. Do you have a better suggestion?

Perfect; applied, thank you.

> I added it to master but this will create a minor merge conflict with the=
 hurd update on core-packages-team.

Hopefully we can easily address it.

Ludo=E2=80=99.





Last modified: Sun, 18 May 2025 21:15:01 UTC

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