GNU bug report logs - #56722
guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm

Previous Next

Package: guix;

Reported by: "(" <paren <at> disroot.org>

Date: Sat, 23 Jul 2022 09:36:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56722 in the body.
You can then email your comments to 56722 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sat, 23 Jul 2022 09:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "(" <paren <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 23 Jul 2022 09:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: <bug-guix <at> gnu.org>
Subject: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sat, 23 Jul 2022 10:35:13 +0100
Log here:
<https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>

What's weird is that the culprit, gnu/home/services/symlink-manager.scm,
*does* have access to `service-type`, because it imports (gnu home
services), which re-exports it!

My attempts to `git bisect` were thwarted by another build failure:

```
[I] /home/paren/code/guix
ʃ git bisect start
[I] /home/paren/code/guix
ʃ git bisect bad
[I] /home/paren/code/guix
  # the commit I'm on
ʃ git bisect good cd3c4ad8fc113608eade2e5c29ba8486cde01157
[I] /home/paren/code/guix
ʃ git bisect run guix shell -D guix -- make
[log output: <https://paste.sr.ht/~unmatched-paren/af420655dffb4f0af2b36a014725602a102989f2>]
```

This bug is also experienced by `vhallac` on IRC.

    -- (




Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sat, 23 Jul 2022 10:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "(" <paren <at> disroot.org>, <56722 <at> debbugs.gnu.org>
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sat, 23 Jul 2022 11:08:41 +0100
vhallac has determined that commit
ba22560627f848f40891a56355ff26b6de1380bc, which allowed `guix gc` to
delete Home generations, caused this issue. Somehow.

    -- (




Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sat, 23 Jul 2022 10:27:02 GMT) Full text and rfc822 format available.

Message #11 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: "(" <paren <at> disroot.org>, 56722 <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sat, 23 Jul 2022 12:26:47 +0200
[Message part 1 (text/plain, inline)]
On 23-07-2022 11:35, paren--- via Bug reports for GNU Guix wrote:
> Log here:
> <https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>
>
> What's weird is that the culprit, gnu/home/services/symlink-manager.scm,
> *does*  have access to `service-type`, because it imports (gnu home
> services), which re-exports it!

Such weirdness can be caused by cycles in the module structure, maybe 
see if you can locate a cycle between (gnu home services 
symlink-manager), (gnu home services) and the modules from that 
ba2256... commit and break it?

Greetings,
Maxime

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sat, 23 Jul 2022 10:33:01 GMT) Full text and rfc822 format available.

