Subject: bug#48595: `guix install mes` fails in 'check'-phase

From: Ludovic Courtès <[email-masked]>
Date: Sun, 13 Jun 2021 14:52:41 +0200

Hi,

(Cc: Janneke.)

Gabriel Wicki <[email-masked]> skribis:

> i tried running `guix install mes` which fails on my x86_64 debian
> machine. CI fails as well
> (https://ci.guix.gnu.org/build/286577/details).
>
> log output shows a couple of segmentation faults and an undefined
> variable in phase 'check':
>
> test/test10/hello.sh
> + '[' amd64 = amd64 ']'
> + ./test/results/test1-binary
> + . ./sha256.sh
> ++ set -ex
> test/test1/hello.sh: line 37:   171 Segmentation fault      ./test/results/test1-binary < test/test1/hex0.hex0 > test/test1/proof1
> + '[' amd64 = x86 ']'
> + exit 0
> make: *** [makefile:104: test1-binary] Error 139
> [...]
> test/test7/hello.sh: line 31:   175 Segmentation fault      ./test/results/test7-binary test/test7/hex1.hex1 > test/test7/proof
> [...]
> test/test3/hello.sh: line 23: GET_MACHINE_FLAGS: unbound variable

Could this be non-deterministic?

I just got substitutes from bayfront.guix.gnu.org:

--8<---------------cut here---------------start------------->8---
$ guix build mes 
1.4 MB will be downloaded:
   /gnu/store/2x63a7415vfz605pw33awfccrn0z74dg-mes-0.23
substituting /gnu/store/2x63a7415vfz605pw33awfccrn0z74dg-mes-0.23...
downloading from https://bayfront.guix.gnu.org/nar/lzip/2x63a7415vfz605pw33awfccrn0z74dg-mes-0.23 ...
 mes-0.23  1.3MiB                                       3.4MiB/s 00:00 [##################] 100.0%

/gnu/store/2x63a7415vfz605pw33awfccrn0z74dg-mes-0.23
$ guix build mes -d --no-grafts
/gnu/store/nb6vmrz197bfpz4w5mdrmj0r10mszzig-mes-0.23.drv
ludo@ribbon ~/src/guix$ guix describe
Generacio 185   Jun 07 2021 15:07:46    (nuna)
  guix e3611cc
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: e3611cc412e7b1c750a56d17fb1b7cde684baa3f
--8<---------------cut here---------------end--------------->8---

I rebuilt it with ‘--check’ and it went fine.  Hmm!

Thoughts?

Ludo’.