From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#32895: file progress reporter crashes on small files Date: Mon, 1 Oct 2018 16:16:31 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6z0W-0003tj-92 for bug-guix@gnu.org; Mon, 01 Oct 2018 10:17:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6z0Q-0000me-54 for bug-guix@gnu.org; Mon, 01 Oct 2018 10:17:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6z0Q-0000mV-0X for bug-guix@gnu.org; Mon, 01 Oct 2018 10:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g6z0P-0003gz-RS for bug-guix@gnu.org; Mon, 01 Oct 2018 10:17:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6z04-0003cz-5t for bug-guix@gnu.org; Mon, 01 Oct 2018 10:16:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6yzz-0000Eh-Qw for bug-guix@gnu.org; Mon, 01 Oct 2018 10:16:40 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:57648) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g6yzz-0000Be-Cb for bug-guix@gnu.org; Mon, 01 Oct 2018 10:16:35 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id A6D86380E11 for ; Mon, 1 Oct 2018 16:16:32 +0200 (CEST) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocrIK8i3R9nB for ; Mon, 1 Oct 2018 16:16:32 +0200 (CEST) Received: from SW-IT-P-CAS2.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Mon, 1 Oct 2018 16:16:32 +0200 (CEST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 32895@debbugs.gnu.org Downloading small files (such as cabal revisions) sometimes fails with a backtrace like this: --8<---------------cut here---------------start------------->8--- Starting download of /gnu/store/plr3hf9gjdcg2qhi3x4k2wjm8zajqibc-ghc-crypto= hash-md5-0.11.100.1-2.cabal >From https://hackage.haskell.org/package/cryptohash-md5-0.11.100.1/revision= /2.cabal... downloading from https://hackage.haskell.org/package/cryptohash-md5-0.11.10= 0.1/revision/2.cabal... Backtrace: 7.6MiB/s 00:= 00 | 3KiB transferred In ice-9/boot-9.scm: 829:9 19 (catch _ _ # =C3=A2=C2=A6) 829:9 18 (catch _ _ # =C3=A2=C2=A6) In guix/scripts/build.scm: 749:24 17 (_) In ice-9/boot-9.scm: 829:9 16 (catch _ _ # =C3=A2=C2=A6) In guix/ui.scm: 409:6 15 (_) In guix/scripts/build.scm: 675:5 14 (_) In srfi/srfi-1.scm: 679:15 13 (append-map _ _ . _) 592:17 12 (map1 (#)) In guix/scripts/build.scm: 680:31 11 (_ _) In guix/packages.scm: 881:14 10 (cache! # # =C3=A2=C2=A6) In unknown file: 9 (_ # # #) In guix/grafts.scm: 303:4 8 (graft-derivation # # =C3=A2=C2=A6) 181:4 7 (references-oracle # #) 190:20 6 (_ _ _) In guix/store.scm: 1087:15 5 (_ # _ _) 661:13 4 (process-stderr _ _) In unknown file: 3 (display "@ download-progress /gnu/store/plr3hf9gjdcg2=C3=A2= =C2=A6" =C3=A2=C2=A6) In guix/status.scm: 457:13 2 (write! _ _ 186) 421:6 1 (_ (download-progress "/gnu/store/plr3hf9gjdcg2qhi3=C3=A2=C2= =A6" =C3=A2=C2=A6) =C3=A2=C2=A6) In guix/progress.scm: 214:25 0 (display-download-progress "2.cabal" #f #:start-time _ # =C3= =A2=C2=A6) guix/progress.scm:214:25: In procedure display-download-progress: In procedure /: Wrong type argument in position 1: #f --8<---------------cut here---------------end--------------->8--- This happens because =E2=80=9Ctransferred=E2=80=9D in the =E2=80=9Celse=E2= =80=9D branch of (@ (guix progress) display-download-progress) is #f instead of a number. This could be the result of running string->number on an invalid string in =E2=80=9Cprint-build-event=E2=80=9D. -- Ricardo