GNU bug report logs

#34209 guix --version: ERROR: In procedure display: In procedure fport_write: Broken pipe

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to bug-guix@gnu.org:
bug#34209; Package guix. (Sat, 26 Jan 2019 16:32:02 GMT) (full text, mbox, link).


Acknowledgement sent to Pierre Neidhardt <mail@ambrevar.xyz>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org. (Sat, 26 Jan 2019 16:32:02 GMT) (full text, mbox, link).


Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Pierre Neidhardt <mail@ambrevar.xyz>
To: bug-guix@gnu.org
Subject: guix --version: ERROR: In procedure display: In procedure fport_write: Broken pipe
Date: Sat, 26 Jan 2019 17:31:31 +0100
[Message part 1 (text/plain, inline)]
In Bash:
--8<---------------cut here---------------start------------->8---
$ guix --version | awk '{print $4; exit}'
Backtrace:
           5 (primitive-load "/home/ambrevar/.config/guix/current/bin/guix")
In guix/ui.scm:
    464:2  4 (show-version-and-exit _)
In ice-9/format.scm:
  1590:19  3 (format #t "Copyright ~a 2019 ~a" "(C)" "the Guix authors\n")
   261:19  2 (format:format-work "Copyright ~a 2019 ~a" ("(C)" "the Guix authors\n"))
    70:10  1 (format:out-obj-padded _ _ _ _)
In unknown file:
           0 (display "the Guix authors\n" #<output: file 1>)

ERROR: In procedure display:
In procedure fport_write: Broken pipe
--8<---------------cut here---------------end--------------->8---

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix@gnu.org:
bug#34209; Package guix. (Sun, 27 Jan 2019 19:44:02 GMT) (full text, mbox, link).


Message #8 received at 34209@debbugs.gnu.org (full text, mbox, reply):

From: Ricardo Wurmus <rekado@elephly.net>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: 34209@debbugs.gnu.org
Subject: Re: bug#34209: guix --version: ERROR: In procedure display: In procedure fport_write: Broken pipe
Date: Sun, 27 Jan 2019 18:57:08 +0100
Pierre Neidhardt <mail@ambrevar.xyz> writes:

> In Bash:
> --8<---------------cut here---------------start------------->8---
> $ guix --version | awk '{print $4; exit}'
> Backtrace:
>            5 (primitive-load "/home/ambrevar/.config/guix/current/bin/guix")
> In guix/ui.scm:
>     464:2  4 (show-version-and-exit _)
> In ice-9/format.scm:
>   1590:19  3 (format #t "Copyright ~a 2019 ~a" "(C)" "the Guix authors\n")
>    261:19  2 (format:format-work "Copyright ~a 2019 ~a" ("(C)" "the Guix authors\n"))
>     70:10  1 (format:out-obj-padded _ _ _ _)
> In unknown file:
>            0 (display "the Guix authors\n" #<output: file 1>)
>
> ERROR: In procedure display:
> In procedure fport_write: Broken pipe
> --8<---------------cut here---------------end--------------->8---

This happens because awk closes the stream while we’re writing to it.
We could wrap the things in “run-guix” in (leave-on-EPIPE …).

Or we tell Guix not to ignore SIGPIPE.

See also https://issues.guix.info/issue/29826.

--
Ricardo





Information forwarded to bug-guix@gnu.org:
bug#34209; Package guix. (Sun, 27 Jan 2019 19:45:01 GMT) (full text, mbox, link).


Message #11 received at 34209@debbugs.gnu.org (full text, mbox, reply):

From: Ricardo Wurmus <rekado@elephly.net>
To: 34209@debbugs.gnu.org
Subject: Re: bug#34209: guix --version: ERROR: In procedure display: In procedure fport_write: Broken pipe
Date: Sun, 27 Jan 2019 18:57:37 +0100
merge 34209 29826





Merged 29826 34209. Request was from Ricardo Wurmus <rekado@elephly.net> to control@debbugs.gnu.org. (Thu, 31 Jan 2019 14:28:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Nov 4 22:22:10 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.