Thread View: news.software.nntp
3 messages
3 total messages
Started by Justin Zaglio
Tue, 17 Dec 1996 00:00
1.5 dumps core frequently
Author: Justin Zaglio
Date: Tue, 17 Dec 1996 00:00
Date: Tue, 17 Dec 1996 00:00
39 lines
2139 bytes
2139 bytes
Hi all, Recently I upgraded our 1.4unoff3 server to 1.5 and have been experiencing some problems. We run a master/slave configuration: the master is an Ultra/140/128M/2.5 and the slave is an Ultra/170/128M/2.5.1, both running inn-1.5. The master has 200M of swap, the slave 600M. The master serves no readers and only accepts news and then sends it downstream; the slave accepts news only from the master and handles all the readers. We have been experiencing NO problems with the slave, and in fact a substantial performance increase over 1.4. :-) The master, however, has been unhappy. Frequently innd will die and dump core with no messages anywhere about its reasons. gdb'ing the dump shows that a bus error occurs in t_splay() of malloc(), called from xmalloc() called from CCreader(). The machine has roughly 10 simultaneous incoming feeds, with 2 or 3 of them very quiet (10-20 articles/day), another 2-3 very active (70k-200k articles/day), and the remainder somewhere in between. Has anyone else experienced this? Are there tuning issues here (/etc/system)? Are 4 high-volume feeds too much for innd to handle? Do we need more physical memory or more swap or both (it doesn't seem to be using memory up all that fast)? Should I limit incoming connections more? The machines are pretty similar, so I am suspecting some problem with supporting the incoming feeds. Thanks in advance. Any help will be greatly appreciated. If you need any more info, please let me know. justin -- Justin Zaglio justin@columbia.edu UNIX Systems Group Columbia University
Re: 1.5 dumps core frequently
Author: Andrew A. Vasilyev
Date: Fri, 20 Dec 1996 00:00
Date: Fri, 20 Dec 1996 00:00
12 lines
1033 bytes
1033 bytes
In news.software.nntp Ollivier Robert <Ollivier.Robert@eurocontrol.fr> wrote: > Here's the patch. This is against 1.5 but 1.5.1 looks like it has the > same bug. And why checking for (Data.MessageID != NULL) is done only 3 times, and I've found 9 places in art.c where syslog() being called - is there any chance it is not NULL? :) _______ ANDY
Re: 1.5 dumps core frequently
Author: Ollivier Robert
Date: Fri, 20 Dec 1996 00:00
Date: Fri, 20 Dec 1996 00:00
86 lines
4328 bytes
4328 bytes
[courtesy cc of this posting sent to cited author via email]
In article <ium916x2lzx.fsf@banzai.cc.columbia.edu>,
Justin Zaglio <justin@columbia.edu> wrote:
> The master, however, has been unhappy. Frequently innd will die and
> dump core with no messages anywhere about its reasons. gdb'ing the
> dump shows that a bus error occurs in t_splay() of malloc(), called
Try this patch please after upgrading to 1.5.1...
From: shields@crosslink.net (Michael Shields)
Subject: Null pointer dereference in 1.5 (and 1.5.1)
Today the news servers on both my read machines started to die
repeatedly and simultaneously, logging nothing. This happened once
two or three weeks ago when I wasn't around; at the time it cleared up
mysteriously after a while.
Today I finally tracked this down. It was caused by an article with a
1060-character Path: header. Because INN always writes out Path:
before Message-ID:, the receiving machines receive that header first
(and simultaneously since they're fed by nntplink), and ARTclean()
sees the too-long header it stops parsing before it learns the
Message-ID:. Then, iff you have DO_REMEMBER_TRASH set, HISwrite gets
called to log the article, with a null pointer for the message-ID.
Boom. Of course the reason that it died repeatedly is that the master
feed machine kept trying to resend it, and the reason that it clears
up eventually is that the backlog gets trimmed or the article expires
(it's a short-expire feed-only server).
I'm cc'ing this to inn-workers because it would actually be optimal if
trash were not remembered when an article is rejected for its path --
since that header is modified in transit, the article might arrive
again by another route that caused it to be acceptable. This could
apply to the exclusions list also.
This could also be used as a denial-of-service attack.
Here's the patch. This is against 1.5 but 1.5.1 looks like it has the
same bug.
Index: art.c
===================================================================
RCS file: /usr/src/master/inn/innd/art.c,v
retrieving revision 1.9
diff -u -r1.9 art.c
--- art.c 1996/12/12 00:39:01 1.9
+++ art.c 1996/12/18 03:41:30
@@ -1784,7 +1784,7 @@
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
- if (Mode == OMrunning && !HISwrite(&Data, ""))
+ if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
@@ -1798,7 +1798,7 @@
syslog(L_NOTICE, "rejecting[perl] %s %s", HDR(_message_id), buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
- if (Mode == OMrunning && !HISwrite(&Data, ""))
+ if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
@@ -1842,7 +1842,7 @@
buff);
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
- if (Mode == OMrunning && !HISwrite(&Data, ""))
+ if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
--
Shields, CrossLink.
--
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
Usenet Canal Historique
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