From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iBUPInE/eV/zNQAA0tVLHw (envelope-from ) for ; Sun, 04 Oct 2020 03:20:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AFCSHXE/eV8vLAAA1q6Kng (envelope-from ) for ; Sun, 04 Oct 2020 03:20:17 +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 089DF9400BF for ; Sun, 4 Oct 2020 03:20:16 +0000 (UTC) Received: from localhost ([::1]:50442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOuZK-0004Hh-3h for larch@yhetil.org; Sat, 03 Oct 2020 23:20:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOuZ8-0004HW-K0 for bug-guix@gnu.org; Sat, 03 Oct 2020 23:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOuZ8-0001qB-17 for bug-guix@gnu.org; Sat, 03 Oct 2020 23:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOuZ7-0007Ux-Rk for bug-guix@gnu.org; Sat, 03 Oct 2020 23:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43518: Guix substitute crash in procedure raise-exception: wrong type agument in position 1: #f Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 04 Oct 2020 03:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43518 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 43518-submit@debbugs.gnu.org id=B43518.160178158128794 (code B ref 43518); Sun, 04 Oct 2020 03:20:01 +0000 Received: (at 43518) by debbugs.gnu.org; 4 Oct 2020 03:19:41 +0000 Received: from localhost ([127.0.0.1]:44756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOuYn-0007UM-JH for submit@debbugs.gnu.org; Sat, 03 Oct 2020 23:19:41 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]:36419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOuYm-0007U9-3p for 43518@debbugs.gnu.org; Sat, 03 Oct 2020 23:19:40 -0400 Received: by mail-qk1-f172.google.com with SMTP id q63so7880971qkf.3 for <43518@debbugs.gnu.org>; Sat, 03 Oct 2020 20:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=RMsigGAAG281/NMbBbEZYp0xaFbr/YtCp9qcsPY0I2g=; b=ENhT1QKAm9tgzsj74BrtAsUvHHY+f9r2LP5i1h7L+rQS/II9uxkAraQHPqKVwCP1Py FFkPJK/jUl8E+6PIPtp6UBH/ca422SrwxJTG7zy7vswSBp8TuupxA4zAQifdC4vBGPJR gCCkXDFZV+u7ncHpWJBJ+n5RPo2ynFYaOq82/OpHy7l44t8kz9EzSpjoL4GD/yLIvIhi ++5kILF2X7B6Wlae7lA3nbcZvg5NGgdypTlZk0FQm76/h8eV9pQapohSc3fkPJv15aZV XdOHBJEwJJBAViuU0XudUIM+fVxeblMM24S8uvKMwp7C0ttHigatzxOow9TQDZYUP/vF 6bag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=RMsigGAAG281/NMbBbEZYp0xaFbr/YtCp9qcsPY0I2g=; b=CUMXJvbuyFwFfjuNSNYXux3tx3pPM2kL5tHNuzY1300TSoY9b0/c1/5pFvhcjbQ/Eq FBCEt0+sbecZnQtyoJb3bUXp4nhvvG/katI3BgFn/qXKbvZNpvqd09x2cYlN0QWXpy36 GehnLfj+joHTvaNdWRq9Hy9dwira2rp2YVexV2KtKXKJtIJFUf0EDqLxXcccdbQbd+6h 8zrUVKQjlmPxZVzuAmo4n8R4F3zuuQGn8pHjBzPNa5tTce2bF1pTjEX61/O0JZAYCH1E h/gqL/UH1jbU9JMHXybsCgJ6ylZrri5VujUOQRo4jvOYfgr3SmOVFuoWxcfuvffdsQ9K SveQ== X-Gm-Message-State: AOAM533qytDKI4QXFJh+YExd0VCURMtWbSNzpRx3pk+Gd3/yUo3F/Hl7 hAXuwtADpRg037f6HCB1oyXShURE3JU= X-Google-Smtp-Source: ABdhPJz59d4lGgRwcbato8LtCp6XlSoPO5y/1SkJwlbDrmrYwz4Lbs1u5q03znIVC026jGai9O4+qQ== X-Received: by 2002:a37:67c1:: with SMTP id b184mr8729858qkc.199.1601781574404; Sat, 03 Oct 2020 20:19:34 -0700 (PDT) Received: from hurd (dsl-156-63.b2b2c.ca. [66.158.156.63]) by smtp.gmail.com with ESMTPSA id l22sm1537712qki.49.2020.10.03.20.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 20:19:33 -0700 (PDT) From: Maxim Cournoyer References: <87imc9y8hq.fsf@gmail.com> <873630plg1.fsf@gmail.com> <87wo0bxjvd.fsf@gnu.org> <87zh54ms9i.fsf@gmail.com> <87eemfhcpg.fsf@gnu.org> Date: Sat, 03 Oct 2020 23:19:32 -0400 In-Reply-To: <87eemfhcpg.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 03 Oct 2020 11:37:47 +0200") Message-ID: <87v9fqlltn.fsf@gmail.com> 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: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43518@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=ENhT1QKA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Spam-Score: 0.09 X-TUID: tksJ5Jce+9nY Hello! Ludovic Court=C3=A8s writes: [...] > The =E2=80=9C@ download-progress=E2=80=9D line is printed by (guix script= s substitute) > and later consumed by (guix status) in the client, which is why I > mentioned =E2=80=98progress-reporter/trace=E2=80=99 above. > > I think the problem we=E2=80=99re looking at could occur if those traces = are not > printed in an atomic way, and thus (guix status) gets to see > truncated/mixed up traces. So I tried this: > > _NIX_OPTIONS=3Dprint-extended-build-trace=3D1 sudo -E \ > ./pre-inst-env strace -s 200 -o ,,s guix substitute \ > --substitute /gnu/store/pknm43xsza6nlc7bn27djip8fis92akd-gcc-toolc= hain-10.2.0 /tmp/t.drv > > It shows that traces are printed in a single write(2) call: > > write(2, "@ download-progress /tmp/t.drv http://ci.guix.gnu.org/nar/lzip/= pknm43xsza6nlc7bn27djip8fis92akd-gcc-toolchain-10.2.0 4843 4843\n", 127) = =3D 127 > > So this side of things seems to be good. But then traces could be > mangled/truncated by the daemon maybe. An strace log of the failing > case would be very helpful. Not sure this matters or not, but thought I'd add the information here in case: the ntpd service was stopped for unkown reasons on my local machine, leading to 'guix offload status' to output the following warning: guix offload: warning: machine '127.0.0.1' is 106 seconds behind I've since restarted the ntpd service and that warning disappeared. Maxim