This issue, apparently, has been a problem for me for several Spamassassin
releases, but I just now figured out what may be happening. I've been
closing spamd once per hour, just to make it read new local.cf, notice
sa-update changes, etc., but occasionally my system can't start new tasks
(usually error 0xC0000142, very occasionally 0xC0000005 - This is under
Windoze, W2K Server/SP4). Closing/Opening spamd also forces closed all the
file handles spamd appears to be abandoning un-closed.

I'm currently running SpamAssassin 3.2.5 under Activestate perl 5.8.8.822.

It appears that spamd fails to close the file handle to bayes_seen or
auto-whitelist when it's done with it.

spamd -x -D, filtered on "auto-whitelist" shows:

--- 9 line(2) not displayed ---
[1504] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[1504] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[1504] dbg: locker: safe_unlock: unlink C:\Documents and
Settings\dbarker/.spamassassin/auto-whitelist.lock
--- 370 line(2) not displayed ---
[1504] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[1504] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[1504] dbg: locker: safe_unlock: unlink C:\Documents and
Settings\dbarker/.spamassassin/auto-whitelist.lock 
--- 37 line(2) not displayed ---

Process Explorer (from SysInternals-Great tool!) shows the file handle to
C:\Documents and Settings\dbarker\.spamassassin\auto-whitelist remains open
even after spamd is finished and remains so until spamd is closed. This
occurs both for auto-whitelist and bayes_seen files.

How do I go about trapping this error in locker? (Specifically, how do I
figure out who Called locker, to find the code that's not closing the file
it opened?)

Has anyone else run into this sort of issue?

Dan Barker

Reply via email to