https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6127





--- Comment #23 from Joel <[email protected]>  2009-06-10 15:13:46 PST 
---
(In reply to comment #17)
> AWL, DB_File backend. The last few lines:
> spamd[1189]: auto-whitelist: tie-ing to DB file of type DB_File R/W
>  in /home/qscand/.spamassassin/auto-whitelist
> spamd[1189]: auto-whitelist: AWL active, pre-score: 14.945,
>  autolearn score: 14.945, mean: undef, IP: 79.177.123.207
> spamd[1189]: auto-whitelist: add_score: new count: 1, new totscore: 14.945 
> spamd[983]: prefork: child 1189: just exited 
> spamd[983]: prefork: child 1189: entering state 4 
> So what's missing is pretty much this (local run):
> [15543] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
> [15543] dbg: auto-whitelist: DB addr list: file locked, breaking lock
> [15543] dbg: auto-whitelist: post auto-whitelist score: 15.72
> That's M::SA::Plugin::AWL and M::SA::DBBasedAddrList.
> Joel, can you add some fine grained debugging lines to Plugin/AWL.pm, function
> check_from_in_auto_whitelist(), please? Specifically between the call of
>  $whitelist->add_score($awlpoints);
> and the finish() a couple lines down. It might be necessary to recurse into 
> the
> functions called from DBBasedAddrList.pm also.
> Interesting stuff to dump to dbg are variable values like $delta and the 
> result
> of the sprintf call, etc. The added debugging should show how far exactly we
> come before the crash happens.

OK, the offending code appears to be :

      # Update the AWL *before* adding the new score, otherwise
      # early high-scoring messages are reinforced compared to
      # later ones.  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=159704
      if (!$pms->{disable_auto_learning}) {
        $whitelist->add_score($awlpoints);
      }

This appears to fail when $meanscore is undefined.

My logs:

Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: tie-ing to DB file of type
DB_File R/W in /home/qscand/.spamassassin/auto-whitelist
Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: db-based
[email protected]|ip=89.229 scores 0/0
Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: db-based
[email protected]|ip=none scores 0/0
Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: AWL active, pre-score:
19.106, autolearn score: 19.106, mean: undef, IP: 89.229.181.196
Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: (Gossamer) meanscore undef
Wed Jun 10 15:25:44 2009 [1187] dbg: auto-whitelist: add_score: new count: 1,
new totscore: 19.106
Wed Jun 10 15:25:44 2009 [974] info: spamd: handled cleanup of child pid 1187
due to SIGCHLD

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to