OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
spamdb -- automatically remove "bogus entry"

From: Jeremy C. Reed (reedreedmedia.net)
Date: Wed Aug 08 2007 - 17:58:00 CDT


Since yesterday, I have had hundreds of these errors on multiple servers:

Aug 8 15:41:01 ca spamd[26478]: bogus entry in spamd database
Aug 8 15:41:01 ca spamd[26478]: scan of /var/db/spamd failed

My spamd processes are jumping to ten times the size. I have added bunch
of debugging to the code, but can't tell what is causing this.

I try to use spamdb tool to see what is bogus, but it doesn't notice.

The one thing I notice from my debugging about the bogus entry is the
db->seq is that it returns 0 (success) but the error is caused by a
negative dbd.size. I can't figure out what would cause that negative
dbd.size.

Anyone know about this?

Any suggestions on getting spamd to recover on its own?

As for the memory usage shooting up to ten times normal -- maybe some
memory leak, but I haven't found it yet.

I checked my libexec/spamd and usr.sbin/spamdb source and it has the
latest fixes.

  Jeremy C. Reed