GNU bug report logs - #55638
time-machine: backtrace about maybe-remove-expired-cache-entries

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: zimoun <zimon.toutoune@HIDDEN>; dated Wed, 25 May 2022 17:14:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 55638 <at> debbugs.gnu.org:


Received: (at 55638) by debbugs.gnu.org; 26 May 2022 15:12:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 26 11:12:32 2022
Received: from localhost ([127.0.0.1]:59789 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nuFA8-0007Tw-2S
	for submit <at> 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 <maximedevos@HIDDEN>) id 1nuFA6-0007To-Gz
 for 55638 <at> 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: <bc32e583c62832e3c64b1f75455d196bf0ec48ee.camel@HIDDEN>
Subject: Re: bug#55638: time-machine: backtrace about
 maybe-remove-expired-cache-entries
From: Maxime Devos <maximedevos@HIDDEN>
To: Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>, zimoun
 <zimon.toutoune@HIDDEN>
Date: Thu, 26 May 2022 17:12:18 +0200
In-Reply-To: <871qwgfi6k.fsf@HIDDEN>
References: <87leupd0bq.fsf@HIDDEN> <871qwgfi6k.fsf@HIDDEN>
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-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55638
Cc: 55638 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--=-/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--





Information forwarded to bug-guix@HIDDEN:
bug#55638; Package guix. Full text available.

Message received at 55638 <at> debbugs.gnu.org:


Received: (at 55638) by debbugs.gnu.org; 26 May 2022 15:05:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 26 11:05:31 2022
Received: from localhost ([127.0.0.1]:59752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nuF3L-0007IW-Lk
	for submit <at> debbugs.gnu.org; Thu, 26 May 2022 11:05:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54474)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nuF3J-0007IJ-RO
 for 55638 <at> debbugs.gnu.org; Thu, 26 May 2022 11:05:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36672)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nuF3E-00017Q-LR; Thu, 26 May 2022 11:05:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=GL8/TDNpn050HzGBKFL7RUiP99ToJ1/8f4c93C+NHsE=; b=Qc2YAl/59e/pCZE65kp8
 vQyE0G6k7t5EP6UIjFF5Zv/dAkIQHVy0bK/GW4PMshumd3tsbh74c9nYpcTqaytkt2X2QGvUVjjdX
 34Af39VvKYtsn35rk8wfdjkx7nMfZSCSu+2yopfZxER2gLASLG47tewPgloGHF0ag96IDGkbmDRfX
 /dgQXH8ye/L7bwx5H/eUsMJjrhPGB0DgVAkOdLh+nwEB2VgWGGHol8CVOq3OSfF+MTjQJFtlZ0Zkp
 QuFTc8swS0BrrbIPidUnNtdXOryW1cj+dMydD61BDuNRVaYh2Zop782n4LDX8C4DtZISnAoO9XUT4
 1QoJdfb5OBXPiQ==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:61861
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nuF3E-0001AA-9H; Thu, 26 May 2022 11:05:24 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: zimoun <zimon.toutoune@HIDDEN>
Subject: Re: bug#55638: time-machine: backtrace about
 maybe-remove-expired-cache-entries
