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/07/03 01:14:59 UTC

[Bug 3563] New: Odd errors if tieing Bayes DB while learning...

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

           Summary: Odd errors if tieing Bayes DB while learning...
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Learner
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: felicity@kluge.net


In one window I have an sa-learn running, learning a few thousand mails.  In
another window, I do "sa-learn --dump magic -D" and get the debug output at the
bottom of this comment.  Notice it says the bayes db version is 0, but the bayes
db is definitely version 3.  It seems as if the tie works, but then trying to
read the db fails.  If this is this is the case, then we need to essentially
lock the db for reading (or have a collective read lock anyway) too, otherwise
the data we get could be corrupted.

debug: bayes: 18360 tie-ing to DB file R/O /home/felicity/.spamassassin/bayes_toks
debug: bayes: 18360 tie-ing to DB file R/O /home/felicity/.spamassassin/bayes_seen
debug: bayes: found bayes db version 0
debug: bayes: bayes db version 0 is not able to be used, aborting!
debug: Score set 0 chosen.
debug: bayes: 18360 tie-ing to DB file R/O /home/felicity/.spamassassin/bayes_toks
debug: bayes: 18360 tie-ing to DB file R/O /home/felicity/.spamassassin/bayes_seen
debug: bayes: found bayes db version 0
debug: bayes: bayes db version 0 is not able to be used, aborting!
ERROR: Bayes dump returned an error, please re-run with -D for more information



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