http://bugzilla.spamassassin.org/show_bug.cgi?id=3908
Summary: lock: unlink of lock file failed when using
autowhitelisting.
Product: Spamassassin
Version: unspecified
Platform: All
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
We are getting multiple error messages using autowhitelisting in spamassassin
with mimedefang on a sun solaris system. The syslog messages are:
Oct 14 11:41:49 mail1 mimedefang-multiplexor[352]: [ID 980602 mail.info] Slave
14 stderr: lock: 9286 unlink of lock file
/var/spool/spamassassin/auto-whitelist.lock failed: No such file or directory
I have traced this to a race condition where the lock is checked for (exists)
and then a stat on the lock is done to check for a stale lock file. The problem
occurs when the lock file was removed before the stat, stat returns undef and
then the lock is attempted to be removed as a stale lock. This could result in
the removal of a valid lock allowing multiple access if the lock file was then
created after the stat and before the unlink by another process.
This exists in both version 2.64 and 3.00 in different files:
version 2.64: lib/Mail/SpamAssassin/UnixLocker.pm
version 3.0.0: lib/Mail/SpamAssassin/Locker/UnixNFSSafe.pm
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.