SA Bugzilla – Bug 6050
Spamassassin sometimes dies with SIGPIPE
Last modified: 2019-06-24 15:07:07 UTC
Created attachment 4428 [details] Spamassassin log with debugging turned on Spamassassin sometimes dies with SIGPIPE for an unknown reason. Based on the log my best guess is that it is during some network test. When it will dies is unpredictable, because when I pass the same mail though again it sometimes is OK and other times its not. With the fix for #6033 this will cause mail to get unfiltered, without the fix it would cause me to lose mail. OS: FreeBSD 6.2-PRERELEASE Let me know if you need any additional info or what me to do something to help get better debug output or the like.
It seams I can't reproduce the problem when running manually Spamassassin or procmail manually. I will attach another log message with Spamassassin being run on the same mail message. The first it dies, the second time (running procmail manually) it didn't. Also, here is the Perl version in case it helps. This is perl, v5.8.8 built for i386-freebsd-64int (with 1 registered patch, see perl -V for more detail)
Created attachment 4429 [details] More logs, See comment #1
normally, AFAIK, SIGPIPE should only be delivered if a process writing _into_ SpamAssassin's stdin dies. are you sure that's not what's happening? that would explain why it's proving hard to reproduce. also, it may be worth trying turning off pyzor, razor etc. one by one to see if you can narrow down which one is causing it, if it _is_ a network test at fault.
Well the last debug message always is "[61264] dbg: info: entering helper-app run mode", when it dies. This is defined is Dns.pm. My best guess based on the logs is that it is razor2 which I turned off. It will be a day or so until I can be sure that fixed it.
Disabling razor2 seamed to have solved the problem....
I also noticed this bug when I was investigating why an apparent spam message got through. This bug is apparently in Razor and it happens about 1 in 10 attempts. I've attached a log with "-D razor" parameter. I'm running FreeBSD 7.1-RELEASE-p2 with Perl v5.8.9.
Created attachment 4430 [details] Test log, where SA crashes at Razor
can anyone capture a -D debug log and an "strace -f" log of this happening? that may be able to demonstrate where/if the SIGPIPE handler is being messed with.
Closing old bug, if it's still problem a decade later, feel free to post.. :-)