Article View: news.software.nntp
Article #64362Re: rnews error and message heagers
From: James Harvey
Date: Wed, 12 Mar 2003 23:54
Date: Wed, 12 Mar 2003 23:54
48 lines
3246 bytes
3246 bytes
In article <yl3cm5ny2c.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote:
>Kevin Blackwell <akblackwel@yahoo.com> writes:
[snip]
>> Feb 12 03:02:29 morpheus rnews: cant read after 0 Bad file descriptor
[snip snip]
>
>Assuming INN 2.3, this error message is only possible if rnews has already
>tried to connect to the server to send a message and has failed, and is
>trying to spool the message to disk. It's an error in reading the message
>in order to spool it.
I can produce this message consistently under INN 2.3.2 and 2.3.4
(on a couple of Intel boxes running Linux 2.4.18) by typing:
% printf "foo: \n\n" | rnews
Other symptoms may include messages in news.notice about bad
articles, and empty spool files in the incoming directory.
Analysis:
The main program parses the command line arguments and opens
the connection to the remote, which all works fine. Since it is not
unspooling, UnpackOne() is called, which reads a character, sees
it is not a batch file, then calls ReadRemainder(), which opens a
stream for the descriptor, reads the rest of the article into memory,
closes the input stream (which also closes the descriptor!), and
calls Process() to post the article. Process() notices the article is
missing required headers, complains, and returns the status FALSE,
which ReadRemainder() saves. ReadRemainder() then disposes
of the article in memory and returns the saved FALSE status to
UnpackOne(), which passes it back to the main program, which
then calls Spool(), which barfs on the closed input file descriptor.
There are other circumstances which can produce this message.
However, I found staring at rnews.c too long makes my head hurt... :-)
(the basic requirement is a single non-batched article for which
Process() gets an error).
>What on your system is invoking rnews? rnews -U won't trigger this
>message; something else must be invoking rnews somehow.
I stumbled on this bug when testing something that posts articles using
rnews, and these messages started popping up in the news.crit log.
--
James Harvey jah4687@netscape.net
Technical Details
Message-ID:
<b4ohb5$l6t$1@hood.uits.indiana.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!nnxp1.twtelecom.net!216.9.137.72.MISMATCH!news.kiva.net!news.indiana.edu!in-uits-elwoodReferences:
<slrnb2sfca.8ap.news@morpheus.speedsite.com> <b1vbb9$1q9$4@puck.litech.org> <1e82c47c.0302121637.38a2109@posting.google.com> <yl3cm5ny2c.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <b4ohb5$l6t$1@hood.uits.indiana.edu> Subject: Re: rnews error and message heagers Date: Wed, 12 Mar 2003 23:54:13 GMT From: jah4687@netscape.net (James Harvey) References: <slrnb2sfca.8ap.news@morpheus.speedsite.com> <b1vbb9$1q9$4@puck.litech.org> <1e82c47c.0302121637.38a2109@posting.google.com> <yl3cm5ny2c.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!nnxp1.twtelecom.net!216.9.137.72.MISMATCH!news.kiva.net!news.indiana.edu!in-uits-elwood Newsgroups: news.software.nntp Organization: very little Lines: 47 NNTP-Posting-Host: elwood.uits.iupui.edu X-Trace: hood.uits.indiana.edu 1047513253 21725 134.68.5.47 (12 Mar 2003 23:54:13 GMT) X-Complaints-To: news-admin@indiana.edu NNTP-Posting-Date: Wed, 12 Mar 2003 23:54:13 +0000 (UTC) X-Newsreader: News Xpress 2.01