GNU bug report logs - #34209
guix --version: ERROR: In procedure display: In procedure fport_write: Broken pipe

Previous Next

Package: guix;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Sat, 26 Jan 2019 16:32:02 UTC

Severity: normal

Merged with 29826

Done: Simon Tournier <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34209 in the body.
You can then email your comments to 34209 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34209; Package guix. (Sat, 26 Jan 2019 16:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 26 Jan 2019 16:32:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: bug-guix <at> 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 <at> gnu.org:
bug#34209; Package guix. (Sun, 27 Jan 2019 19:44:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34209 <at> 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 <at> 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 <at> gnu.org:
bug#34209; Package guix. (Sun, 27 Jan 2019 19:45:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 34209 <at> 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 <at> elephly.net> to control <at> debbugs.gnu.org. (Thu, 31 Jan 2019 14:28:02 GMT) Full text and rfc822 format available.

Reply sent to Simon Tournier <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Mon, 16 Jun 2025 11:50:10 GMT) Full text and rfc822 format available.

Notification sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
bug acknowledged by developer. (Mon, 16 Jun 2025 11:50:10 GMT) Full text and rfc822 format available.

Message #18 received at 34209-done <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34209-done <at> debbugs.gnu.org
Subject: Re: bug#34209: guix --version: ERROR: In procedure display: In
 procedure fport_write: Broken pipe
Date: Mon, 16 Jun 2025 12:15:53 +0200
Hi,

On Sat, 26 Jan 2019 at 17:31, Pierre Neidhardt <mail <at> ambrevar.xyz> wrote:

> $ 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

Now it’s fixed.

--8<---------------cut here---------------start------------->8---
$ guix --version | awk '{print $4; exit}'
b17268b53e9fb1b1ac2ad29fe7633b52744fee2f
--8<---------------cut here---------------end--------------->8---

Therefore, closing this old bug:

    https://issues.guix.gnu.org/issue/34209

Feel free to reopen if I’m missing something.

Cheers,
simon




Reply sent to Simon Tournier <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Mon, 16 Jun 2025 11:50:11 GMT) Full text and rfc822 format available.

Notification sent to Alex Vong <alexvong1995 <at> gmail.com>:
bug acknowledged by developer. (Mon, 16 Jun 2025 11:50:11 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. (Tue, 15 Jul 2025 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified today.

Previous Next


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