Cannot use inferiors in manifest

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Submitted by
Marius Bakke
Severity
important
M
M
Marius Bakke wrote on 4 Apr 2020 17:20
(address . bug-guix@gnu.org)
87ftdjp9a8.fsf@devup.no
Hello,

On the current 'master' branch, using an inferior in a manifest will
cause a crash in 'compute-guix-derivation' as reported in

It can be reproduced by taking the inferior example from the manual:

..and running 'guix build --no-grafts -n -m inferior-example.scm'.

I've attempted to bisect it, but it is difficult because once you have
successfully passed 'compute-guix-derivation', the problem is no longer
reproducible, even on known "bad" commits. So for every successful test
a new commit/channel must be chosen.

Here is a backtrace from a bad commit:

Backtrace:
In ice-9/boot-9.scm:
152:2 19 (with-fluid* _ _ _)
152:2 18 (with-fluid* _ _ _)
142:2 17 (dynamic-wind _ _ #<procedure 7fe4c47d3020 at ice-9/eva…>)
829:9 16 (catch _ _ #<procedure 7fe4c47dd540 at ice-9/eval.scm:…> …)
829:9 15 (catch _ _ #<procedure 7fe4c443eb70 at ice-9/eval.scm:…> …)
152:2 14 (with-fluid* _ _ _)
152:2 13 (with-fluid* _ _ _)
142:2 12 (dynamic-wind _ _ #<procedure 7fe4c4006b00 at ice-9/eva…>)
152:2 11 (with-fluid* _ _ _)
152:2 10 (with-fluid* _ _ _)
152:2 9 (with-fluid* _ _ _)
705:2 8 (call-with-prompt ("build handler") #<procedure 7fe497…> …)
In unknown file:
7 (_ #<procedure 7fe497a71020 at ice-9/eval.scm:330:13 ()> …)
In ice-9/eval.scm:
619:8 6 (_ #(#(#(#<directory (guix ui) 7fe4c699f960>) #<s…> …) …))
626:19 5 (_ #(#(#(#<directory (guix ui) 7fe4c699f960>) #<s…> …) …))
In guix/derivations.scm:
357:5 4 (substitution-oracle #<store-connection 256.99 7fe4b6b…> …)
329:16 3 (derivation-input-fold #<procedure 7fe4c4bfc868 at gui…> …)
In ice-9/eval.scm:
619:8 2 (_ #(#(#(#(#<directory (guix store) 7fe4c68d3…>) …) …) …))
619:8 1 (_ #(#(#<directory (guix store) 7fe4c68d3c80> #<var…> …)))
In unknown file:
0 (put-bytevector #<closed: file 7fe4c3a77620> #vu8(1 0 …) …)

ERROR: In procedure put-bytevector:
In procedure put-bytevector: Wrong type argument in position 1 (expecting open output port): #<closed: file 7fe4c3a77620>
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6Ipb8ACgkQoqBt8qM6
VPq5WAf8DVJ16nLyfcl0ggJ9csqKmmz4u4VR61jFUd7YEDQm8ZglWnhxZymuvXM9
JEV7bqLsUo4XyrlJ+tXR/FQg4ZxQeg+0rNGuCp/f2bbr0NZMu61HEOFB/ygezylg
2I6f7t/Bha0uRZHOiJIJMidb/LRh34k0PzQodGeVWz7Lpme4mjazJwRZolgK1NYg
n5GA2IsXZvemmj9wq1cA9TU6v5nb/90NZIOlheOpnI6fIEPR7J6FxE+qdshjwhWM
TYB4zhkAeEe5wVvQ/R6b66B6vELjAx9UwO9pYT4ogthWBE6XrUnBVEbZ8NsWiPDr
6c3BPCfLFuEWdRZhug2drpDO7O5ulA==
=LRk1
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 4 Apr 2020 17:38
control message for bug #40428
(address . control@debbugs.gnu.org)
87mu7rjm6d.fsf@gnu.org
severity 40428 important
quit
L
L
Ludovic Courtès wrote on 4 Apr 2020 18:54
Re: bug#40428: Cannot use inferiors in manifest
(name . Marius Bakke)(address . mbakke@fastmail.com)(address . 40428-done@debbugs.gnu.org)
87imifjinp.fsf@gnu.org
Hi Marius,

Marius Bakke <mbakke@fastmail.com> skribis:

Toggle quote (3 lines)
> ERROR: In procedure put-bytevector:
> In procedure put-bytevector: Wrong type argument in position 1 (expecting open output port): #<closed: file 7fe4c3a77620>

This is now fixed in 8ed597f4a261fe188de82cd1f5daed83dba948eb.

Thanks for investigating!

Ludo’.
Closed
M
M
Marius Bakke wrote on 4 Apr 2020 19:32
Re: bug#40428: closed (Re: bug#40428: Cannot use inferiors in manifest)
(address . 40428@debbugs.gnu.org)
878sjbp35v.fsf@devup.no
help-debbugs@gnu.org (GNU bug Tracking System) writes:

Toggle quote (9 lines)
> Marius Bakke <mbakke@fastmail.com> skribis:
>
>> ERROR: In procedure put-bytevector:
>> In procedure put-bytevector: Wrong type argument in position 1 (expecting open output port): #<closed: file 7fe4c3a77620>
>
> This is now fixed in 8ed597f4a261fe188de82cd1f5daed83dba948eb.
>
> Thanks for investigating!

Thanks for the lightning-quick fix! :-)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6IxL0ACgkQoqBt8qM6
VPqYvAgAut6Evc/pYCFY/ZmZsSkU3aR4CNIOpqBs+sr6CsksC3Nl5cuHLCHHe/wt
SeePkOg7sPK7K20SjKHQinocoJnhZNJoi1czJZYjPFPxXc9twMBjE99q5VACvO6w
qTgQ6N1Dblj5bvh06bbDKkvVfTjdGjVTWhs2xftPnvnZmtUCztXg43qwt6e5faUp
oyapghHvNPGFR2Qf1X96nGYbqVZ1AMs0g3R0i4295iHCondFV34i7ML4X4XIG/WS
NXnJaRQcHvfmuYxVvd2wjwg28kQmZloGL1CoAejWKjhg5W60rI4PRqhaZUzv2FQ7
hdC1HENjNC+t5dpyIBwuIbbJkd+R+g==
=y5u1
-----END PGP SIGNATURE-----

?