> > We run a webmail service and use clamdscan/clamd in mbox mode to scan > > incoming messages. Every so often certain messages will cause clamd to > > hang (not crash, but just hang indefinitely), which causes all of our > > incoming mail to back up. It appears as if certain SPAM messages are > > causing this behavior -- and they also cause clamscan to segfault. > > clamd is pthread based (and threads share the memory), so a segmentation > fault in one thread can destroy the daemon.
Unfortunately, it doesn't seem as if the daemon is dying -- it just hangs. If it died then I could respawn a fresh daemon and everything would be fine. Instead, the daemon allows requests but then just hangs. > > segfaulted and clamd just hung. BTW, this same behavior was occuring > > under previous versions of clamav. > > > > Any suggestions? > > That means there must be a bug in mbox code, please send a virus sample to > Nigel Horne - njh AT bandsman.co.uk. Thanks. It has nothing to do with a virus. I attached a sample message to my original post, along with all of the debugging output fromthe library. It looks like the problem is a result of an "assert" statement when trying to parse an e-mail. When an "assert" fails, what is the library supposed to do? Is the failure supposed to be caught? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]