From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qN+FEBCZj2I1CwEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 17:13:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QDiBEBCZj2LVGgAAauVa8A (envelope-from ) for ; Thu, 26 May 2022 17:13:20 +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 CF96B1280D for ; Thu, 26 May 2022 17:13:19 +0200 (CEST) Received: from localhost ([::1]:38152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuFAs-0001LG-KI for larch@yhetil.org; Thu, 26 May 2022 11:13:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuFAc-0001JV-EL for bug-guix@gnu.org; Thu, 26 May 2022 11:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuFAc-0002J1-5W for bug-guix@gnu.org; Thu, 26 May 2022 11:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuFAc-0007Uh-1d for bug-guix@gnu.org; Thu, 26 May 2022 11:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55638: time-machine: backtrace about maybe-remove-expired-cache-entries Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 May 2022 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55638 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , zimoun Cc: 55638@debbugs.gnu.org Received: via spool by 55638-submit@debbugs.gnu.org id=B55638.165357795228768 (code B ref 55638); Thu, 26 May 2022 15:13:02 +0000 Received: (at 55638) by debbugs.gnu.org; 26 May 2022 15:12:32 +0000 Received: from localhost ([127.0.0.1]:59789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuFA8-0007Tw-2S for submit@debbugs.gnu.org; Thu, 26 May 2022 11:12:32 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:53500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuFA6-0007To-Gz for 55638@debbugs.gnu.org; Thu, 26 May 2022 11:12:31 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id bTCU2700L4UW6Th01TCU8V; Thu, 26 May 2022 17:12:29 +0200 Message-ID: From: Maxime Devos Date: Thu, 26 May 2022 17:12:18 +0200 In-Reply-To: <871qwgfi6k.fsf@gnu.org> References: <87leupd0bq.fsf@gmail.com> <871qwgfi6k.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-/vVYV2U+3qfGLLVcVtYj" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1653577949; bh=R7ys7uU61Meobz2g7Qv5Zmn6/96Nlkn8ktUWtLuHZuc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ByqqHTp3RWf7jOOFxfaYKKtZuqAdDpDvCnYFj/CHRjQI4qUKu07DUKOS+G3vhFVYi i1RcyOFAIFmKXRwFpdpnOmys53HTY/JHriPU2/Cc4stVa+j1VQ28RWX8Mfs0bUmYUD O39ZRtaZf2tdkI+xLaFRtb1QzSrjKiyJy61RyHlq1QCegRWExxvD8n6FvtgVWC47Ni 7iqWR2SQK3GAEx4vr3pURWyd6lusXpamZx05vJDe6HsXDFBZ2EmX7IpoGTkEdlQdSO wlboEZpZDW8+VJt0rQz3Wg1c+GWlE6oLRzWm1FG+xb+YKshLJ1sRm7yLlWu/ZqbRV7 kem4q/ovBxnHw== 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=1653577999; 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: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=R7ys7uU61Meobz2g7Qv5Zmn6/96Nlkn8ktUWtLuHZuc=; b=sXaEt7w1x2PLJZIuufeTndidNEd2r9LX/SuJL1LDDn4JcjYzhhYMNRPITOP/T/HZ0s5tZ3 7SP0KJL86y/0wrVOQUZ2Rn/WQdVvKmytENSJ8F3xodMDw2YAqrzp8Jq7LIsUWRB6NHPgya r5H8qjlMh5NiPEKFC9hSQHNTPd2+Ph69fGncX6tRmU22b48FbK4rq4Yfx/BDdFI1YJPMGW Z5JRm0zC6IuT4vC/ArV8n6GZPYFkPfltQ6Q+2+VE7W/FoTlvST/zVVhf/Q1+1DU/Hd6kUE 8NfYI79lD4qA0NKJ1PGwZKJFTzNs6GrHS6OOe7C9mqPj7tW68UeI7ydQbmUJiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653577999; a=rsa-sha256; cv=none; b=PyhFjWw5dN5M2oh2n3//tSx2WXsrY2N08opbhb4JVHu33bzLgeoyk2VnRgjZCc5gFdekde 73s1nGSHlPokPw+iQEqE4q7dEh/HuXcEGy4K5mFFPQ1d+EhjLlimFe3TCa5xv12Sykejv2 gjjHMkddb/vs+oVAq1fIavbWZ/DII3lkKYSltd6pmzIYl3ABsDdenT58Yt74RaGBsaIt+P 1WncG+8g0ZPua2EGS7bvXRrqdrQt9MV8aP9J2oI0F7fXzNXd1uMg/DOZ+jNdCZiRcBLUel SQKY52TYIhrfn2hEm9B2zrMf+kH9P7eLubj0yDA/nrDU+Eoz0WJ6q5tnNFd2LA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ByqqHTp3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=ByqqHTp3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: CF96B1280D X-Spam-Score: 5.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: YjVJWz62byPQ --=-/vVYV2U+3qfGLLVcVtYj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op do 26-05-2022 om 17:05 [+0200]: > This file was empty when you ran the command instead of containing an > integer (could have been a file system corruption or something like > that). >=20 > Solution: >=20 > =C2=A0 rm ~/.cache/guix/inferiors/last-expiry-cleanup It's a work-around, but there's still an underlying problem:=20 guix/cache.scm doesn't do 'fsync+rename', so the file is not created atomically, so in case of an abrupt shutdown or C-c at the wrong time, the file becomes corrupted without fault of the file system. As such, WDYT of making last-expiry-date more robust, by treating invalid contents as time=3D0 or something like that? Greetings, Maxime. --=-/vVYV2U+3qfGLLVcVtYj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYo+Y0hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7l3WAQDFf6zv5y0G/T4Ybj08jKrRX70a zLexr1odFULn3bw5jAEA+OWX8SZisOZ2GjCjfQLZJCoA5ydVNEqF6zmAdzcHBw8= =ONvg -----END PGP SIGNATURE----- --=-/vVYV2U+3qfGLLVcVtYj--