Thread View: news.software.nntp
4 messages
4 total messages
Started by Stephen Ollis
Fri, 07 Mar 1997 00:00
nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
Author: Stephen Ollis
Date: Fri, 07 Mar 1997 00:00
Date: Fri, 07 Mar 1997 00:00
32 lines
1592 bytes
1592 bytes
�I've recently upgraded from a Netscape News INN�1.4 variant to vanilla INN 1.5.1 .. I have a customer that does a sucking feed from my news server to a MS�IIS�News server. Under INN�1.4, the sucking feed worked fine, passing newnews commands to the server and pulling down new articles. Under 1.5.1, doing a telnet news 119, mode reader, then newnews *�970307 000000 GMT�causes nnrpd to dump core.. The newnews command is enabled in the config.data file, and passing newnews invalid parameters causes the correct error messages to be returned. (according to the source). Compiled on Solaris 2.5 via gcc v2.5.6 All comments, thoughts, assistance to mailto:ollis@att.net.au Thanks in advance, Steve Ollis -- Stephen Ollis - Technical Specialist - AT&T Easylink Services Australia Email: ollis@att.net.au (wk) ollis@ozemail.com.au (hm) Phone: +61 2 9911 1606 (wk) +61 2 9911 1555 (fax) "To live happily is an inward power of the soul." - Marcus Aurelius
Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
Author: Per Hedeland
Date: Sat, 08 Mar 1997 00:00
Date: Sat, 08 Mar 1997 00:00
43 lines
1819 bytes
1819 bytes
In article <331FC005.6D4F@att.net.au> Stephen Ollis <ollis@att.net.au> writes:
>Under 1.5.1, doing a telnet news 119, mode reader, then newnews *�970307
>000000 GMT�causes nnrpd to dump core..
Try the patch below - don't you just love useless "optimizations" that
break working code?
>Compiled on Solaris 2.5 via gcc v2.5.6
You really should get hold of a modern compiler - gcc 2.5.6 is more
than three years old, which among other things means that it predates
Solaris 2.5 by one or two. The current version is 2.7.2.2, I believe.
>All comments, thoughts, assistance to mailto:ollis@att.net.au
Posting Cc'ed (also to inn-bugs@isc.org).
--Per Hedeland
per@erix.ericsson.se
*** nnrpd/newnews.c.ORIG Sat Nov 30 00:32:18 1996
--- nnrpd/newnews.c Fri Mar 7 13:50:36 1997
***************
*** 242,254 ****
AllDists = FALSE;
}
- /* Optimization in case client asks for !* (no groups) */
- if (!strcmp(groups[0], "!*")) {
- Reply("%s\r\n", NNTP_NEWNEWSOK);
- Printf(".\r\n");
- return;
- }
-
if ((F = fopen(HISTORY, "r")) == NULL) {
syslog(L_ERROR, "%s cant fopen %s %m",
ClientHost, HISTORY);
--- 242,247 ----
Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
Author: Per Hedeland
Date: Sat, 08 Mar 1997 00:00
Date: Sat, 08 Mar 1997 00:00
37 lines
2224 bytes
2224 bytes
In article <5fqonq$k6a$1@hammer.msfc.nasa.gov> jpc@drum.msfc.nasa.gov
(J. Porter Clark) writes:
>per@erix.ericsson.se (Per Hedeland) writes:
>>Try the patch below - don't you just love useless "optimizations" that
>>break working code?
>
>>- /* Optimization in case client asks for !* (no groups) */
>>- if (!strcmp(groups[0], "!*")) {
>>- Reply("%s\r\n", NNTP_NEWNEWSOK);
>>- Printf(".\r\n");
>>- return;
>>- }
>
>You're going to hurt my feelings. I think this optimization was one
>of my inventions. What it was intended to counteract was Microsoft
>Exchange News Service (not, apparently, to be confused with Microsoft
>Internet News Service).
Oh - I guess I should have known that M$ was the original cause of this
silliness too! The *proper* fix would of course have been to obliterate
that abominable piece of software from the face of the earth, but I
realize that sometimes you have to settle for less than perfect.:-)
Please accept my apologies and sympathy, but even if not *absolutely*
useless:-), the optimization is still broken - the problem being that
with 'newnews * ...', the 'groups' array is never initialized (or used,
so this is not a bug). Btw, strictly speaking, I think it will also
incorrectly be applied to correct-but-stupid patterns like '!*,news.*'.
If you move the check up to where the newsgroups list is parsed, a
correct implementation should be trivial (I'll leave it to you to send
it to inn-bugs though).
--Per Hedeland
per@erix.ericsson.se
Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
Author: J. Porter Clark
Date: Sat, 08 Mar 1997 00:00
Date: Sat, 08 Mar 1997 00:00
46 lines
2674 bytes
2674 bytes
per@erix.ericsson.se (Per Hedeland) writes:
>In article <331FC005.6D4F@att.net.au> Stephen Ollis <ollis@att.net.au> writes:
>>Under 1.5.1, doing a telnet news 119, mode reader, then newnews * 970307
>>000000 GMT causes nnrpd to dump core..
>Try the patch below - don't you just love useless "optimizations" that
>break working code?
>- /* Optimization in case client asks for !* (no groups) */
>- if (!strcmp(groups[0], "!*")) {
>- Reply("%s\r\n", NNTP_NEWNEWSOK);
>- Printf(".\r\n");
>- return;
>- }
You're going to hurt my feelings. I think this optimization was one
of my inventions. What it was intended to counteract was Microsoft
Exchange News Service (not, apparently, to be confused with Microsoft
Internet News Service). Someone at MSFC is/was running a beta version
of this product, and its default behavior was to use a 'pull' feed with
newnews. The person who ran it had limited disk space and only wanted
a handful of newsgroups. After running it in that mode for a couple of
weeks, he decided to turn off the feed. What this made his server do
was to issue "newnews !* <etc.>" every 30 minutes. That's right:
instead of just simply not polling my server for new news, it would
poll for *no* new news. This was silly. What's worse, the polling
caused the newnews code in nnrpd to do a binary search through the
history file looking for the start point, which was always near the end
of the file, and then it would simply ignore the results. I tried
turning off newnews entirely, but the problem then was that the
Microsoft server would make reader connections to my server about once
every five minutes.
Thus, the optimization above was born. This was the only user I had
who used newnews, so I didn't get to test it rigorously.
He's currently running a later version of this server. It is capable
of handling a 'push' feed, and that's what we're using now.
--
J. Porter Clark jpc@drum.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads