GNU bug report logs - #5238
23.1.50; gzip: stdout: Broken pipe

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 17 Dec 2009 14:42:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.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 5238 in the body.
You can then email your comments to 5238 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Thu, 17 Dec 2009 14:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 17 Dec 2009 14:42:02 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: emacs-pretest-bug <at> gnu.org
Cc: rfrancoise <at> debian.org
Subject: 23.1.50; gzip: stdout: Broken pipe
Date: Thu, 17 Dec 2009 08:49:26 +0800
Gentlemen, both
$ emacs -Q     -eval '(compile "locale -m")'
$ emacs -Q -nw -eval '(compile "locale -m")'
work, however the former has lots of "gzip: stdout: Broken pipe",
the latter doesn't.
$ emacs -Q     -eval '(compile "strace locale -m")'
shows it happens around
clone(child_stack=0, flags=...

In GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-29 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20091128-1)

I notice emacs 23.1.1 is also affected.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Fri, 18 Dec 2009 00:32:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 5238 <at> debbugs.gnu.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Fri, 18 Dec 2009 01:38:17 +0200
> Gentlemen, both
> $ emacs -Q     -eval '(compile "locale -m")'
> $ emacs -Q -nw -eval '(compile "locale -m")'
> work, however the former has lots of "gzip: stdout: Broken pipe",
> the latter doesn't.
> $ emacs -Q     -eval '(compile "strace locale -m")'
> shows it happens around
> clone(child_stack=0, flags=...

A simpler test case:

1. emacs -Q
2. M-! locale -m RET

Fails for Emacs 23, but not for Emacs 22 or Emacs 23 run with -nw.

-- 
Juri Linkov
http://www.jurta.org/emacs/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sat, 13 Nov 2010 22:26:01 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Juri Linkov <juri <at> jurta.org>
Cc: 5238 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sat, 13 Nov 2010 17:29:56 -0500
Juri Linkov <juri <at> jurta.org> wrote:

> > Gentlemen, both
> > $ emacs -Q     -eval '(compile "locale -m")'
> > $ emacs -Q -nw -eval '(compile "locale -m")'
> > work, however the former has lots of "gzip: stdout: Broken pipe",
> > the latter doesn't.
> > $ emacs -Q     -eval '(compile "strace locale -m")'
> > shows it happens around
> > clone(child_stack=0, flags=...
>
> A simpler test case:
>
> 1. emacs -Q
> 2. M-! locale -m RET
>
> Fails for Emacs 23, but not for Emacs 22 or Emacs 23 run with -nw.

I can't reproduce this anymore, so presumably this old bug is fixed.
Juri, could you confirm?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sun, 14 Nov 2010 01:06:01 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: cyd <at> stupidchicken.com
Cc: juri <at> jurta.org, 5238 <at> debbugs.gnu.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sun, 14 Nov 2010 09:10:33 +0800
I still see it in
$ emacs-snapshot --version
GNU Emacs 24.0.50.1




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sun, 14 Nov 2010 22:01:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5238 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sun, 14 Nov 2010 22:00:40 +0000
>> 1. emacs -Q
>> 2. M-! locale -m RET
>>
>> Fails for Emacs 23, but not for Emacs 22 or Emacs 23 run with -nw.
>
> I can't reproduce this anymore, so presumably this old bug is fixed.
> Juri, could you confirm?

I still can reproduce this bug on the newest Ubuntu version 10.10 and
GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.22.0) of 2010-10-22




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Fri, 11 Feb 2011 14:22:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Juri Linkov <juri <at> jurta.org>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 5238 <at> debbugs.gnu.org,
	jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Fri, 11 Feb 2011 15:30:28 +0100
2010-11-14 23:00, Juri Linkov skrev:
>>> 1. emacs -Q
>>> 2. M-! locale -m RET
>>>
>>> Fails for Emacs 23, but not for Emacs 22 or Emacs 23 run with -nw.
>>
>> I can't reproduce this anymore, so presumably this old bug is fixed.
>> Juri, could you confirm?
>
> I still can reproduce this bug on the newest Ubuntu version 10.10 and
> GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.22.0) of 2010-10-22
>
>

Your shell ignores SIGPIPE for interactive sessions.  Gzip checks if SIGPIPE 
is ignored, and if it is not, installs a signal handler that prints "gzip: 
stdout: Broken pipe".  Try
M-! bash -i -c 'locale -m' RET

That gives some job and terminal control errors from the shell, but no gzip 
messages.  I don't know if ignoring SIGPIPE for subprocesses is the right 
thing for Emacs to do.

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sat, 12 Feb 2011 16:08:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 5238 <at> debbugs.gnu.org,
	jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sat, 12 Feb 2011 18:02:27 +0200
> Your shell ignores SIGPIPE for interactive sessions.  Gzip checks if
> SIGPIPE is ignored, and if it is not, installs a signal handler that prints
> "gzip: stdout: Broken pipe".  Try
> M-! bash -i -c 'locale -m' RET
>
> That gives some job and terminal control errors from the shell, but no gzip
> messages.  I don't know if ignoring SIGPIPE for subprocesses is the right
> thing for Emacs to do.

Since `M-x shell RET locale -m RET' doesn't display broken pipe errors,
then perhaps `shell-command' should do the same and ignore SIGPIPE,
because the output of `shell-command' and `shell' is expected to be the same.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sat, 12 Feb 2011 17:10:03 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Juri Linkov <juri <at> jurta.org>, Chong Yidong <cyd <at> stupidchicken.com>,
	5238 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sat, 12 Feb 2011 18:18:43 +0100
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> Gzip checks if SIGPIPE is ignored, and if it is not, installs a signal
> handler that prints "gzip: stdout: Broken pipe".

No it doesn't.  The error only happens because gzip gets EPIPE while
writing to stdout, which can only happen when SIGPIPE is ignored, which
in fact Emacs does.  It's the fault of libgtk.

> I don't know if ignoring SIGPIPE for subprocesses is the right thing
> for Emacs to do.

It isn't.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5238; Package emacs. (Sat, 12 Feb 2011 18:47:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 5238 <at> debbugs.gnu.org,
	jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sat, 12 Feb 2011 19:55:41 +0100
This is now fixed in the trunk.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




bug closed, send any further explanations to jidanni <at> jidanni.org Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 12 Feb 2011 21:08:01 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Juri Linkov <juri <at> jurta.org>, Chong Yidong <cyd <at> stupidchicken.com>,
	5238-done <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe
Date: Sun, 13 Feb 2011 12:30:24 +0100

Andreas Schwab skrev 2011-02-12 18.18:
> Jan Djärv<jan.h.d <at> swipnet.se>  writes:
>
>> Gzip checks if SIGPIPE is ignored, and if it is not, installs a signal
>> handler that prints "gzip: stdout: Broken pipe".
>
> No it doesn't.  The error only happens because gzip gets EPIPE while
> writing to stdout, which can only happen when SIGPIPE is ignored, which
> in fact Emacs does.  It's the fault of libgtk.

Your analysis is correct, but the error happens for a Lucid build and for a 
non-x-toolkit build also.  It is actually GConf that ignores SIGPIPE.

Anyway, the bug is fixed in trunk, closing.

	Jan D.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Mar 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 152 days ago.

Previous Next


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