Message #14 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: "(" <paren <at> disroot.org>, 56722 <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sat, 23 Jul 2022 12:32:17 +0200
[Message part 1 (text/plain, inline)]
On 23-07-2022 11:35, paren--- via Bug reports for GNU Guix wrote:
> [log output:<https://paste.sr.ht/~unmatched-paren/af420655dffb4f0af2b36a014725602a102989f2>]

I think I've seen this one before, but I couldn't figure it out.

> In ice-9/boot-9.scm:
>    1685:16  6 (raise-exception _ #:continuable? _)
>    1685:16  5 (raise-exception _ #:continuable? _)
>    1780:13  4 (_ #<&compound-exception components: (#<&assertion-fail…>)
> In guix/build/compile.scm:
>      191:6  3 (_ _ . _)
> In ice-9/boot-9.scm:
>    1747:15  2 (with-exception-handler #<procedure 7f1d5aeeb3c0 at ic…> …)
> In guix/build/compile.scm:
>     194:22  1 (_)
> In unknown file:
>             0 (make-stack #t)
> guix/build/compile.scm:194:22: In procedure cdr: Wrong type argument in position 1 (expecting pair): #f

Looks like an &assertion-failure is being obscured, so I guess the error handling in (guix build compile) is wrong somehow?

Greetings,
Maxime

[Message part 2 (text/html, inline)]
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sun, 24 Jul 2022 10:40:01 GMT) Full text and rfc822 format available.

Message #17 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "(" <paren <at> disroot.org>, <56722 <at> debbugs.gnu.org>
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sun, 24 Jul 2022 11:39:17 +0100
Tobias seems to have fixed this issue temporarily by reverting the Home
GC commits. Should we close this, reopen that patch thread, and discuss
the issues there?

    -- (




Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sun, 24 Jul 2022 10:53:02 GMT) Full text and rfc822 format available.

Message #20 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: "(" <paren <at> disroot.org>,
 paren--- via Bug reports for GNU Guix <bug-guix <at> gnu.org>,
 56722 <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
Date: Sun, 24 Jul 2022 10:52:51 +0000
Yo!

Thanks for CC'ing the thread.  I pushed the reversion whilst closing my laptop (really) and totally forgot.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sun, 24 Jul 2022 10:54:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sun, 31 Jul 2022 20:50:01 GMT) Full text and rfc822 format available.

Message #26 received at 56722 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 56722 <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sun, 31 Jul 2022 22:49:43 +0200
"(" <paren <at> disroot.org> skribis:

> Log here:
> <https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>

For posterity:

--8<---------------cut here---------------start------------->8---
[  0/ 98] loading...	  0.0% of 49 files
[  1/ 98] loading...	  2.0% of 49 files
[  2/ 98] loading...	  4.1% of 49 files
[  3/ 98] loading...	  6.1% of 49 files
[  4/ 98] loading...	  8.2% of 49 files
[  5/ 98] loading...	 10.2% of 49 files
[  6/ 98] loading...	 12.2% of 49 files
[  7/ 98] loading...	 14.3% of 49 files
[  8/ 98] loading...	 16.3% of 49 files
[  9/ 98] loading...	 18.4% of 49 files
[ 10/ 98] loading...	 20.4% of 49 files
[ 11/ 98] loading...	 22.4% of 49 files
[ 12/ 98] loading...	 24.5% of 49 files
[ 13/ 98] loading...	 26.5% of 49 files
[ 14/ 98] loading...	 28.6% of 49 files
[ 15/ 98] loading...	 30.6% of 49 files
[ 16/ 98] loading...	 32.7% of 49 filesBacktrace:
          18 (primitive-load "/gnu/store/vbc37bjl6bbmx5ch9zk544h3nh447dzx-guix-cli-core-builder")
In ice-9/eval.scm:
    619:8 17 (_ #f)
In ice-9/boot-9.scm:
    152:2 16 (with-fluid* _ _ _)
In guix/build/compile.scm:
    249:8 15 (compile-files "." "/gnu/store/nphdfgl8c6j18rm907bxkmyj66ik8bcq-guix-cli-core" ("guix/scripts/archive.scm" "guix/scripts/build.scm" "guix/scripts/authenticate.scm" "guix/scripts/c?" ?) ?)
In system/base/target.scm:
     65:6 14 (with-target _ _)
In guix/build/compile.scm:
   253:12 13 (_)
    168:9 12 (loop ("gnu/home/services/symlink-manager.scm" "gnu/home/services/shells.scm" "gnu/services/configuration.scm" "gnu/home/services/utils.scm" "gnu/home/services/xdg.scm" "gnu/home/?" ?) ?)
In ice-9/boot-9.scm:
  3327:17 11 (resolve-interface (gnu home services symlink-manager) #:select _ #:hide _ #:prefix _ #:renamer _ #:version _)
In ice-9/threads.scm:
    390:8 10 (_ _)
In ice-9/boot-9.scm:
  3253:13  9 (_)
In ice-9/threads.scm:
    390:8  8 (_ _)
In ice-9/boot-9.scm:
  3544:20  7 (_)
   2836:4  6 (save-module-excursion #<procedure 7fffdfc64960 at ice-9/boot-9.scm:3545:21 ()>)
  3564:26  5 (_)
In unknown file:
           4 (primitive-load-path "gnu/home/services/symlink-manager" #<procedure 7fffe062ff60 at ice-9/boot-9.scm:3551:37 ()>)
In ice-9/eval.scm:
   626:19  3 (_ #<directory (gnu home services symlink-manager) 7fffe02986e0>)
   182:19  2 (proc #<directory (gnu home services symlink-manager) 7fffe02986e0>)
   142:16  1 (compile-top-call #<directory (gnu home services symlink-manager) 7fffe02986e0> (7 . service-type) ((10 (13 15 7 . name) (5 . home-symlink-manager)) (10 (13 15 7 . extensions) (?)) # ?))
In unknown file:
           0 (%resolve-variable (7 . service-type) #<directory (gnu home services symlink-manager) 7fffe02986e0>)

ERROR: In procedure %resolve-variable:
error: service-type: unbound variable
--8<---------------cut here---------------end--------------->8---

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 31 Jul 2022 22:09:02 GMT) Full text and rfc822 format available.

Notification sent to "(" <paren <at> disroot.org>:
bug acknowledged by developer. (Sun, 31 Jul 2022 22:09:02 GMT) Full text and rfc822 format available.

Message #31 received at 56722-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "(" <paren <at> disroot.org>
Cc: 56722-done <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Mon, 01 Aug 2022 00:08:13 +0200
Hi,

"(" <paren <at> disroot.org> skribis:

> vhallac has determined that commit
> ba22560627f848f40891a56355ff26b6de1380bc, which allowed `guix gc` to
> delete Home generations, caused this issue. Somehow.

Thanks for the heads-up.  The offending commit is reinstated together
with a fix in 4de445f3dae5f5b42d59003cceddecfb296fb73b.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#56722; Package guix. (Sun, 31 Jul 2022 22:19:02 GMT) Full text and rfc822 format available.

Message #34 received at 56722-done <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 56722-done <at> debbugs.gnu.org
Subject: Re: bug#56722: guix pull fails -- unbound variable in
 gnu/home/services/symlink-manager.scm
Date: Sun, 31 Jul 2022 23:18:00 +0100
On Sun Jul 31, 2022 at 11:08 PM BST, Ludovic Courtès wrote:
> Thanks for the heads-up.  The offending commit is reinstated together
> with a fix in 4de445f3dae5f5b42d59003cceddecfb296fb73b.
Thanks, Ludo'!

    -- (




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 29 Aug 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 241 days ago.

Previous Next


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