From owner-freebsd-isp Sun May 5 21:47:48 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA07975 for isp-outgoing; Sun, 5 May 1996 21:47:48 -0700 (PDT) Received: from mars.dnai.com (mars.dnai.com [140.174.162.14]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA07970 for ; Sun, 5 May 1996 21:47:46 -0700 (PDT) Received: (from dror@localhost) by mars.dnai.com (8.6.12/8.6.12) id UAA20210; Sun, 5 May 1996 20:46:42 GMT Date: Sun, 5 May 1996 20:46:41 +0000 () From: Dror Matalon To: Brian Tao cc: FREEBSD-ISP-L Subject: Re: Any inn1.4unoff4 on 2.1R caveats? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 May 1996, Brian Tao wrote: > For some reason, innd core dumped three times so far today (and > it's only early afternoon). It was behaving fairly well up until > recently when two kernel panics caused reboots. > > Is there any way of tracking down the cause of the core dumps? > Could it be a corrupt history file (how do I check)? I remember > something about a bad cancel control message a couple months ago > causing innd's all over the place to spew. > > I've turned off our outgoing feeds for now to narrow down the > problem. I'm also upgrading from unoff3 to unoff4 to see if that will > help. Have others noticed any unusual instabilities with their > FreeBSD servers recently? Mine's a 2.1R box. Thanks. The following Perl script finds problems in your history files and fixes them. THe comments indicate how to use.it. Use at your own risk. #!/usr/local/bin/perl # # history database sanity checker # David Barr # version 1.1 # Throw away history entries with: # malformed lines (too long, contain nulls or special characters) # # INN Usage: # ctlinnd throttle 'fixing history' # ./fixhist history.n # makehistory -r -s `wc -l ) { chop; ($msgid,$dates,$arts,$xtra) = split('\t'); if ($xtra) { &tossit(); # too many fields next; } unless ($msgid) { &tossit(); # too few fields (emtpy, usually) next; } if (length($msgid) >= $MAXKEYLEN) { &tossit(); # message-id too long next; } if ($msgid !~ /^<[^< ]*>/) { &tossit(); # malformed msg-ids next; } if (/[\000-\010\012-\037\177-\377]/) { # non control-chars except tab &tossit(); # illegal chars next; } # if ($dates) { # ($date_a,$date_e,$date_p)= split('~'); # $date_e=0 if ($date_e='-'); # $date_p=0 if ($date_p='-'); # } # print "$_\n"; } sub tossit { print STDERR "$_\n"; } Dror Dror Matalon Voice: 510 649-6110 Direct Network Access Fax: 510 649-7130 2039 Shattuck Avenue Modem: 510 649-6116 Berkeley, CA 94704 Email: dror@dnai.com