From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MKvGHEh7uGLbhQEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 17:29:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cDegHEh7uGLruQAAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 17:29:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D7C3A1F6FE for ; Sun, 26 Jun 2022 17:29:11 +0200 (CEST) Received: from localhost ([::1]:54080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5UCE-0005Rm-Iu for larch@yhetil.org; Sun, 26 Jun 2022 11:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5UC6-0005RT-LS for bug-guix@gnu.org; Sun, 26 Jun 2022 11:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5UC6-0008I4-Cr for bug-guix@gnu.org; Sun, 26 Jun 2022 11:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5UC6-0005BZ-6p for bug-guix@gnu.org; Sun, 26 Jun 2022 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56014: Guix crashes at while downloading an update Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jun 2022 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56014 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Matthias Cc: 56014@debbugs.gnu.org Received: via spool by 56014-submit@debbugs.gnu.org id=B56014.165625732719904 (code B ref 56014); Sun, 26 Jun 2022 15:29:02 +0000 Received: (at 56014) by debbugs.gnu.org; 26 Jun 2022 15:28:47 +0000 Received: from localhost ([127.0.0.1]:48713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5UBr-0005Ay-91 for submit@debbugs.gnu.org; Sun, 26 Jun 2022 11:28:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5UBo-0005Aj-VO for 56014@debbugs.gnu.org; Sun, 26 Jun 2022 11:28:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5UBj-0008Go-96; Sun, 26 Jun 2022 11:28:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=VGxSCAjsYGFJIFOkOUVpCKj6oehnr6gxiMC7ZRz3qJI=; b=WOWCTcBosquXiERqEoik Wk41O6aEzqBhY+TEM27iJ0V+UOzievMrkeU6NP2SjQmNN4v0+5/E99v04BdrJFAHYKOcuW83pTHk+ 7atYvLwl23QAbiJXy//AQLN4GhjNzBduF7peW6SXM3bNN17msAdfiMVSMpsSUkSMjZJ63dcJir7nJ SqVyDg3wYen0Mxnm2mr4zUgWyH2f5G+ciu5QiQB0VQhf4mih2UKtW4j7f3McZ0iBfcUWM2vBpwxlQ RI+PSlpT5j6ypTKzRbFxKWea9aVj3S6lTrgpsxU1PiaqsMGxzkQvtXUtYCuzv4fYkoZ0X4rx6HCeH UuSEdhJTJEp0bg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:57354 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5UBi-0008L7-QC; Sun, 26 Jun 2022 11:28:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <92fd6760-bbdc-b2d3-5364-4b69a7ae3e4d@smartflyer.de> Date: Sun, 26 Jun 2022 17:28:36 +0200 In-Reply-To: <92fd6760-bbdc-b2d3-5364-4b69a7ae3e4d@smartflyer.de> (Matthias's message of "Thu, 16 Jun 2022 04:09:52 +0000") Message-ID: <8735frsau3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656257352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VGxSCAjsYGFJIFOkOUVpCKj6oehnr6gxiMC7ZRz3qJI=; b=JUDtM/JplmDikUutDjt9iCFYRC+/m1f4P8lRtlENaJPdakE2hasNQRFvyVDjbQSBsukiN2 KpXpyIkn4VKalVlckVvXTJiF4C7ZnmnwmWuNCTeFzj1YlOAe82l7T07SeUKImLMwluSEoT FCF27Q0LgwL9jqUtTpEw5znZ2lun3Zzf9cVTDH7Wf74MXWDZWXKWYFwnGf2Cr12D51+gxL JGwBEEgMH7aSSKempbum0xDyqjk3m/h3SThlxJbI3dy53F209PWpiuzp4eIOCxewYC/qUR p+RJp/Q9vHOTVkG9YYlfmtca/mx3Dfl6Ssu7NseOolZIQhqT7+74OdPOiC/C2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656257352; a=rsa-sha256; cv=none; b=ffVxTWxcAWWloMTsk20a1hNrVcVh4LuoElQLjMXxAyo7mrXOE2pMn9/SDWVi+pbgLUj6ah Ufh7mvKgykblfA0rU328e0Ozrr+K5kXVXy3suClYj1V3wPlGv5/J0K8N3oMttJ00rS/qWz Gzc64LalQsaIIUhsM5czO1f5zP9ZhYIopuph/M5XTWZx+2J3UG3AvAf7VhJb446HHVkNE0 QFy++11xuGnWt3UE+cf5ZyotM6QQD10GiSxg3OXNycxVGlrfoWbKvIToBE2MPOaTnt4vPN sFHOltZ4ZVkDwZF3SPRm91dL4BUjNOtCkAfYpwBwkyn04o3ew0H1qAuDskneMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WOWCTcBo; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WOWCTcBo; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D7C3A1F6FE X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: x+A7OWlFB/HF Hi Matthias, Matthias skribis: > I just downloaded the QEMU image for the Guix distribution and wanted > to try it out. I use QEMU and AQEMU from the current Debian Testing. > > To try out the package manager I installed the Lynx terminal > browser. That worked without any problems (lynx is working), but guix > said I should update the system with the commands "guix pull" and > "guix package -u". Excited to be able to explore more features I > typed in the first command, but while downloading the package "apr" it > crashed. See the attachment for guix' output. > > Guix version ("guix --version"): 1.3.0-1.771b866 [...] > xz-5.2.5 308KiB = 568.9MiB/s 00:00 [##################] 100.0% > glib-2.70.2 2.7MiB = 4.68GiB/s 00:00 [##################] 100.0% > apr-1.7.0 314KiB = 581.4MiB/s 00:00 [####### ] 40.7%Backtrace: > In guix/serialization.scm: > 468:33 19 (read "/gnu/store/rbb9h501zyf8mg1hz47plql80gsl99za-apr?" ?) > 468:33 18 (read "/gnu/store/rbb9h501zyf8mg1hz47plql80gsl99za-apr?" ?) > 442:24 17 (read "/gnu/store/rbb9h501zyf8mg1hz47plql80gsl99za-apr?" ?) > 525:24 16 (_ "/gnu/store/rbb9h501zyf8mg1hz47plql80gsl99za-apr-1.?" ?) > In guix/store/deduplication.scm: > 227:2 15 (dump-file/deduplicate "/gnu/store/rbb9h501zyf8mg1hz47?" ?) > In ice-9/ports.scm: > 463:17 14 (call-with-output-file _ _ #:binary _ #:encoding _) > In guix/store/deduplication.scm: > 232:10 13 (_ _) > In guix/serialization.scm: > 261:6 12 (dump _) > 247:20 11 (dump # # ?) > In unknown file: > 10 (get-bytevector-n! # # 0 #) > In guix/store/deduplication.scm: > 203:22 9 (read! #vu8(47 42 32 76 105 99 101 110 115 101 100 32 ?) ?) > In unknown file: > 8 (get-bytevector-n! # # 0 #) > In gcrypt/hash.scm: > 223:13 7 (read! #vu8(47 42 32 76 105 99 101 110 115 101 100 32 ?) ?) > In unknown file: > 6 (get-bytevector-n! # # 0 #) > In zstd.scm: > 256:12 5 (read! _ _ _) > In ice-9/boot-9.scm: > 1669:16 4 (raise-exception _ #:continuable? _) > 1669:16 3 (raise-exception _ #:continuable? _) > 1764:13 2 (_ #<&compound-exception components: (#<&error> #<&irri?>) > 1669:16 1 (raise-exception _ #:continuable? _) > 1669:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > Throw to key `zstd-error' with args `(decompress! 18446744073709551544)'. This is the root cause; its meaning: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(zstd) scheme@(guile-user)> (error-name 18446744073709551544) $23 =3D "Src size is incorrect" --8<---------------cut here---------------end--------------->8--- Downloading and uncompressing the same thing works like this: --8<---------------cut here---------------start------------->8--- $ wget -qO - https://ci.guix.gnu.org/nar/zstd/rbb9h501zyf8mg1hz47plql80gsl9= 9za-apr-1.7.0 | zstd -d |sha256sum=20 e15bd1d4f4628969c461d99e23d27d76fb0d77b709eb393b9b2b2bcac67a8b19 - --8<---------------cut here---------------end--------------->8--- Likewise with Guile + Guile-zstd: --8<---------------cut here---------------start------------->8--- $ wget -qO - https://ci.guix.gnu.org/nar/zstd/rbb9h501zyf8mg1hz47plql80gsl9= 9za-apr-1.7.0 | guile -c '(use-modules (zstd) (guix build utils)) (call-wit= h-zstd-input-port (current-input-port) (lambda (port) (dump-port port (curr= ent-output-port))))' | sha256sum=20 e15bd1d4f4628969c461d99e23d27d76fb0d77b709eb393b9b2b2bcac67a8b19 - --8<---------------cut here---------------end--------------->8--- So my guess is that the connection was closed early for some reason, leading to a decompression error down the road. > guix pull: error: You found a bug: the program '/gnu/store/aaik6090bx4vdp= 9rn2g6w89296my5445-compute-guix-derivation' > failed to compute the derivation for Guix (version: "128697d43c21eb229ff5= 413f1c4cf79ae1a9dcd4"; system: "x86_64-linux"; > host version: "1.3.0-1.771b866"; pull-version: 1). > Please report the COMPLETE output above by email to . The bug here is that Guix should (1) handle transient networking issues gracefully, and (2) retry downloads instead of aborting. To be continued=E2=80=A6 Thanks for reporting the issue! Ludo=E2=80=99.