GNU bug report logs - #66254
"guix --version | head -1" crashes most of the time

Previous Next

Package: guix;

Reported by: Clément Lassieur <clement <at> lassieur.org>

Date: Thu, 28 Sep 2023 10:22:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 66254 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: Simon Tournier <zimon.toutoune <at> gmail.com>
Cc: 66254 <at> debbugs.gnu.org
Subject: Re: bug#66254: "guix --version | head -1" crashes most of the time
Date: Thu, 12 Oct 2023 10:58:17 +0200
Simon Tournier <zimon.toutoune <at> gmail.com> writes:

> Hi Clément,

Hey Simon,

[...]

> Anyway.  The issue is from leave-on-EPIPE.  This patch fixes the issue,
> I guess.
>
> diff --git a/guix/ui.scm b/guix/ui.scm
> index 6f2d4fe245..507bc67f1d 100644
> --- a/guix/ui.scm
> +++ b/guix/ui.scm
> @@ -2309,7 +2309,7 @@ (define (run-guix . args)
>        ((or ("-h") ("--help"))
>         (leave-on-EPIPE (show-guix-help)))
>        ((or ("-V") ("--version"))
> -       (show-version-and-exit "guix"))
> +       (leave-on-EPIPE (show-version-and-exit "guix")))
>        (((? option? o) args ...)
>         (format (current-error-port)
>                 (G_ "guix: unrecognized option '~a'~%") o)
>
>
> Does it fix the issue?

Yes indeed!  Thanks :)

Clément




This bug report was last modified 1 year and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.