SA Bugzilla – Bug 2961
spamd receives SIGPIPE after long processing time
Last modified: 2005-01-21 02:18:24 UTC
I'm occasionally seeing this in my log from spamd: Jan 24 00:17:55 xxxx spamd[21298]: identified spam (35.2/4.5) for xxx:??? in 723.6 seconds, 1990 bytes. Jan 24 00:17:55 xxxx spamd[21298]: identified spam (35.2/4.5) for xxx:??? in 723.6 seconds, 1990 bytes. Jan 24 00:17:55 xxxx spamd[21298]: SIGPIPE received - reopening log socket I increased the TIMEOUT parameter in my procmailrc to 1536 seconds thinking procmail might be killing spamc after the default timeout period of 960 seconds. I'm using perl v5.8.1. Any additional debugging I can turn on to try and track down the source of the SIGPIPE?
I'm less worried about SIGPIPE and more worried why it's taking you 730+ seconds to scan a single message. Perhaps you have DCC or pyzor enabled? Try disabling them and see what happens.
The same here. On a Sun Solaris system with 256Mb RAM running ONLY spamassassin and clamav deamons. Some of the logs: ----------- syslog -------------- Sep 16 09:45:33 dolphin.dea.gr spamd[22183]: identified spam (9.0/5.0) for clama v:1180 in 197.0 seconds, 18748 bytes. Sep 16 09:45:33 dolphin.dea.gr spamd[22184]: identified spam (7.5/5.0) for clama v:1180 in 193.2 seconds, 18494 bytes. Sep 16 09:45:33 dolphin.dea.gr spamd[22184]: SIGPIPE received - reopening log so cket Sep 16 09:45:33 dolphin.dea.gr spamd[22186]: SIlast message repeated 2 times Sep 16 09:45:34 dolphin.dea.gr spamd[22178]: clean message (-4.3/5.0) for clamav :1180 in 234.2 seconds, 26354 bytes. Sep 16 09:45:34 dolphin.dea.gr spamd[22178]: cllast message repeated 1 time Sep 16 09:45:34 dolphin.dea.gr spamd[22178]: SIGPIPE received - reopening log so cket Sep 16 09:45:34 dolphin.dea.gr spamd[22187]: clean message (3.1/5.0) for clamav: 1180 in 178.8 seconds, 29683 bytes. Sep 16 09:45:34 dolphin.dea.gr spamd[22187]: cllast message repeated 1 time Sep 16 09:45:34 dolphin.dea.gr spamd[22187]: SIGPIPE received - reopening log so cket ------------------ syslog --------------------- We run 8 children proccesses. Normally spamd runs fine with scantimes 2-3 seconds even for 20-30k messages. But sometimes it gets very slow with responce times even to 1000seconds for 2-3kb messages. The cofiguration for the mail-server is sendmail milter and milter-spamc. The timeout (at sendmail.cf) is Xmilter-spamc, S=local:/var/clamav/milter-spamc.sock, T=S: 2m;R:4m Finally, the deamon dies, with no syslog entry.
could you try with the current 3.0.0 release candidate? this should be fixed.
Hearing nothing, assume all is well. Feel free to re-open if this is still a problem in 3.0+