GNU bug report logs -
#21538
nndoc of bad gz prevents gnus starting
Previous Next
Reported by: Kevin Ryde <user42_kevin <at> yahoo.com.au>
Date: Wed, 23 Sep 2015 11:16:01 UTC
Severity: minor
Tags: fixed
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 21538 in the body.
You can then email your comments to 21538 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bugs <at> gnus.org
:
bug#21538
; Package
gnus
.
(Wed, 23 Sep 2015 11:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kevin Ryde <user42_kevin <at> yahoo.com.au>
:
New bug report received and forwarded. Copy sent to
bugs <at> gnus.org
.
(Wed, 23 Sep 2015 11:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Gnus v5.13
GNU Emacs 24.5.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2015-06-29 on x86-csail-01, modified by Debian
If the gnus active groups include an nndoc of a gzipped file which is
corrupt in some way so gzip does not like it, then gnus gets an error on
startup and does not reach the Group buffer.
touch /tmp/foo.gz # empty file
~/.gnus.el containing
(setq gnus-select-method '(nnml ""))
M-x gnus
G f /tmp/foo.gz # create nndoc
q # quit gnus
M-x gnus # start gnus again
=>
Error while executing "gzip -c -q -d < /tmp/foo.gz"
gzip: stdin: unexpected end of file
I struck this on a mirrored mailing list file which I had clobbered by a
failed re-download, leaving an empty .gz file. Obviously the answer is
don't do that, but it'd be good if gnus could cope, especially since if
you don't get to the Group buffer it's not easy to unsubscribe the
offending bit, say.
I wonder if nndoc-possibly-change-buffer could trap errors around its
insert-file-contents. jka-compr opens a window about the gzip problem
which would be ok, and gnus could treat the group as unselectable or
something.
Such a trap could make the file-exists-p test unnecessary too.
I usually think when reading a file that it's better to read and check
the result than try to predict it won't work. Likewise the not
file-directory-p bit, since insert-file-contents is an error on a
directory.
Information forwarded
to
bugs <at> gnus.org
:
bug#21538
; Package
gnus
.
(Thu, 26 Jan 2017 21:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 21538 <at> debbugs.gnu.org (full text, mbox):
Kevin Ryde <user42_kevin <at> yahoo.com.au> writes:
> I wonder if nndoc-possibly-change-buffer could trap errors around its
> insert-file-contents. jka-compr opens a window about the gzip problem
> which would be ok, and gnus could treat the group as unselectable or
> something.
I've now added error handling around the insert-file-contents call on
the Emacs master.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug reassigned from package 'gnus' to 'emacs,gnus'.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Jan 2017 21:30:03 GMT)
Full text and
rfc822 format available.
bug No longer marked as found in versions 5.13.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Jan 2017 21:30:03 GMT)
Full text and
rfc822 format available.
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Jan 2017 21:30:04 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
21538 <at> debbugs.gnu.org and Kevin Ryde <user42_kevin <at> yahoo.com.au>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 26 Jan 2017 21:30:04 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
.
(Fri, 24 Feb 2017 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.