Thread View: news.software.nntp
5 messages
5 total messages
Started by D. Stussy
Sat, 04 Jun 2011 00:03
Possible cleanfeed bug - division by zero?
Author: D. Stussy
Date: Sat, 04 Jun 2011 00:03
Date: Sat, 04 Jun 2011 00:03
8 lines
1435 bytes
1435 bytes
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.
Re: Possible cleanfeed bug - division by zero?
Author: Steve Crook
Date: Sat, 04 Jun 2011 08:20
Date: Sat, 04 Jun 2011 08:20
29 lines
2027 bytes
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.
Re: Possible cleanfeed bug - division by zero?
Author: 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].
Re: Possible cleanfeed bug - division by zero?
Author: D. Stussy
Date: Sat, 18 Jun 2011 00:52
Date: Sat, 18 Jun 2011 00:52
13 lines
1848 bytes
1848 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> wrote in message news:isfa8j$n6j$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 also think that my perl 5.14.0 might not be entirely stable. Apparently, it wasn't [stable]. Fixed. However, a division by zero (division or modulus operation) should still be checked for and not allow a program to crash. ;-)
Re: Possible cleanfeed bug - division by zero?
Author: Julien ÉLIE
Date: Mon, 20 Jun 2011 19:43
Date: Mon, 20 Jun 2011 19:43
17 lines
1890 bytes
1890 bytes
Hi Dieter, >>>> 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 also think that my perl 5.14.0 might not be entirely stable. > > Apparently, it wasn't [stable]. Fixed. What did you change on your 5.14.0 Perl version to make it work better? -- Julien ÉLIE « Ce n'est pas en tournant le dos aux choses qu'on leur fait face. » (Pierre Dac)
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