Subject: Re: bug#64197: Segmentation fault while building‘guix-cli-core.drv’

From: Christopher Baines <[email-masked]>
Date: Wed, 21 Jun 2023 14:50:54 +0100

Ludovic Courtès <[email-masked]> writes:

> I’ve seen this “failure to process the revision” on qa.guix due to a
> segfault while building Guix (from
> <https://data.qa.guix.gnu.org/job/46943>, commit
> f3ec19edf3c3bb902a06ac597e5954b35ee41bce):
>
> loading...	 89.7% of 39 files[ 36/ 78] loading...	 92.3% of 39 files[ 37/ 78] loading...	 94.9% of 39 files[ 38/ 78] loading...	 97.4% of 39 files[ 39/ 78] loading...	100.0% of 39 files[ 39/ 78] compiling...	  0.0% of 39 files[ 40/ 78] compiling...	  2.6% of 39 files[ 41/ 78] compiling...	  5.1% of 39 files[ 42/ 78] compiling...	  7.7% of 39 files[ 43/ 78] compiling...	 10.3% of 39 files[ 44/ 78] compiling...	 12.8% of 39 files[ 45/ 78] compiling...	 15.4% of 39 files[ 46/ 78] compiling...	 17.9% of 39 files[ 42/400] loading...	 21.0% of 200 files[ 43/400] loading...	 21.5% of 200 files[ 44/400] loading...	 22.0% of 200 files[ 45/400] loading...	 22.5% of 200 filesbuilder for `/gnu/store/c9crr8vmiid4cgld1bmxqwcrmicr5572-guix-cli-core.drv' failed due to signal 11 (Segmentation fault)
> @ build-failed /gnu/store/c9crr8vmiid4cgld1bmxqwcrmicr5572-guix-cli-core.drv - 1 builder for `/gnu/store/c9crr8vmiid4cgld1bmxqwcrmicr5572-guix-cli-core.drv' failed due to signal 11 (Segmentation fault)
> cannot build derivation `/gnu/store/9d5as8x5k7z7vipmdvblbid261jpl3r5-guix-cli-core-modules.drv': 1 dependencies couldn't be built

This job looks to have failed at: 2023-06-19T13:54:13.047441

Looking at the logs on beid, I see this:

Jun 19 14:54:08 localhost vmunix: [4845598.954703] GC-marker-1[27719]: segfault at 170 ip 00007ffff7e19a25 sp 00007ffff6ad6c70 error 4 in libgc.so.1.5.1[7ffff7e1
2000+1c000] likely on CPU 15 (core 15, socket 0)
Jun 19 14:54:08 localhost vmunix: [4845598.954734] Code: 00 00 00 00 00 49 89 f9 48 89 c8 41 54 41 81 e1 ff 0f 00 00 55 48 89 fd 83 e7 0f 53 4c 89 c9 48 89 f3 48
 8b 70 30 48 c1 e9 04 <0f> b7 34 4e 49 89 f2 49 09 fa 75 4f 48 8d 4c 08 40 0f b6 31 40 84