From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 13:19:43 2020 Received: (at 43518) by debbugs.gnu.org; 30 Sep 2020 17:19:43 +0000 Received: from localhost ([127.0.0.1]:32976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNflX-00027F-JK for submit@debbugs.gnu.org; Wed, 30 Sep 2020 13:19:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNflW-000272-07 for 43518@debbugs.gnu.org; Wed, 30 Sep 2020 13:19:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38819) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNflQ-0001e9-OS; Wed, 30 Sep 2020 13:19:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59182 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNflQ-0004Jm-9u; Wed, 30 Sep 2020 13:19:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#43518: Guix substitute crash in procedure raise-exception: wrong type agument in position 1: #f References: <87imc9y8hq.fsf@gmail.com> <873630plg1.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 =?utf-8?Q?Vend=C3=A9miaire?= an 229 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: Wed, 30 Sep 2020 19:19:34 +0200 In-Reply-To: <873630plg1.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 29 Sep 2020 13:00:30 -0400") Message-ID: <87wo0bxjvd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43518 Cc: 43518@debbugs.gnu.org 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, Maxim Cournoyer skribis: > downloading from https://ci.guix.gnu.org/nar/6m9zimmw8p6gbc1yfbg454c1r587= b7h4-gcc-10.2.0.tar.xz ... [=E2=80=A6] > gcc-10.2.0.tar.xz 74.3MiB 1.1MiB/s = 00:25 [####### ] 39.1%Backtrace: [=E2=80=A6] > In unknown file: > 5 (display "@ substituter-succeeded /gnu/store/r06j3ms57z4mzfp= dzfclsi3i9hr4184g-module-imp=E2=80=A6" =E2=80=A6) > In guix/status.scm: > 699:16 4 (write! _ _ _) > 613:6 3 (_ (download-progress "/gnu/store/6m9zimmw8p6gbc1yfbg454c1r5= 87b7h4-gcc-10.2.0.tar.xz" # =E2=80=A6) =E2=80=A6) > In guix/progress.scm: > 213:14 2 (display-download-progress "6m9zimmw8p6gbc1yfbg454c1r58@" _ = #:start-time _ #:transferred _ =E2=80=A6) > In ice-9/boot-9.scm: > 1669:16 1 (raise-exception _ #:continuable? _) > 1669:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > In procedure =3D: Wrong type argument in position 1: #f If you have a case that=E2=80=99s reproducible, please take advantage of it= and add =E2=80=98pk=E2=80=99 calls in (guix progress) to see what happens. Her= e it seems that =E2=80=98transferred=E2=80=99 (in =E2=80=98display-download-progress= =E2=80=99) is #f. The #f would come from this clause in (guix status): ('download-progress item uri (=3D string->number size) (=3D string->number transferred)) ;<- here That in turn comes from =E2=80=98progress-reporter/trace=E2=80=99, called f= rom (guix scripts substitute). It looks like this issue happens when max-jobs is (noticeably) greater than 1, as if the client was receiving intermingled =E2=80=9C@ download-progress=E2=80=9D traces, and thus not getting the right =E2=80=98= transferred=E2=80=99 value. Could you try to reproduce it while =E2=80=98guix=E2=80=99 is running under= strace? Like: strace -o log -s 200 guix build whatever --max-jobs=3D20 ? Then, if you reproduce the error, we=E2=80=99ll look for intermingled trace= s in the log. Thanks, Ludo=E2=80=99.