From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SHZPC+W3eV+ffwAA0tVLHw (envelope-from ) for ; Sun, 04 Oct 2020 11:54:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IBUeB+W3eV8LGQAAB5/wlQ (envelope-from ) for ; Sun, 04 Oct 2020 11:54:13 +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 9443E9401BF for ; Sun, 4 Oct 2020 11:54:12 +0000 (UTC) Received: from localhost ([::1]:47962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP2ag-0006jc-24 for larch@yhetil.org; Sun, 04 Oct 2020 07:54:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP2aY-0006jR-FA for bug-guix@gnu.org; Sun, 04 Oct 2020 07:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kP2aY-00089G-62 for bug-guix@gnu.org; Sun, 04 Oct 2020 07:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kP2aY-0001Ih-5c for bug-guix@gnu.org; Sun, 04 Oct 2020 07:54:02 -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 11:54:02 +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.16018124364989 (code B ref 43518); Sun, 04 Oct 2020 11:54:02 +0000 Received: (at 43518) by debbugs.gnu.org; 4 Oct 2020 11:53:56 +0000 Received: from localhost ([127.0.0.1]:45040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP2aS-0001IN-FR for submit@debbugs.gnu.org; Sun, 04 Oct 2020 07:53:56 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:45584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP2aR-0001I7-3M for 43518@debbugs.gnu.org; Sun, 04 Oct 2020 07:53:55 -0400 Received: by mail-qt1-f182.google.com with SMTP id 10so6856206qtx.12 for <43518@debbugs.gnu.org>; Sun, 04 Oct 2020 04:53:55 -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; bh=s1kYlW5m9iPN6OQwCkjIoh33XsTOsyJP+hnBkG/nn/M=; b=VcHzLcDEhiwzy9cdNQRqw12H4KxkJrEqnaKOIY7Oa5BRXseHlozd8E4B/Br7uDEvw8 FQI/NN55M3/Y0kXDqWBZXBXJj5wJpQaMuQ6stCGOuhFDqIwCEa8IrI69nolIoQVauFSR fBDxJd4GE03BGdrSJqp5u3WL8KvHmwXPu4u8xs3hytw1OF2oyON5VPSe5P8RFDchyPPX 9cOFN5X/n0eddTopWR4fIxTalrhGwjQQojrqG+kUpBFu7zyrCTfhMr5Bk7u/eL47az0P GFBNNfrnLcI5AX/4zdlVma8VOE+KckWPFcE/TxQNWnVVQF1LeVn3teFAG4wbt4pkodKp sXdA== 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; bh=s1kYlW5m9iPN6OQwCkjIoh33XsTOsyJP+hnBkG/nn/M=; b=Ms2SEP2ReJhkRhtIs273IwkYsH8FQqDkmy1JMzheWX4L+/ustGYRcpTF/A92b70U+s 69VI0xkKc1rcF8ULQ0iWFSJ6+uV0dFBuLYzF00FIPrbUn2mgDu5byhJhL69jwwlIYSVB gKwOf9IRzWe5CPD/iyfqXvuPtjCIOMMV01z9Ud8n764Sw5hdoBMZ9GKydLAcoVzO9qzg k0TbhxUq7kaoQWjJ7AQnd3b7BpwZpWySnI5yZFHQuDFRJE5u1rPQ9IqK2yN6tJV5YHlM w9bPyaU//T6JfKeLVzbg7Dbhez9NV39HUIXk+3achxvIOER46RY/QIBDAX246ezTU+mG CTSA== X-Gm-Message-State: AOAM532xZ41HYoeA8SDoJ3Do4ZYGTRABhz+TdeFwa0xV3M4ppVRjaEFl sRjRx3FESu2tRhz6pzDebZi0Bznfep4= X-Google-Smtp-Source: ABdhPJy/ee4GpeW42dkZpahkRY43BDTobB/c/dePPUMEVxtqjPNRuBhpl8Q+PwkOntcdOC4yipm1Tg== X-Received: by 2002:ac8:148e:: with SMTP id l14mr9668201qtj.151.1601812429327; Sun, 04 Oct 2020 04:53:49 -0700 (PDT) Received: from hurd (dsl-156-63.b2b2c.ca. [66.158.156.63]) by smtp.gmail.com with ESMTPSA id d22sm5199382qkj.93.2020.10.04.04.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2020 04:53:48 -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> <87v9fqlltn.fsf@gmail.com> Date: Sun, 04 Oct 2020 07:53:47 -0400 In-Reply-To: <87v9fqlltn.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 03 Oct 2020 23:19:32 -0400") Message-ID: <87r1qeky0k.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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=VcHzLcDE; 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: d3GMyt/qDRRT --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello again! Maxim Cournoyer writes: > Hello! > > Ludovic Court=C3=A8s writes: > > [...] > >> The =E2=80=9C@ download-progress=E2=80=9D line is printed by (guix scrip= ts 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-tool= chain-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. [...] I managed to capture two instances of 'transferred=3D #f' from my pk output in the attached logs. Curiously, they didn't lead to the crash. Attached is a pruned version of the strace log of a command like './pre-inst-env guix package -m my-manifest --max-jobs=3D20'. Offloading was in use. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=log.pruned.lz Content-Transfer-Encoding: base64 Content-Description: strace log with two instances of 'transferred= #f' TFpJUAHxAC2LsAugqJ7BsiO0/zuuxuWOoxavbwXBzAm/pJwWKMdh0AfJBK2bl30+POi1inMYpyBz OEl5rY11I0dHQblm3qmmnalQtUO/E82U0MmZMnh+/o3Q28aJriHaQ9AP0kbzZMhDccH8Ll+aZbn7 +qlc1ML9lPrNxXumkmm4tfYjiAkTj+MPuuT4+qxkRqlpviCcJDRrtFIlxo0D5X2ThuUjxbcdvu6p B/MgjBAjD2HU7G9Y8xpFQlgU9bTWdVMtGHVeWZgWDNh+nPamOScjBfNYkM2TIQGF6RMzW3SXB+R3 RjhUWO76PKRgg7MiqSPzTxKdjuFwwjg98pKLBDkXGj4DA5I/ffqwu7PpJHJA9zGpM/eSnai4MfJM ssY3Vp+I1OnoLyDyPz1HwPHyLMkXiLJxKUnp+EHKLoPbzRIwCMLgjCJWqSMsh6QR4iA7i2K22m89 k1a/JK6vO2YFJf3hMRqa3EoKCCrEG0OjitKcsBqRij+H3uRJfeRiryxKOkWwP7B1NI5ik63y3f7y L/Z2QYtRZ3oLYkaN+fsuUGVKPduPJ222o0YeU52bG54P8fSUUR3If/T7yaCI4OLuNYeSU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