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

           Summary: whitelist_addrs.t failing on Solaris 10 with SDBM_File
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P5
         Component: Libraries
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


it fails the last test, test 5.  This appears to be a bug in SDBM_File, or at
least its handling on Solaris.  I suspect it's not a Solaris-specific bug, just
appearing there because I haven't installed DB_File, forcing the AWL to fall
back to SDBM.

I've instrumented the test with -D and some sleeps to get debugs and a chance to
look into the db files, and this is what I see:

Skipping to step 4:

        /local/perl586/bin/perl -T -w ../spamassassin -C log/test_rules_copy 
--siteconfigpath log/localrules.tmp -p log/test_default.cf  -D
--add-addr-to-blacklist [EMAIL PROTECTED]
...
[19586] dbg: auto-whitelist: tie-ing to DB file R/W in
./log/user_state/auto-whitelist
[19586] dbg: auto-whitelist: db-based
[EMAIL PROTECTED]|ip=none scores 0/0
[19586] dbg: auto-whitelist: db-based
[EMAIL PROTECTED]|ip=none scores 0/0
[19586] dbg: auto-whitelist: add_score: new count: 1, new totscore: 100
[19586] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[19586] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[19586] dbg: locker: safe_unlock: unlink ./log/user_state/auto-whitelist.lock


If I run '../tools/check_whitelist log/user_state/auto-whitelist' at this
stage, I see:

   100.0       (100.0/1)  -- 
[EMAIL PROTECTED]|ip=none

which is correct.  next step:


        /local/perl586/bin/perl -T -w ../spamassassin -C log/test_rules_copy 
--siteconfigpath log/localrules.tmp -p log/test_default.cf  -D -L < 
data/nice/002
...
[19588] dbg: auto-whitelist: tie-ing to DB file R/W in
./log/user_state/auto-whitelist
[19588] dbg: auto-whitelist: db-based
[EMAIL PROTECTED]|ip=212.17 scores 4/0
[19588] dbg: auto-whitelist: AWL active, pre-score: 0, autolearn score: 0, mean:
undef, IP: 212.17.35.15
[19588] dbg: auto-whitelist: add_score: new count: 5, new totscore: 0
[19588] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
...

check_whitelist says:

     0.0         (0.0/5)  -- 
[EMAIL PROTECTED]|ip=212.17
   100.0       (100.0/1)  -- 
[EMAIL PROTECTED]|ip=none

so it appears it failed to find the "ip=none" entry for some reason.



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

Reply via email to