Subject: time-machine: backtrace about maybe-remove-expired-cache-entries

From: zimoun <[email-masked]>
Date: Wed, 25 May 2022 18:49:29 +0200

Hi,

>From 8a87e29, I get:

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=9d795fb -- help
Backtrace:
          14 (primitive-load "/home/sitour/.config/guix/current/bin/…")
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…> …)
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…> …)
In guix/inferior.scm:
    885:2  4 (cached-channel-instance #<store-connection 256.99 7f1…> …)
In guix/cache.scm:
    39:10  3 (maybe-remove-expired-cache-entries "/home/sitour/.cac…" …)
In srfi/srfi-19.scm:
   287:16  2 (time-normalize! #<time type: time-monotonic nanosecond…>)
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 

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