On Wed, 15 Aug 2012, John Evans wrote:

On 2012-08-15 10:15, Kevin A. McGrail wrote:
 On 8/15/2012 11:24 AM, Henrik K wrote:

>  On Wed, Aug 15, 2012 at 11:14:58AM -0400, Kevin A. McGrail wrote:
> > > Henrik, why don't you think the timeout hit? > > Probably because regexps hanging and it's impossible to timeout
>  them.
  Interesting. OK. I look forwarding to see if your patch helped!

Kevin,

I added the patch and it hung in the same place. The 'spamassassin -D -t < bad' command eventually went through after a LONG timeout. I didn't capture the results of the SA command (forgot to redirect output), but the patch to substr(X, 0, 30000) didn't seem to help any. Could be that 30,000 is too long? That delves deep into the attachment, and I'm wondering if the top-end of the attachment (within that 30k range) has content that triggers a regex that doesn't like what it sees?

Just throwing some ideas out there.

Thoughts?

Add this to your .pre file and see if it helps isolate a specific poorly-performing rule:

  loadplugin HitFreqsRuleTiming ./HitFreqsRuleTiming.pm

Also do "--debug area=rules" instead of "-D", that may make the problematic rule more apparent.

And capture STDERR to a file! :)

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  But if there is no such inalienable right [to self defense], the
  entire nature of the social contract is changed. Each man’s worth
  is measured solely by his utility to the state, and as such the
  value of his life rides a roller coaster not unlike the stock
  market: dependent not only upon the preferences of the party in
  power but upon the whims of its political leaders and the
  permanent bureaucratic class.                      -- Mike McDaniel
-----------------------------------------------------------------------
 Today: the 67th anniversary of the end of World War II

Reply via email to