Bug 1113 - divide by zero - EvalTests.pm line 1631- Failed to run __UPPERCASE_75_100
Summary: divide by zero - EvalTests.pm line 1631- Failed to run __UPPERCASE_75_100
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (Eval Tests) (show other bugs)
Version: 2.41
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-14 16:19 UTC by Steve Evans
Modified: 2002-12-13 01:40 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
our running copy of EvelTests.pm text/plain None Steve Evans [NoCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2002-10-14 16:19:49 UTC
we are sometimes getting the following msg in our logs.. spamd is dying when 
this occurs :

Oct 14 20:13:25 ftoomsh spamd[11804]: Failed to run __UPPERCASE_75_100 
SpamAssassin test, skipping: ^I(Illegal division by zero 
at /usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/EvalTests.pm line 
1631, <STDIN> line 310. )

this doesnt seem to be fixed in the latest version either (v2.50)..

unfortunatly I dont have the email which causes the problem.

cya's
steve..
Comment 1 Daniel Quinlan 2002-10-14 23:58:02 UTC
Subject: Re: [SAdev]  New: divide by zero - EvalTests.pm line 1631- Failed to run __UPPERCASE_75_100

> Oct 14 20:13:25 ftoomsh spamd[11804]: Failed to run __UPPERCASE_75_100
> SpamAssassin test, skipping: ^I(Illegal division by zero
> at /usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/EvalTests.pm line
> 1631, <STDIN> line 310. )

I fail to see how that could happen given that the code protects against
divide by zero and that the numbers involved should all be integers (so it
shouldn't be an overflow/underflow problem either).  Maybe I'm missing
something, here.

Could you copy that function out of your running copy of EvalTests.pm
and attach it to this bug report (attach, not cut-and-paste)?  Thanks.

> this doesnt seem to be fixed in the latest version either (v2.50)..
>
> unfortunatly I dont have the email which causes the problem.

That might be the only way to find the bug (if there is one).

Dan

Comment 2 Steve Evans 2002-10-15 10:10:28 UTC
Created attachment 403 [details]
our running copy of EvelTests.pm
Comment 3 Justin Mason 2002-12-13 10:40:30 UTC
Looking at the source, that fn cannot get a divide by zero
in the current source.  So I'm closing this bug until the
reporter reports that it's still occurring with current CVS
(and can provide a sample mail to reproduce it ;)