https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6558
It seems some mail is triggering a rare bug in re2c (perl) that can cause spamassassin to get stuck in a 100% loop and cause significant problems for a server. While this is a very serious problem, it affects only non-default configurations that use sa-compile. Upstream is working on an emergency sa-update rule push to force disable. Until then you can workaround this problem in two possible ways below.
Stop Using sa-compile
- Turn off whatever runs sa-compile.
- Delete /var/lib/spamassassin/<VERSION>
- sa-update
- Restart your spamd.
- Add these three lines to your local.cf.
- sa-compile how you normally would do.
- Restart your spamd.
Warren, what are the performance benefits of sa-compile? What is the memory/CPU overhead? I don't use it as well. Performance measurements would make for a good post.
ReplyDeleteJulian, that is a good suggestion. I will consider investigating this sometime later for an article.
ReplyDeletehttp://wiki.apache.org/spamassassin/FasterPerformance
Meanwhile check out this page. In most cases I think sa-compile simply isn't worthwhile because you are optimizing for the wrong problem. Your bottleneck is far more likely to be network or I/O. Given the stability risks of sa-compile I suspect you're better off not using it.