References: <87leupd0bq.fsf@HIDDEN>
Date: Thu, 26 May 2022 17:05:23 +0200
In-Reply-To: <87leupd0bq.fsf@HIDDEN> (zimoun's message of "Wed, 25 May 2022
 18:49:29 +0200")
Message-ID: <871qwgfi6k.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55638
Cc: 55638 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

zimoun <zimon.toutoune@HIDDEN> skribis:

> In guix/cache.scm:
>     39:10  3 (maybe-remove-expired-cache-entries "/home/sitour/.cac=E2=80=
=A6" =E2=80=A6)
> In srfi/srfi-19.scm:
>    287:16  2 (time-normalize! #<time type: time-monotonic nanosecond=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:
> In procedure <: Wrong type argument in position 2: #<eof>
>
>
> Then ~/.cache/guix/inferiors/last-expiry-cleanup is empty
>
> $ cat ~/.cache/guix/inferiors/last-expiry-cleanup=20

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).

Solution:

  rm ~/.cache/guix/inferiors/last-expiry-cleanup

HTH!

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#55638; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 May 2022 17:13:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 25 13:13:21 2022
Received: from localhost ([127.0.0.1]:56361 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ntuZU-0005PM-PK
	for submit <at> debbugs.gnu.org; Wed, 25 May 2022 13:13:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:54116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1ntuZT-0005PD-Jy
 for submit <at> debbugs.gnu.org; Wed, 25 May 2022 13:13:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51348)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1ntuZT-0005Zp-9U
 for bug-guix@HIDDEN; Wed, 25 May 2022 13:13:19 -0400
Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:33722)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1ntuZR-0007cv-KQ
 for bug-guix@HIDDEN; Wed, 25 May 2022 13:13:18 -0400
Received: by mail-wr1-x42a.google.com with SMTP id f2so31054934wrc.0
 for <bug-guix@HIDDEN>; Wed, 25 May 2022 10:13:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=yRisEUe3e8HSdCF9AUR3EMfYnrw3fZeuGSNg1cn/lF0=;
 b=JPqjBDTTgGNdxNs0ioNb2rUgR5pIsrA0KksBQpyzQMZd9S4SYG8OvNsLaP1oVPWJUm
 8lN6XTd8zAy4oA6wT/P8eaa4PUgipJRpB/3E8i/UvHS26GYbPTuJ9S+U45xg69j6EjRo
 vVUVVPivuSpq1/ybGyPCAf/KYIyoq69g2ZnlGoldJMTeCQlaEW2FaLn/axMzwY75XWFJ
 9pHPxNifHyDKPnZrt60okZI268++ffl4D4KEHAOVeoLsOBBBNWOI7pljxoupXYR9Bk1r
 Sn6GMMULaERUXEkWabuuSIBa3YmclB4cONevkUuj/p0aYBRCM/0dQcDiVEmB6k45E++H
 qtsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=yRisEUe3e8HSdCF9AUR3EMfYnrw3fZeuGSNg1cn/lF0=;
 b=EKdoKa4Et1BLmcwDwJu6D6crVyjA7bq9bzEWpfpOA18ca+4hYXLPlHSgdcfAM2Q2BP
 bJ+Qu3c0SZxXXJx++BPrAcOEoZo9xSLBtCWiSln3kb3X0rdafjwdT325i9ekwOniWPdG
 bh7a7AlUYOw+VKLSfHgLPhzkRzYhxjrPKBAZHas2R8sv6eQLwAO7gTYe+S038Rat0WNd
 /30PbQ+RbMrrf1F7cs0ahQii1+OXEoDtk3wcEgntCLyTS9ka+RiKV6mxyewRCQUZV4x+
 Z/OyOzS3sFiW20RDT6Hxzj9ghuKGp2c9WbMtSGoHD3GmpEAcDxBw7MZg34JrFihxQi0i
 bL0A==
X-Gm-Message-State: AOAM532u7OEnRCING0D3sDo2UDbHnXqah/tkpSOzITu2nI60Dmg0XPee
 VraUzeOvCfGTIkrtm1lHnV+dRlHR40c=
X-Google-Smtp-Source: ABdhPJwgK/OfyCneedwE/m1qZpLkqHsFYYd/TFjJboI5fbbUS7tDPss/EVoLR/5TgDUn2ue9oEL0IA==
X-Received: by 2002:adf:e198:0:b0:210:4e7:f57b with SMTP id
 az24-20020adfe198000000b0021004e7f57bmr1274382wrb.296.1653498796324; 
 Wed, 25 May 2022 10:13:16 -0700 (PDT)
Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id
 v10-20020a05600c12ca00b00397470a8226sm2489983wmd.15.2022.05.25.10.13.15
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 25 May 2022 10:13:15 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Subject: time-machine: backtrace about maybe-remove-expired-cache-entries
X-Debbugs-CC: ludo@HIDDEN
Date: Wed, 25 May 2022 18:49:29 +0200
Message-ID: <87leupd0bq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::42a;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wr1-x42a.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

From 8a87e29, I get:


--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=3D9d795fb -- help
Backtrace:
          14 (primitive-load "/home/sitour/.config/guix/current/bin/=E2=80=
=A6")
In guix/ui.scm:
   2229:7 13 (run-guix . _)
  2192:10 12 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 11 (with-exception-handler _ _ #:unwind? _ # _)
  1747:15 10 (with-exception-handler #<procedure 7f1459d16b40 at ic=E2=80=
=A6> =E2=80=A6)
In guix/store.scm:
    671:3  9 (_)
In ice-9/boot-9.scm:
  1752:10  8 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   658:37  7 (thunk)
In guix/status.scm:
    809:4  6 (call-with-status-report _ _)
In guix/store.scm:
   1320:8  5 (call-with-build-handler #<procedure 7f1459e534b0 at g=E2=80=
=A6> =E2=80=A6)
In guix/inferior.scm:
    885:2  4 (cached-channel-instance #<store-connection 256.99 7f1=E2=80=
=A6> =E2=80=A6)
In guix/cache.scm:
    39:10  3 (maybe-remove-expired-cache-entries "/home/sitour/.cac=E2=80=
=A6" =E2=80=A6)
In srfi/srfi-19.scm:
   287:16  2 (time-normalize! #<time type: time-monotonic nanosecond=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:
In procedure <: Wrong type argument in position 2: #<eof>
--8<---------------cut here---------------end--------------->8---

Then ~/.cache/guix/inferiors/last-expiry-cleanup is empty

--8<---------------cut here---------------start------------->8---
$ cat ~/.cache/guix/inferiors/last-expiry-cleanup=20

--8<---------------cut here---------------end--------------->8---

probably erased by the previous time-machine call.  Well, it still fails
until I remove the file ~/.cache/guix/inferiors/last-expiry-cleanup.

It is hard to debug.  Any idea?


Cheers,
simon




Acknowledgement sent to zimoun <zimon.toutoune@HIDDEN>:
New bug report received and forwarded. Copy sent to ludo@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to ludo@HIDDEN, bug-guix@HIDDEN:
bug#55638; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 26 May 2022 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.