http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5671
Summary: spamd child processing timeout causes children to hang
Product: Spamassassin
Version: 3.2.3
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: spamc/spamd
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I've noticed an issue with spamd, after a varying amount of time spamd appears
to hang when it gets a timeout; this eventually causes spamd to run out of
processing children as they all end up in this state eventually.
Here is a 'ps' output showing what arguments spamd was started with and you can
see the first three children have a lot of CPU time. All three of these
children are 'stuck':
3561 ? Ss 2:08 /usr/bin/spamd -d -c --timeout-child=60
--max-children=20 --min-children=10 -x -u spamd -r /var/run/spamd
2421 ? R 291:12 \_ spamd child
2905 ? R 249:15 \_ spamd child
10886 ? R 216:33 \_ spamd child
3655 ? S 0:56 \_ spamd child
4178 ? S 2:08 \_ spamd child
16571 ? S 0:36 \_ spamd child
16573 ? S 0:19 \_ spamd child
16952 ? S 0:07 \_ spamd child
17747 ? S 0:09 \_ spamd child
strace/ltrace on any of the three processes yields no results. The hang does
not appear to be bayes related, there are no bayes lock files and I have the
following set in local.cf:
lock_type flock
bayes_learn_to_journal 1
bayes_auto_expire 0
Searching the logs for the relevant PIDs shows the following:
Oct 7 14:10:40 securemail spamd[2421]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 37022
Oct 7 14:10:53 securemail spamd[2421]: spamd: checking message
<[EMAIL PROTECTED]> for (unknown):501
Oct 7 14:11:41 securemail spamd[2421]: rules: failed to run BAYES_99 test,
skipping:
Oct 7 14:11:41 securemail spamd[2421]: (child processing timeout at
/usr/bin/spamd line 1246, <GEN15116> line 91271.
Oct 7 14:11:41 securemail spamd[2421]: )
Oct 7 16:57:34 securemail spamd[10886]: spamd: checking message
<[EMAIL PROTECTED]> for (unknown):501
Oct 7 16:58:17 securemail spamd[10886]: rules: failed to run BAYES_99 test,
skipping:
Oct 7 16:58:17 securemail spamd[10886]: (child processing timeout at
/usr/bin/spamd line 1246, <GEN15703> line 91271.
Oct 7 16:58:17 securemail spamd[10886]: )
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.