Subject: Re: bug#47764: guix pull bug

From: Ludovic Courtès <[email-masked]>
Date: Sun, 18 Apr 2021 12:28:09 +0200

Hi Zelphir,

Zelphir Kaltstahl <[email-masked]> skribis:

> $ guix pull
> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> Authenticating channel 'guix', commits 9edb3f6 to 4dff6ec (84 new commits)...
> Building from this channel:
>   guix      https://git.savannah.gnu.org/git/guix.git	4dff6ec
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> downloading from https://ci.guix.gnu.org/nar/lzip/lfjklynfh3kwsx0iwfwcm71y4qf36ww3-compute-guix-derivation ...
>  compute-guix-derivation  1KiB        108KiB/s 00:00 [##################] 100.0%
>
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> downloading from https://ci.guix.gnu.org/nar/lzip/1qd88064j2iicfnkxf5ylffmvisnsdlw-curl-7.76.0 ...
>  curl-7.76.0  385KiB                514.2MiB/s 00:00 [##################] 100.0/
>
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> downloading from https://ci.guix.gnu.org/nar/lzip/531rwkb8m6yccq4l1mkrqxclrqwy0jj3-git-minimal-2.31.1 ...
>  git-minimal-2.31.1  4.1MiB           5.8MiB/s 00:01 [##################] 100.0/
>
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> downloading from https://ci.guix.gnu.org/nar/lzip/kqmxkrw1kzq486ywgbjw74r6rz1cjnxl-guile-avahi-0.4.0-1.6d43caf ...
>  guile-avahi-0.4.0-1.6d43caf  54KiB 101.3MiB/s 00:00 [##################] 100.0%
>
> downloading from https://ci.guix.gnu.org/nar/lzip/h3mqirjnv5q7qyfkpswyvxhcarsz6is7-guile-git-0.5.0 ...
>  guile-git-0.5.0                            1.13GiB/s 00:00 | 551KiB transferred
>
> Backtrace:
> In guix/ui.scm:
>   2164:12 19 (run-guix-command _ . _)
> In guix/scripts/substitute.scm:
>     652:2 18 (guix-substitute . _)
> In unknown file:
>           17 (with-continuation-barrier #<procedure thunk ()>)
> In ice-9/boot-9.scm:
>   1736:10 16 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>           15 (apply-smob/0 #<thunk 7fda6a3dd2a0>)
> In ice-9/boot-9.scm:
>   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
>   1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>   1731:15 12 (with-exception-handler #<procedure 7fda698e68d0 at ic?> ?)
> In guix/scripts/substitute.scm:
>    701:17 11 (_)
>     410:7 10 (process-substitution _ "/gnu/store/62hfr56ipl706k17g0?" ?)
> In ice-9/boot-9.scm:
>   1736:10  9 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/scripts/substitute.scm:
>     419:9  8 (_)
> In ice-9/boot-9.scm:
>   1731:15  7 (with-exception-handler #<procedure 7fda68cffcc0 at ic?> ?)
>   1669:16  6 (raise-exception _ #:continuable? _)
>   1667:16  5 (raise-exception _ #:continuable? _)
>   1669:16  4 (raise-exception _ #:continuable? _)
> Backtrace:
>           15 (primitive-load "/gnu/store/lfjklynfh3kwsx0iwfwcm71y4qf36ww3-compute-guix-derivation")
> In ice-9/eval.scm:
>     155:9 14 (_ _)
>     159:9 13 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
> In ice-9/boot-9.scm:
>     152:2 12 (with-fluid* _ _ _)
>     152:2 11 (with-fluid* _ _ _)
> In ./guix/store.scm:
>   2066:24 10 (run-with-store #<store-connection 256.99 7f1b193713c0> _ #:guile-for-build _ #:system _ #:target _)
>    1900:8  9 (_ _)
> In ./guix/gexp.scm:
>    256:18  8 (_ _)
>    1137:2  7 (_ _)
>    1003:2  6 (_ _)
>     849:4  5 (_ _)
> In ./guix/store.scm:
>   1948:12  4 (_ #<store-connection 256.99 7f1b193713c0>)
>    1362:5  3 (map/accumulate-builds #<store-connection 256.99 7f1b193713c0> _ _)
>   1373:15  2 (_ #<store-connection 256.99 7f1b193713c0> _ _)
>    719:11  1 (process-stderr #<store-connection 256.99 7f1b193713c0> _)
> In ./guix/serialization.scm:
>      80:6  0 (read-int #<input-output: file 10>)
>
> ./guix/serialization.scm:80:6: In procedure read-int:
> ERROR:
>   1. &nar-error:
>       file: #f
>       port: #<input-output: file 10>
> guix pull: error: You found a bug: the program '/gnu/store/lfjklynfh3kwsx0iwfwcm71y4qf36ww3-compute-guix-derivation'
> failed to compute the derivation for Guix (version: "4dff6ecde85eec473ab231cf75f51e98e8aca1e9"; system: "x86_64-linux";
> host version: "7327295462fccae4ee3e9bf74962c82d3445fec8"; pull-version: 1).
> Please report it by email to <[email-masked]>.

Apparently, what happens is that ‘guix substitute’ (invoked by the
daemon) crashes.

Could you say which version of the daemon you’re running?  Try
“ps aux | grep guix-daemon” and report the store file name.  That will
allow us to map line numbers to actual source.

Thanks for the detailed report!

Ludo’.