Article View: news.software.nntp
Article #84108Re: Possible cleanfeed bug - division by zero?
From: D. Stussy
Date: Sun, 05 Jun 2011 07:12
Date: Sun, 05 Jun 2011 07:12
44 lines
2717 bytes
2717 bytes
"Steve Crook" <steve@mixmin.net> wrote in message
news:slrniujqlm.47d.steve@news.mixmin.net...
> On Fri, 3 Jun 2011 17:03:56 -0700, D. Stussy wrote in
> Message-Id: <isbsol$3f6$1@snarked.org>:
> > Perl function filter_art died on article
> ><110603235457896.NP31314@jobcircle.com>: Illegal modulus zero at
> > /var/lib/news/bin/filter/filter_innd.pl line 574.
> >
> > I'm not certain how this is happening as the divisor seems to default
to
> > 10,000. Strange.
>
> I'm assuming your line 574 is:
>
> if ($status{accepted} % $config{bad_rate_reload} == 0
> and $status{accepted} > $status{bad_reloaded}) {
>
> This would generate that error if $config{bad_rate_reload} is set to
> zero. Nothing changes that after the initial definition of:
> bad_rate_reload => 10000
I agree.
> Unless you define it in cleanfeed.local.
I do not.
> It should be validated though to prevent such an error so the line would
> become:
>
> if ($config{bad_rate_reload} > 0
> and $status{accepted} % $config{bad_rate_reload} == 0
> and $status{accepted} > $status{bad_reloaded}) {
That's one of the reasons I posted this.
I also think that my perl 5.14.0 might not be entirely stable.
Checking....
> Note, in your version, $status{accepted} and $status{bad_reloaded} might
> be just $accepted and $bad_reloaded.
They are not. The code is as your site has it [from about March 1, 2011].
Technical Details
Message-ID:
<isfa8j$n6j$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.glorb.com!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mailReferences:
<isbsol$3f6$1@snarked.org> <slrniujqlm.47d.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <isfa8j$n6j$1@snarked.org> Subject: Re: Possible cleanfeed bug - division by zero? Date: Sun, 5 Jun 2011 00:12:45 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <isbsol$3f6$1@snarked.org> <slrniujqlm.47d.steve@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.glorb.com!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail Newsgroups: news.software.nntp Lines: 44 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> Injection-Date: Sun, 5 Jun 2011 07:12:19 +0000 (UTC) Injection-Info: snarked.org; posting-host="pool-71-106-211-51.lsanca.dsl-w.verizon.net:71.106.211.51"; logging-data="23763"; mail-complaints-to="newsmaster+complaints@snarked.org" X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 2514