From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHPaOnaXW2MWhQAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 10:48:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mAjKOnaXW2NL/wAA9RJhRA (envelope-from ) for ; Fri, 28 Oct 2022 10:48:54 +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 559A33E7CA for ; Fri, 28 Oct 2022 10:48:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooL29-0000VH-O7; Fri, 28 Oct 2022 04:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooL23-0000SM-6i for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooL22-00029l-VT for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooL22-000271-QH for bug-guix@gnu.org; Fri, 28 Oct 2022 04:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#28240: bad backtrace on =?UTF-8?Q?=E2=80=9Cguix?= archive =?UTF-8?Q?-x=E2=80=9D?= Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Oct 2022 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28240 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: 28240@debbugs.gnu.org Received: via spool by 28240-submit@debbugs.gnu.org id=B28240.16669468637993 (code B ref 28240); Fri, 28 Oct 2022 08:48:02 +0000 Received: (at 28240) by debbugs.gnu.org; 28 Oct 2022 08:47:43 +0000 Received: from localhost ([127.0.0.1]:60351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooL1i-00024j-9m for submit@debbugs.gnu.org; Fri, 28 Oct 2022 04:47:42 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:52984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooL1c-00023G-QV for 28240@debbugs.gnu.org; Fri, 28 Oct 2022 04:47:39 -0400 Received: by mail-wm1-f43.google.com with SMTP id l32so2625699wms.2 for <28240@debbugs.gnu.org>; Fri, 28 Oct 2022 01:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=m35js/KLwl9HhkfqvES/YSkHxNwqHzTeAJbpwDg0meA=; b=J8coZqXYSeTW/vAFTlVcyZZ4eCbVWfYZXGp6M+wG8+/tEo+YkDjZVItXMtAIrxI/p8 +VrEVYeCW01hVXWMjOAdt8fzFL04E90MAhdMWacPn/z/MR2PeKDMIm4lHLVMmxM+Pguc hrTgZbS9NhxYn4Qhzr8RrMzVKVmtUengC1lGALD1tx6muAfD/gWACs3cDpbMO/3ECCdF dcgpNRENVxHciLqRs42i4gqnui9MJWm7pAILv2Mmima/mdSNBYHMh8iv1mqxKRmRI6GF rPWryaI/pzMcwRXW0qdNiYUzlRGuSTRDjIO8m46gtlferuQiHxqwPF+MZJuQfOgEf8yQ 5PVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date :disposition-notification-to:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m35js/KLwl9HhkfqvES/YSkHxNwqHzTeAJbpwDg0meA=; b=i9OxL16fpHozdPmFAdv4sfv0RbrafhJK5Tm2SULmBMBRg+//1kD94JcRRdmRelOpR3 T418Am+G8Vsdgd/UeyigwTjYpp/KM14eFrwyDnADl98PuwZ06jOM4VjOsPT6R27OnO7y CwgGU+vG3m5FdfzKggXHD6a0F4ftDEqm7JCmjseU6yE4bZa2To+XROYAHaUvlbzfyjR6 XyI17cBtvDMpSOU3h0SfRGujptn+SQkcDpohEilx3eqR/okiV+F7unk+3bUwxQO98YLH al4oErgeVYHxa59mcI28bOF3Eox2cDVHIC8SO4M+QI7aEB4R68IsOxsxqOXG4ev3TUBE es1Q== X-Gm-Message-State: ACrzQf2qcnE3gAB3nvJOoHLxQINGDkCRBWdMLAUWM5QYsVYXTwyKF5n0 4+6d+/5i4Slc5RYtxFkP4j3/dU/ApWY= X-Google-Smtp-Source: AMsMyM5yZZTJ7MQhrB/mzWgWcigbONZSJ/OoD9iaH0vtXllYmuVmZ8weEkojD+WRCj3d5KOAYdKRSw== X-Received: by 2002:a5d:4b45:0:b0:236:501f:7a41 with SMTP id w5-20020a5d4b45000000b00236501f7a41mr25658367wrs.516.1666946851195; Fri, 28 Oct 2022 01:47:31 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id m5-20020adffe45000000b002238ea5750csm3759061wrs.72.2022.10.28.01.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 01:47:30 -0700 (PDT) From: zimoun In-Reply-To: <87sfj9ijtg.fsf@elephly.net> References: <87a82mv7py.fsf@elephly.net> <86czwpknzk.fsf@gmail.com> <86k04mba6w.fsf@gmail.com> <87sfj9ijtg.fsf@elephly.net> Date: Fri, 28 Oct 2022 10:08:49 +0200 Message-ID: <861qqs8j5a.fsf@gmail.com> 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: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666946934; 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=m35js/KLwl9HhkfqvES/YSkHxNwqHzTeAJbpwDg0meA=; b=bc+4EYlh1S+miH9oWLFOoEUQg7EhG9TZozlGo8ZBC/Hf/8HljdnHFevFGsKA8unpPaUhd2 EGNCkWzihs5mQgvkCkZv/ZEvdZSdvQZLKLl+Vv54n0qZcOhbzeNShK+ym/PBwaOtIwS66m 8Q6ddmB5f0t6F1mJ4OSHMDpOVFLktlUfCE1TAGzCDUvLq3YHg/WGFaerz15D0WtIKylmG1 LbdJmptddvUCWKfZK/GjocCrq7/V07fc+46U5xicYLmZ7SoqSy6tRsGIAzvZo+1y0OXoD5 4kbfOWbtoB4OS3pDxyR1vou8O90TScza4GX9wLrbmmUh+CdiM7GzCGidFbNv6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666946934; a=rsa-sha256; cv=none; b=UdD4m/hY6xax7qCrO0d/w6b+S7FhxQSAdQBHqfnP6OsO9eQn3S1mWOB/5I8cUPaPIYZ6x8 Xh9JRnRsQGai9j5tY3dKdDhIy2APSU1USnXy/DoVIU7TzsXgO4yiFxZJaeTzevfGQlnSlg ATjtm5kjiDXx0AhqOyUYmcObvV/Gj79bZraE2Jw5sATEYuz4PRG+lObArP3AUDcE4GjVkQ iQiY1dXfXcLZD5anl5dcGSg4PFhzUhxKMxVvwttCe0wlN39JfBpq4ykvH4O2SLrQTbVpQD b87U5j4EXKVTvWT6YQgBk8VSXrCc1W58SwnAw/RGThlOsKebIP9lLDRRvSXoUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=J8coZqXY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 5.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=J8coZqXY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 559A33E7CA X-Spam-Score: 5.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9f9mmG0Uym1a Hi Ricardo, On Thu, 27 Oct 2022 at 13:30, Ricardo Wurmus wrote: > zimoun writes: > >>> guix archive: error: corrupt input while restoring '/tmp/ci' from # >> >> The situation is still the same. Well, is the =E2=80=9Cguix archive=E2= =80=9D error the >> point of this bug report? > > The point is the terrible backtrace. While this error is a little > better it=E2=80=99s also not great. About lzip, the error is catched by call-with-error-handling (guix ui), --8<---------------cut here---------------start------------->8--- ((nar-error? c) (let ((file (nar-error-file c)) (port (nar-error-port c))) (if file (leave (G_ "corrupt input while restoring '~a' from ~s~= %") file (or (port-filename* port) port)) (leave (G_ "corrupt input while restoring archive from = ~s~%") (or (port-filename* port) port))))) --8<---------------cut here---------------end--------------->8--- > But my primary concern is to prevent =E2=80=99guix archive=E2=80=99 from = printing a bad > backtrace. Doesn=E2=80=99t matter what we feed it. In the case of gzip, --8<---------------cut here---------------start------------->8--- Backtrace: 12 (primitive-load "/home/simon/.config/guix/current/bin/guix") In guix/ui.scm: 2263:7 11 (run-guix . _) 2226:10 10 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/status.scm: 835:3 8 (_) 815:4 7 (call-with-status-report _ _) In ice-9/boot-9.scm: 1752:10 6 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 656:37 5 (thunk) 1295:8 4 (call-with-build-handler # =E2=80=A6) In guix/serialization.scm: 416:21 3 (fold-archive # =E2=80=A6) In unknown file: 2 (utf8->string #vu8(0 3 236 189 13 120 92 87 121 46 58 182 147 = 96 13 73 228 144 244 212 64 40 59 # =E2=80=A6)) In ice-9/boot-9.scm: 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 `decoding-error' with args `("scm_from_utf8_stringn" "input lo= cale conversion error" 0 #vu8 --8<---------------cut here---------------end--------------->8--- the error is incorrectly handled. If I read correctly, the handled errors are, (guard* (c ((package-input-error? c) ((package-cross-build-system-error? c) ((gexp-input-error? c) ((profile-not-found-error? c) ((missing-generation-error? c) ((unmatched-pattern-error? c) ((profile-collision-error? c) ((nar-error? c) ((store-connection-error? c) ((store-protocol-error? c) ((derivation-missing-output-error? c) ((file-search-error? c) ((invoke-error? c) ((formatted-message? c) ((message-condition? c) so this =E2=80=99decoding-error=E2=80=99 is not handled earlier. Well, the= only catch of =E2=80=99decoding-error=E2=80=99 is by maybe-utf8->string from (guix sta= tus). Cheers, simon