From unknown Thu Sep 11 18:36:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38062 <38062@debbugs.gnu.org> To: bug#38062 <38062@debbugs.gnu.org> Subject: Status: Offloading + timeout + --keep-going leads to assertion failure Reply-To: bug#38062 <38062@debbugs.gnu.org> Date: Fri, 12 Sep 2025 01:36:38 +0000 retitle 38062 Offloading + timeout + --keep-going leads to assertion failure reassign 38062 guix submitter 38062 Ludovic Court=C3=A8s severity 38062 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 15:45:52 2019 Received: (at submit) by debbugs.gnu.org; 4 Nov 2019 20:45:52 +0000 Received: from localhost ([127.0.0.1]:37616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRjEW-00048I-5N for submit@debbugs.gnu.org; Mon, 04 Nov 2019 15:45:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:52604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRjEV-000489-3Y for submit@debbugs.gnu.org; Mon, 04 Nov 2019 15:45:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRjET-00026g-S5 for bug-Guix@gnu.org; Mon, 04 Nov 2019 15:45:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iRjET-0001pA-OF for bug-Guix@gnu.org; Mon, 04 Nov 2019 15:45:49 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48436 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iRjET-0005fb-BZ for bug-Guix@gnu.org; Mon, 04 Nov 2019 15:45:49 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-Guix@gnu.org Subject: Offloading + timeout + --keep-going leads to assertion failure X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 Brumaire an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 04 Nov 2019 21:45:47 +0100 Message-ID: <87o8xr5q10.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, An offloaded build that times out in the presence of =E2=80=98--keep-going= =E2=80=99 leads to an assertion failure. To reproduce, set up offloading and run something like this: --8<---------------cut here---------------start------------->8--- $ guix build vim --no-substitutes --timeout=3D5 --keep-going The following derivation will be built: /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv process 4277 acquired build slot '/var/guix/offload/localhost:2222/0' load on machine 'localhost' is 0.04 (normalized: 0.01) building /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv... sending 1 store item (48 MiB) to 'localhost'... exporting path `/gnu/store/mlwyk5vcja0gqm20xxj8mwgf0fbqv8cz-vim-8.1.0644-ch= eckout' building of `/gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv' = timed out after 5 seconds build of /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv failed View build log at '/var/log/guix/drvs/5m/nnym9xwl145s1b88aqfmrka810w9ci-vim= -8.1.0644.drv.bz2'. guix build: error: corrupt input while restoring archive from # --8<---------------cut here---------------end--------------->8--- The last error is due to premature EOF on the client socket: the child =E2=80=98guix-daemon=E2=80=99 process crashed, and thus =E2=80=98guix build= =E2=80=99 gets EPIPE on its client socket. Here=E2=80=99s how the =E2=80=98guix-daemon=E2=80=99 proces= s crashed: --8<---------------cut here---------------start------------->8--- $ tail -3 /var/log/guix-daemon.log accepted connection from pid 4270, user ludo accepted connection from pid 4277, user root guix-daemon: nix/libstore/build.cc:3448: void nix::Worker::run(const Goals&= ): Assertion `!settings.keepGoing || children.empty()' failed. --8<---------------cut here---------------end--------------->8--- In Cuirass, this manifests itself with EPIPE while writing to the client socket: --8<---------------cut here---------------start------------->8--- 2019-11-04T20:11:26 fatal: uncaught exception 'system-error' in 'restart-bu= ilds' fiber! 2019-11-04T20:11:26 exception arguments: ("fport_write" "~A" ("Broken pipe"= ) (32)) In ice-9/boot-9.scm: 829:9 5 (catch _ _ # ?) 751:25 4 (dispatch-exception 0 system-error ("fport_write" "~A" ?)) In cuirass/utils.scm: 183:8 3 (_ _ "fport_write" "~A" ("Broken pipe") (32)) In ice-9/boot-9.scm: 829:9 2 (catch #t # ?) In cuirass/utils.scm: 184:22 1 (_) In unknown file: 0 (make-stack #t) ERROR: In procedure make-stack: In procedure fport_write: Broken pipe --8<---------------cut here---------------end--------------->8--- This bug is almost certainly a consequence of commit ada9a19a2dca74feafcf24df1152abd685d4142f. To be continued=E2=80=A6 Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 17:38:24 2019 Received: (at 38062-done) by debbugs.gnu.org; 4 Nov 2019 22:38:25 +0000 Received: from localhost ([127.0.0.1]:37701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRkzQ-0000yn-Jn for submit@debbugs.gnu.org; Mon, 04 Nov 2019 17:38:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRkzO-0000yY-7X for 38062-done@debbugs.gnu.org; Mon, 04 Nov 2019 17:38:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iRkzI-0001JE-34 for 38062-done@debbugs.gnu.org; Mon, 04 Nov 2019 17:38:16 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36264 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iRkzG-0002YS-Cp for 38062-done@debbugs.gnu.org; Mon, 04 Nov 2019 17:38:15 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 38062-done@debbugs.gnu.org Subject: Re: bug#38062: Offloading + timeout + --keep-going leads to assertion failure References: <87o8xr5q10.fsf@gnu.org> Date: Mon, 04 Nov 2019 23:38:12 +0100 In-Reply-To: <87o8xr5q10.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 04 Nov 2019 21:45:47 +0100") Message-ID: <878sov4697.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38062-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ludovic Court=C3=A8s skribis: > An offloaded build that times out in the presence of =E2=80=98--keep-goin= g=E2=80=99 > leads to an assertion failure. To reproduce, set up offloading and run > something like this: > > $ guix build vim --no-substitutes --timeout=3D5 --keep-going > The following derivation will be built: > /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv > process 4277 acquired build slot '/var/guix/offload/localhost:2222/0' > load on machine 'localhost' is 0.04 (normalized: 0.01) > building /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv... > sending 1 store item (48 MiB) to 'localhost'... > exporting path `/gnu/store/mlwyk5vcja0gqm20xxj8mwgf0fbqv8cz-vim-8.1.0644-= checkout' > building of `/gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv= ' timed out after 5 seconds > build of /gnu/store/5mnnym9xwl145s1b88aqfmrka810w9ci-vim-8.1.0644.drv fai= led > View build log at '/var/log/guix/drvs/5m/nnym9xwl145s1b88aqfmrka810w9ci-v= im-8.1.0644.drv.bz2'. > guix build: error: corrupt input while restoring archive from # > > > The last error is due to premature EOF on the client socket: the child > =E2=80=98guix-daemon=E2=80=99 process crashed, and thus =E2=80=98guix bui= ld=E2=80=99 gets EPIPE on its > client socket. Here=E2=80=99s how the =E2=80=98guix-daemon=E2=80=99 proc= ess crashed: > > $ tail -3 /var/log/guix-daemon.log > accepted connection from pid 4270, user ludo > accepted connection from pid 4277, user root > guix-daemon: nix/libstore/build.cc:3448: void nix::Worker::run(const Goal= s&): Assertion `!settings.keepGoing || children.empty()' failed. Fixed by af73beeba1fc9effab60b11aea1d7ed8c24e7367. I=E2=80=99ll update the =E2=80=98guix=E2=80=99 package soonish. Ludo=E2=80=99. From unknown Thu Sep 11 18:36:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Dec 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator