GNU bug report logs -
#66254
"guix --version | head -1" crashes most of the time
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66254 in the body.
You can then email your comments to 66254 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#66254
; Package
guix
.
(Thu, 28 Sep 2023 10:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Clément Lassieur <clement <at> lassieur.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 28 Sep 2023 10:22:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> guix --version | cat | head -1
works
> guix --version | head -1
crashes most of the time
(on foreign distro)
See attached log. Same bug with 'head' from Guix coreutils.
Thanks,
Clément
[Message part 2 (text/html, inline)]
[log.txt (text/plain, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#66254
; Package
guix
.
(Thu, 12 Oct 2023 08:09:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 66254 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Clément,
On Thu, 28 Sep 2023 at 12:20, Clément Lassieur <clement <at> lassieur.org> wrote:
>> guix --version | cat | head -1
> works
Not for me.
--8<---------------cut here---------------start------------->8---
$ guix --version | cat | head -1
guix (GNU Guix) 6113e0529d61df7425f64e30a6bf77f7cfdfe5a5
Backtrace:
3 (primitive-load "/home/simon/.config/guix/current/bin/guix")
In guix/ui.scm:
2312:7 2 (run-guix . _)
563:2 1 (show-version-and-exit _)
In unknown file:
0 (display "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n" #<unde…>)
ERROR: In procedure display:
In procedure fport_write: Broken pipe
--8<---------------cut here---------------end--------------->8---
>> guix --version | head -1
> crashes most of the time
And note that:
--8<---------------cut here---------------start------------->8---
$ guix --version | head -2
guix (GNU Guix) 6113e0529d61df7425f64e30a6bf77f7cfdfe5a5
Copyright (C) 2023 the Guix authors
--8<---------------cut here---------------end--------------->8---
Well, I do not know if it is related, please note:
--8<---------------cut here---------------start------------->8---
(define* (show-version-and-exit #:optional (command (car (command-line))))
"Display version information for COMMAND and `(exit 0)'."
(simple-format #t "~a (~a) ~a~%"
command %guix-package-name %guix-version)
(format #t "Copyright ~a 2023 ~a"
--8<---------------cut here---------------end--------------->8---
Anyway. The issue is from leave-on-EPIPE. This patch fixes the issue,
I guess.
[p.patch (text/x-diff, inline)]
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)
[Message part 3 (text/plain, inline)]
Does it fix the issue?
Cheers,
simon
Information forwarded
to
bug-guix <at> gnu.org
:
bug#66254
; Package
guix
.
(Thu, 12 Oct 2023 08:59:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 66254 <at> debbugs.gnu.org (full text, mbox):
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
bug closed, send any further explanations to
66254 <at> debbugs.gnu.org and Clément Lassieur <clement <at> lassieur.org>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 28 Oct 2023 10:02:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 25 Nov 2023 12:24:09 GMT)
Full text and
rfc822 format available.
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.