From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sP3rOJDu0WAItQAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 16:07: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 mp1 with LMTPS id kD2ZNJDu0WD6CQAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 14:07:12 +0000 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 374C5250FD for ; Tue, 22 Jun 2021 16:07:12 +0200 (CEST) Received: from localhost ([::1]:42684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvh3X-0001gy-9W for larch@yhetil.org; Tue, 22 Jun 2021 10:07:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvh3Q-0001gc-HH for bug-guix@gnu.org; Tue, 22 Jun 2021 10:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvh3Q-0007VO-9h for bug-guix@gnu.org; Tue, 22 Jun 2021 10:07:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvh3P-0001li-W5 for bug-guix@gnu.org; Tue, 22 Jun 2021 10:07:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49132: guix substitute: backtrace when the network is disabled during substitution Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jun 2021 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49132 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 49132-submit@debbugs.gnu.org id=B49132.16243707726730 (code B ref 49132); Tue, 22 Jun 2021 14:07:02 +0000 Received: (at 49132) by debbugs.gnu.org; 22 Jun 2021 14:06:12 +0000 Received: from localhost ([127.0.0.1]:39569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvh2Z-0001kT-Ro for submit@debbugs.gnu.org; Tue, 22 Jun 2021 10:06:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvh2Z-0001kI-0b for 49132@debbugs.gnu.org; Tue, 22 Jun 2021 10:06:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33604) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvh2T-0006rv-2c; Tue, 22 Jun 2021 10:06:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52858 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvh2S-0004Ki-RA; Tue, 22 Jun 2021 10:06:05 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87bl8hvhgx.fsf@gmail.com> <87wnr05tfz.fsf@gnu.org> <1fa57b9edcd62f9bea334688da9c4f009507b268.camel@telenet.be> Date: Tue, 22 Jun 2021 16:06:02 +0200 In-Reply-To: <1fa57b9edcd62f9bea334688da9c4f009507b268.camel@telenet.be> (Maxime Devos's message of "Sun, 20 Jun 2021 13:07:34 +0200") Message-ID: <87pmwe2dv9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (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: , Cc: 49132@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624370832; 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; bh=uehitoZVT3vA9JTMwt8/4ZdJGHO/TG/Kg3uj//Y9MKU=; b=pwbKz0cBVkk8quSgVTqK8Zxbp8wrW9tvAbV+v+JI8o5R611XHKbwqAzJOmmK6gyA2lg2+J Eg/TrN9TsIiudUtyryDTDPH/3Uu5qA5/0ocw9iN2Hs71Dnu2gGEjhjDip0AFQ7MHVh4jlI x9Vvinp/9onwGJx/iRCdqojy46IU32cKNJeJpE7yFbeSh5LDJjEYKtuBAHeacC3SJq02e5 tXYCiCsHq2QyPH0CByDs2XkcJP0YLUps0LLR2TNediwwxNvFJ23n7GWZt1jGOKbFuRQ8js u058Gdm6JitASSxiNEdEDbKo2nkK4LJCJG4zMgB1DzzQOLA688w4KEoCuhZ0+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624370832; a=rsa-sha256; cv=none; b=Qfio1i22OMWRPSNG1KwGpAF5hS+LfamxLkDhp4pzrG7WIgurd9u9XjhE7A49GxiauMbGDb 5kMmAkWuMvzYNF8hee+THwE38HIh7w8odDKrNrewaGhpxEunYphnN/X0MLx24pI/5RmIAe 8tsXxjWwewGoeG7UMr0w81A0UkrbqIPKDi6QIVdYeyX0zMYwq9Sp8DGhWz4Y41kX/U4QfZ 3jbjFL3WLf6vCNKjlGvU3bk3yZl+X9CBhwi2xHh0ISQWBw+FEjj3BybW7Ly1eLsEYqIspo Q9jZjAGgI9V9s8YqomZjAQo42jvRT18PN8/ss0OK8c5rsGNImpGQKVK+nFIUmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 374C5250FD X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: d0+ys8khhl48 Hi, Maxime Devos skribis: > so I disabled & re-enabled wireless networking during the substitution > and encountered a (to my knowledge) previously-unknown backtrace: > > $ while (echo substitute /gnu/store/44h13hn5zssfppz67vydxcf95qsc8qfw-libr= eoffice-6.4.7.2 /tmp/t && echo substitute /gnu/store/j0j7z6ckarjs9yi77sncsz= bmdgy38s70-guix-1.3.0-4.4985a42 /tmp/u) | guix > substitute --substitute ; do chmod -R +w /tmp/t && rm -rf /tmp/t && chmod= -R +w /tmp/u && rm -rf /tmp/u ; done [...] > In lzlib.scm: > 501:4 9 (lzread! # # =E2=80=A6) > In unknown file: > 8 (get-bytevector-n # 65537) > In guix/progress.scm: > 368:31 7 (read! _ _ _) > In unknown file: > 6 (get-bytevector-n! # # 0 #) > In web/response.scm: > 95:2 5 (read! _ _ _) > In ice-9/boot-9.scm: > 1685:16 4 (raise-exception _ #:continuable? _) > 1685:16 3 (raise-exception _ #:continuable? _) > 1780:13 2 (_ #<&compound-exception components: (#<&error> #<&irri=E2= =80=A6>) > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > Throw to key `bad-response' with args `("EOF while reading response body:= ~a bytes of ~a" (26017808 37842870))'. Ah indeed, this is poorly handled. I=E2=80=99m not really sure how to address it. I/O ports are a nice abstra= ction as it allows you to transparently read =E2=80=9Cstreams=E2=80=9D from any m= edium, but as always, that also comes with opacity where the call site is not supposed to know what kind of exceptions might be thrown deep down. Thoughts? Ludo=E2=80=99.