https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7094
Bug ID: 7094
Summary: Spamassassin hangs with 100% CPU for a specific email
content
Product: Spamassassin
Version: 3.3.1
Hardware: HP
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: spamassassin
Assignee: [email protected]
Reporter: [email protected]
The Spamassassin hangs for a specific spam email with 100% CPU
Email content is as follows:
-------------------------------------------------------------
-------------------------------------------------------------
Received: from mail2.aecgi.com (unknown [188.244.205.201])
by hpeprint.com (Postfix) with ESMTP id D7960D9489A
for <[email protected]>; Sun, 5 Oct 2014 10:39:29 +0000 (UTC)
X-DKIM: OpenDKIM Filter v2.1.3 hpeprint.com D7960D9489A
Authentication-Results: hpeprint.com; dkim=none (no signature);
dkim-adsp=none
Message-ID: <[email protected]>
Date: Sun, 5 Oct 2014 14:39:31 +0400
From: Drusy P. <[email protected]>
MIME-Version: 1.0
To: Bhsbulldogs_09 <[email protected]>
Subject: SOME JUNK SUBJECT -Bhsbulldogs_09..
Content-Type: text/html; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable
X-printerIdentifier:
[{"printerAddress":"[email protected]","messageId":36191212,"shardCode":"11S"}]
<html><body><span style=3D"color:#FCFCFC; font-size:1px">Own and he =
noticed terry. Leaving the women were trying. Since this to sit =
with.<br>Maybe we might as much.</span><table width=3D"610"><tr><td><div =
style=3D"color:#FCE7BF; font-family:arial, sans-serif, new york; =
font-size:1px">3G∈<span style=3D"color:#117A34; =
font-size:22pt">Ӏ</span>¹vZ<span style=3D"color:#117A34; =
font-size:22pt">N</span>3®b<span style=3D"color:#117A34; =
font-size:22pt">Ć</span>ÔÇn<span =
style=3D"color:#117A34; font-size:22pt">R</span>Ψî2<span =
style=3D"color:#117A34; font-size:22pt">Ǝ</span>∨ç9<span =
style=3D"color:#117A34; font-size:22pt">A</span>xFâ<span =
style=3D"color:#117A34; font-size:22pt">S</span>gD3<span =
style=3D"color:#117A34; font-size:22pt">Ε</span>E8è<span =
style=3D"color:#117A34; font-size:22pt"> </span>r5⇑<span =
style=3D"color:#117A34; font-size:22pt">S</span>ºZh<span =
style=3D"color:#117A34; font-size:22pt">Ě</span>xñ“<span =
style=3D"color:#117A34; font-size:22pt">X</span>Ofý<span =
style=3D"color:#117A34; font-size:22pt">Ü</span>dîE<span =
style=3D"color:#117A34; font-size:22pt">Ǻ</span>IC∑<span =
style=3D"color:#117A34; =
font-size:22pt">Ļ</span>rε¤<span =
style=3D"color:#117A34; font-size:22pt"> =
</span>⊃Ã≈<span style=3D"color:#117A34; =
font-size:22pt">S</span>SI¦<span style=3D"color:#117A34; =
font-size:22pt">T</span>21¶<span style=3D"color:#117A34; =
font-size:22pt">А</span>TZ›<span style=3D"color:#117A34; =
font-size:22pt">M</span>Y⇔V<span style=3D"color:#117A34; =
font-size:22pt">İ</span>⇑¬v<span style=3D"color:#117A34; =
font-size:22pt">N</span>U´x<span style=3D"color:#117A34; =
font-size:22pt">Ą</span>g®BWell as though they moved =
close</div><span style=3D"color:#F8FCF6; font-size:4px">Paige sighed =
when did this</span><span style=3D"color:#F2E3BF; font-size:21px"><a =
href=3D"http://гщйкуфх.
=
93;сдк.рф?xlntwegm&ihzenl"><b><span =
style=3D"color:#F9E1B7; font-size:3px">NX</span>Ć L =
Ì C Ǩ   Ħ È Ŕ =
E<span style=3D"color:#FBEABA; =
font-size:1px">kxxos</span>!</b></a></span></td></tr></table><span =
style=3D"color:#F8FAF1">Both and those words as much.<br>Maddie shook =
her feel like. Izzy turned on that much. Uncle terry leaned her feel =
better. When his shoulder as well. Connor waited until it meant you =
need.<br>Ruthie came with one for john asked.</span></body></html>
-------------------------------------------------------------
-------------------------------------------------------------
Command used to reproduce the issue locally: (email-1.txt holds the above
content)
nohup spamassassin -D < /home/vm_root/senthil/amavisdHighCPU/email-1.txt
&
-------------------------------------------------------------
-------------------------------------------------------------
top command result showing 100% CPU
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22016 vm_root 20 0 222m 60m 3448 R 100.0 1.0 4:33.68 spamassassin
-------------------------------------------------------------
-------------------------------------------------------------
Last few lines of Spamassassin Debug Logs are as follows:
Oct 24 14:51:30.070 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.070 [22087] dbg: FreeMail: RULE (__freemail_reply)
check_freemail_replyto
Oct 24 14:51:30.070 [22087] dbg: FreeMail: From address: [email protected]
Oct 24 14:51:30.070 [22087] dbg: FreeMail: No Reply-To and From is not
freemail, skipping check
Oct 24 14:51:30.070 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.072 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.073 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.073 [22087] dbg: FreeMail: RULE (__smf_freemail_hdr_replyto)
check_freemail_header
Oct 24 14:51:30.073 [22087] dbg: FreeMail: header Reply-To:addr not found from
mail
Oct 24 14:51:30.074 [22087] dbg: FreeMail: RULE (FREEMAIL_REPLYTO_END_DIGIT)
check_freemail_header regex:\d@
Oct 24 14:51:30.074 [22087] dbg: FreeMail: header Reply-To not found from mail
Oct 24 14:51:30.075 [22087] dbg: FreeMail: RULE (__freemail_replyto)
check_freemail_replyto
Oct 24 14:51:30.075 [22087] dbg: FreeMail: From address: [email protected]
Oct 24 14:51:30.075 [22087] dbg: FreeMail: Reply-To is not freemail, skipping
check
Oct 24 14:51:30.077 [22087] dbg: FreeMail: RULE (__freemail_hdr_replyto)
check_freemail_header
Oct 24 14:51:30.077 [22087] dbg: FreeMail: header Reply-To not found from mail
Oct 24 14:51:30.077 [22087] dbg: spf: cannot get Envelope-From, cannot use SPF
Oct 24 14:51:30.077 [22087] dbg: spf: def_spf_whitelist_from: could not find
useable envelope sender
Oct 24 14:51:30.077 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.078 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.078 [22087] dbg: FreeMail: RULE (FREEMAIL_ENVFROM_END_DIGIT)
check_freemail_header regex:\d@
Oct 24 14:51:30.078 [22087] dbg: FreeMail: header EnvelopeFrom not found from
mail
Oct 24 14:51:30.078 [22087] dbg: spf: already checked for Received-SPF headers,
proceeding with DNS based checks
Oct 24 14:51:30.079 [22087] dbg: spf: spf_whitelist_from: could not find
useable envelope sender
Oct 24 14:51:30.080 [22087] dbg: rules: running body tests; score so far=4.331
Oct 24 14:51:30.084 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60467 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_1
Oct 24 14:51:30.096 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60351 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_2
Oct 24 14:51:30.108 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60045 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_3
Oct 24 14:51:30.120 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60581 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_4
Oct 24 14:51:30.133 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60473 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_5
Oct 24 14:51:30.145 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60462 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_6
Oct 24 14:51:30.157 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60352 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_7
Oct 24 14:51:30.170 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60691 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_8
Oct 24 14:51:30.183 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60898 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_9
Oct 24 14:51:30.196 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60620 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_10
Oct 24 14:51:30.209 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60314 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_11
Oct 24 14:51:30.223 [22087] dbg: rules: flush_evalstr (add_evalstr) compiling
60168 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_12
Oct 24 14:51:30.233 [22087] dbg: rules: flush_evalstr (run_generic_tests)
compiling 23414 chars of Mail::SpamAssassin::Plugin::Check::_body_tests_0_13
Oct 24 14:51:30.238 [22087] dbg: rules: run_generic_tests - compiling eval
code: body, priority 0
Oct 24 14:51:30.238 [22087] dbg: rules: compiled body tests
Oct 24 14:51:30.419 [22087] dbg: rules: ran body rule __NONEMPTY_BODY ======>
got hit: "P"
----------------------------------------------------------
----------------------------------------------------------
Please help in understanding why spamassassin in hung or entered into a busy
loop. When I formatted the html tags in the email by separating the tags using
newline, the spamassassin executed as expected. Hence, thought that there might
be issue with HTML Parser and upgraded to the latest version(i.e.0.8). But the
issue still persists.
Please let me know how to proceed further.
--
You are receiving this mail because:
You are the assignee for the bug.