🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84107

Re: Possible cleanfeed bug - division by zero?

#84107
From: Steve Crook
Date: Sat, 04 Jun 2011 08:20
29 lines
2027 bytes
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
Unless you define it in cleanfeed.local.

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}) {

Note, in your version, $status{accepted} and $status{bad_reloaded} might
be just $accepted and $bad_reloaded.
Technical Details
Message-ID: <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!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <isbsol$3f6$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrniujqlm.47d.steve@news.mixmin.net>
Subject: Re: Possible cleanfeed bug - division by zero?
Date: Sat, 04 Jun 2011 08:20:06 +0000
From: Steve Crook <steve@mixmin.net>
References: <isbsol$3f6$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!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Sat, 4 Jun 2011 08:20:06 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="15295"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 28
X-Original-Bytes: 1816