Subject: bug#46879: Non-deterministic failures while building Guix with Guile 3.0.5

From: Ludovic Courtès <[email-masked]>
Date: Tue, 02 Mar 2021 19:21:42 +0100

Hi,

I stumbled upon this error while building the ‘guix’ channel for commit
fee4afd84b772ce111629dd3ff7ff89636539859:

--8<---------------cut here---------------start------------->8---
@ build-started /gnu/store/m7128g8wi8p529ifbqcbgpi0szvrwq8n-guix-cli.drv - x86_64-linux /var/log/guix/drvs/m7//128g8wi8p529ifbqcbgpi0szvrwq8n-guix-cli.drv.bz2 22747
[  0/106] loading...	  0.0% of 53 files
[  1/106] loading...	  1.9% of 53 files
[  2/106] loading...	  3.8% of 53 files
[  3/106] loading...	  5.7% of 53 files
[  4/106] loading...	  7.5% of 53 files
[  5/106] loading...	  9.4% of 53 files
[  6/106] loading...	 11.3% of 53 files
[  7/106] loading...	 13.2% of 53 filesBacktrace:
In ice-9/boot-9.scm:
   222:29 19 (map1 (((gnu packages linux)) ((gnu packages man)) ((gnu packages nano)) ((gnu packages nvi)) ((gnu packages package-management)) ((gnu packages pciutils)) ((gnu packages texinfo)) # ?))
   222:29 18 (map1 (((gnu packages man)) ((gnu packages nano)) ((gnu packages nvi)) ((gnu packages package-management)) ((gnu packages pciutils)) ((gnu packages texinfo)) ((gnu packages zile)) # ?))
   222:29 17 (map1 (((gnu packages nano)) ((gnu packages nvi)) ((gnu packages package-management)) ((gnu packages pciutils)) ((gnu packages texinfo)) ((gnu packages zile)) ((gnu services)) ((?)) ?))
   222:29 16 (map1 (((gnu packages nvi)) ((gnu packages package-management)) ((gnu packages pciutils)) ((gnu packages texinfo)) ((gnu packages zile)) ((gnu services)) ((gnu services shepherd)) # ?))
   222:29 15 (map1 (((gnu packages package-management)) ((gnu packages pciutils)) ((gnu packages texinfo)) ((gnu packages zile)) ((gnu services)) ((gnu services shepherd)) ((gnu services base)) # ?))
   222:29 14 (map1 (((gnu packages pciutils)) ((gnu packages texinfo)) ((gnu packages zile)) ((gnu services)) ((gnu services shepherd)) ((gnu services base)) ((gnu bootloader)) ((gnu system #)) # ?))
   222:29 13 (map1 (((gnu packages texinfo)) ((gnu packages zile)) ((gnu services)) ((gnu services shepherd)) ((gnu services base)) ((gnu bootloader)) ((gnu system shadow)) ((gnu system nss)) (#) ?))
   222:29 12 (map1 (((gnu packages zile)) ((gnu services)) ((gnu services shepherd)) ((gnu services base)) ((gnu bootloader)) ((gnu system shadow)) ((gnu system nss)) ((gnu system locale)) ((?)) ?))
   222:29 11 (map1 (((gnu services)) ((gnu services shepherd)) ((gnu services base)) ((gnu bootloader)) ((gnu system shadow)) ((gnu system nss)) ((gnu system locale)) ((gnu system pam)) ((gnu ?)) ?))
   222:29 10 (map1 (((gnu services shepherd)) ((gnu services base)) ((gnu bootloader)) ((gnu system shadow)) ((gnu system nss)) ((gnu system locale)) ((gnu system pam)) ((gnu system #)) ((gnu ?)) ?))
   222:17  9 (map1 (((gnu services base)) ((gnu bootloader)) ((gnu system shadow)) ((gnu system nss)) ((gnu system locale)) ((gnu system pam)) ((gnu system linux-initrd)) ((gnu system uuid)) (#) ?))
  3297:17  8 (resolve-interface (gnu services base) #:select _ #:hide _ #:prefix _ #:renamer _ #:version _)
In ice-9/threads.scm:
    390:8  7 (_ _)
In ice-9/boot-9.scm:
  3223:13  6 (_)
In ice-9/threads.scm:
    390:8  5 (_ _)
In ice-9/boot-9.scm:
  3507:20  4 (_)
   2806:4  3 (save-module-excursion #<procedure 7fffe1b327e0 at ice-9/boot-9.scm:3508:21 ()>)
  3527:26  2 (_)
In unknown file:
           1 (primitive-load-path "gnu/services/base" #<procedure 7fffe18ca400 at ice-9/boot-9.scm:3514:37 ()>)
In gnu/services/base.scm:
   1883:8  0 (_)

gnu/services/base.scm:1883:8: In procedure allocate-struct: Wrong type argument in position 1 (expecting struct): #<procedure %user-account?-procedure (obj)>
builder for `/gnu/store/m7128g8wi8p529ifbqcbgpi0szvrwq8n-guix-cli.drv' failed with exit code 1
@ build-failed /gnu/store/m7128g8wi8p529ifbqcbgpi0szvrwq8n-guix-cli.drv - 1 builder for `/gnu/store/m7128g8wi8p529ifbqcbgpi0szvrwq8n-guix-cli.drv' failed with exit code 1
cannot build derivation `/gnu/store/53ispcqx4wfqnfxbggxdi0h5bhm2i4n5-guix-cli-modules.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/qlai4gy7gkdp7fpjwn94mig8mhfk7vvn-guix-system-tests.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/s43p40z233ilnr1w0kbyx6y0fv6c63sr-guix-fee4afd84-modules.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/fa6m8apnhg61q5vywq34rv20aiqaq1qx-guix-fee4afd84.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/ah90pwc8xvand39j2z8zfxf2kkzzy6ay-profile.drv': 1 dependencies couldn't be built
--8<---------------cut here---------------end--------------->8---

Looks like a GC/memory corruption/thread-safety issue—scary.

Ludo’.