You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/02/25 15:29:52 UTC

[Bug 3084] New: $oldmagic gets corrupted

http://bugzilla.spamassassin.org/show_bug.cgi?id=3084

           Summary: $oldmagic gets corrupted
           Product: Spamassassin
           Version: 2.63
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Learner
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: marco@metm.org


Running sa-learn in a nightly cron job.  I got this error:

Argument "" isn't numeric in numeric lt (<) at
+/usr/local/share/perl/5.6.1/Mail/SpamAssassin/BayesStore.pm line 1267.

by putting in some print statements I find that $oldmagic is corrupted it prints
as:  '^@37705560\210Y9@' everything between the single quotes, lots of
non-numeric characters.  By adding another test to line 1267, an re-match for
only numeric characters, sa-learn is working again, except that an re-match is
called on each interation.
  
new line 1267:
  
if (!defined ($oldmagic) || 
         $oldmagic eq "" || 
  $oldmagic =~ m/[^0-9]/ ||  ## added this test
        $atime < $oldmagic) {



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.