Subject: bug#47543: “Repeated allocation of very large block” during ‘guix pull’

From: Janneke Nieuwenhuizen <[email-masked]>
Date: Fri, 22 Sep 2023 19:25:09 +0200

Ludovic Courtès writes:

> If you experience it, please share the command line and command output!

Never seen this before, but here it is...

--8<---------------cut here---------------start------------->8---
18:55:29 janneke@dundal:~/src/guix/master 
$ guix pull --commit=6bd17a0806
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git	6bd17a0
Computing Guix derivation for 'x86_64-linux'... /Backtrace:
In ./guix/store.scm:
  1380:11 19-GC Warning: Repeated allocation of very large block (appr. size 62525440):
	May lead to memory leak and poor performance
\GC Warning: Repeated allocation of very large block (appr. size 31264768):
	May lead to memory leak and poor performance
/(loop (#<gexp-input #<<program-file> name: "guix-command" gexp: #<gexp (begin (set! %load-extension?> ?) ?)
   1293:4 18 (call-with-build-handler #<procedure 7f8fca01e500 at ./guix/store.scm:1333:2 (continue store things mo?> ?)
  2168:24 17 (run-with-store #<store-connection 256.99 7f8fef5000a0> #<procedure 7f8fceb426a0 at ./guix/gexp.scm:89?> ?)
In ./guix/gexp.scm:
   897:13 16 (_ #<store-connection 256.99 7f8fef5000a0>)
In ./guix/store.scm:
   1996:8 15 (_ #<store-connection 256.99 7f8fef5000a0>)
In ./guix/gexp.scm:
   299:22 14 (_ #<store-connection 256.99 7f8fef5000a0>)
   1180:2 13 (_ #<store-connection 256.99 7f8fcafee820>)
   1046:2 12 (_ #<store-connection 256.99 7f8fcafee820>)
    892:4 11 (_ #<store-connection 256.99 7f8fcafee820>)
In ./guix/store.scm:
  2053:12 10 (_ #<store-connection 256.99 7f8fcafee820>)
   1375:6  9 (map/accumulate-builds #<store-connection 256.99 7f8fcafee820> #<procedure 7f8fcc067ca0 at ./guix/stor?> ?)
  1380:11  8/GC Warning: Repeated allocation of very large block (appr. size 121376768):
	May lead to memory leak and poor performance
-(loop (#<gexp-input #<<computed-file> name: "guix-module-union" gexp: #<gexp (begin (use-modules (g?> ?) ?)
   1293:4  7 (call-with-build-handler #<procedure 7f8fcc067c80 at ./guix/store.scm:1333:2 (continue store things mo?> ?)
  2168:24  6 (run-with-store #<store-connection 256.99 7f8fcafee820> #<procedure 7f8fcc0b17c0 at ./guix/gexp.scm:89?> ?)
In ./guix/gexp.scm:
   897:13  5 (_ #<store-connection 256.99 7f8fcafee820>)
In ./guix/store.scm:
   1996:8  4 (_ #<store-connection 256.99 7f8fcafee820>)
In ./guix/gexp.scm:
   299:22  3 (_ #<store-connection 256.99 7f8fcafee820>)
In ./guix/store.scm:
  2040:38  2 (_ #<store-connection 256.99 7f8fcafee820>)
In ./guix/derivations.scm:
   965:17  1 (derivation #<store-connection 256.99 7f8fcafee820> "guix-module-union" "/gnu/store/4gvgcfdiz67wv04ihq?" ?)
In ./guix/store.scm:
   1036:9  0 (_ #<store-connection 256.99 7f8fcafee820> "guix-module-union.drv" #vu8(68 101 114 105 118 101 40 91 ?) _)

./guix/store.scm:1036:9: ERROR:
  1. &store-protocol-error:
      message: "error parsing derivation `/gnu/store/2zb0lb5bkg5868vvwqi6a8nh07p23610-guix-6bd17a080-modules.drv': expected string `Derive(['"
      status: 1
guix pull: error: You found a bug: the program '/gnu/store/sv5bgbzisyii7g45c3bd3w8jk59gfvx0-compute-guix-derivation'
failed to compute the derivation for Guix (version: "6bd17a0806ad32d1493ac51a7443276f719c4224"; system: "x86_64-linux";
host version: "445a0359083388b5ee686e6e855f94a3aac5f79c"; pull-version: 1).
Please report the COMPLETE output above by email to <[email-masked]>.

[1]19:16:35 janneke@dundal:~/src/guix/master 
--8<---------------cut here---------------end--------------->8---

This seems to be somewhat repeatable, it was the third time in a row
this failed.  After the second time, I removed ~/.cache/guix/checkouts.

Also

--8<---------------cut here---------------start------------->8---
19:20:54 janneke@dundal:~/src/guix/master 
$ uname -a
Linux dundal 6.2.12-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
19:20:56 janneke@dundal:~/src/guix/master 
$ guix system describe
Generation 141	May 15 2023 22:36:13	(current)
  file name: /var/guix/profiles/system-141-link
  canonical file name: /gnu/store/w3hnhxdk01fka2lqfjv37khraw2psidh-system
  label: GNU with Linux-Libre 6.2.12
  bootloader: grub
  root device: /dev/mapper/guix
  kernel: /gnu/store/0fms1i0n62h3xk9hlmyh7j8pbbcaxdbg-linux-libre-6.2.12/bzImage
  channels:
    guix:
      repository URL: https://git.savannah.gnu.org/git/guix.git
      commit: 960647f0161c2c99ea3417d129662181e882cfeb
  configuration file: /gnu/store/2cj3gl2z585xn6xy81wramjnqxqzy8yb-configuration.scm
19:21:01 janneke@dundal:~/src/guix/master 
$ guix describe
Generation 92	Jul 23 2023 20:35:32	(current)
  guix 445a035
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 445a0359083388b5ee686e6e855f94a3aac5f79c
19:21:04 janneke@dundal:~/src/guix/master 
$ free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       540Mi        12Gi       229Mi       2.0Gi        14Gi
Swap:          15Gi          0B        15Gi

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

Not my daily driver, wanted to update before testing the new Smart
Hurdloading patch set...

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <[email-masked]>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com