You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Daniel McDonald <da...@austinenergy.com> on 2012/08/14 18:50:44 UTC

Nightly masschecks

Each night when I run masschecks, I get a lot of (couple of hundred) errors
that look like:
Use of uninitialized value in regexp compilation at
/home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
Iterator.pm line 437, <INPUT> line 168.

Line 437 reads:
    last if (substr($_,0,5) eq "From " && @msg &&
/$self->{opt_from_regex}/o);


The mass-check program runs very quickly (about 5 minutes) and my reports
have only a few lines, even though I have several thousand hams and several
hundred hams.

Any idea where I should start looking to fix my mass-checks?


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281


Re: Nightly masschecks

Posted by John Hardin <jh...@impsec.org>.
On Wed, 15 Aug 2012, John Hardin wrote:

> On Wed, 15 Aug 2012, Kevin A. McGrail wrote:
>
>>  So I think I have a fix and it's checked into trunk for masses/mass-check.
>>  If my theory is correct, you should see some changes on the next tagged
>>  build that includes that code.
>>
>>  If you could please let me know of any results, positive or negative, I'd
>>  appreciate.
>
> Reverted my hack and running a masscheck now. Will let you know.

That appears to have done it, 10% checked and no "uninitialized value" 
errors. Yay!

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Maxim I: Pillage, _then_ burn.
-----------------------------------------------------------------------
  Today: the 67th anniversary of the end of World War II

Re: Nightly masschecks

Posted by John Hardin <jh...@impsec.org>.
On Wed, 15 Aug 2012, Kevin A. McGrail wrote:

> So I think I have a fix and it's checked into trunk for masses/mass-check. 
> If my theory is correct, you should see some changes on the next tagged build 
> that includes that code.
>
> If you could please let me know of any results, positive or negative, I'd 
> appreciate.

Reverted my hack and running a masscheck now. Will let you know.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  What nuts do with guns is terrible, certainly. But what evil or crazy
  people do with *anything* is not a valid argument for banning that
  item.                            -- John C. Randolph <jc...@idiom.com>
-----------------------------------------------------------------------
  Today: the 67th anniversary of the end of World War II

Re: Nightly masschecks

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 8/14/2012 6:35 PM, Daniel McDonald wrote:
> On 8/14/12 2:07 PM, "Kevin A. McGrail" <KM...@PCCC.com> wrote:
>
>>     
>> Actually, instead of that can you try adding this to your mass check cf file?
>>   
>>   mbox_format_from_regex /^From \S+  ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d
>> \d{4}|.\d-\d\d-\d{4}_\d\d:\d\d:\d\d_)/
> No change:

Sorry about that.  I was completely off-base with that request.

So I think I have a fix and it's checked into trunk for 
masses/mass-check.  If my theory is correct, you should see some changes 
on the next tagged build that includes that code.

If you could please let me know of any results, positive or negative, 
I'd appreciate.

Regards,
KAM


Re: Nightly masschecks

Posted by Daniel McDonald <da...@austinenergy.com>.
On 8/14/12 2:07 PM, "Kevin A. McGrail" <KM...@PCCC.com> wrote:

>    
> Actually, instead of that can you try adding this to your mass check cf file?
>  
>  mbox_format_from_regex /^From \S+  ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d
> \d{4}|.\d-\d\d-\d{4}_\d\d:\d\d:\d\d_)/

No change:
+ perl mass-check --restart=500 --tail=15000 -j 8 -f
/home/dmcdonald/nightlymc/targets
Use of uninitialized value in regexp compilation at
/home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
Iterator.pm line 437, <INPUT> line 168.
Use of uninitialized value in regexp compilation at
/home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
Iterator.pm line 437, <INPUT> line 160.
Use of uninitialized value in regexp compilation at
/home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
Iterator.pm line 437, <INPUT> line 166.
Use of uninitialized value in regexp compilation at
/home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
Iterator.pm line 437, <INPUT> line 217.

Mass-check.cf has a note that it is for scores only.  I also tried putting
it in the user_prefs.nightly file.  No effect their either.

 
-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281



Re: Nightly masschecks

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
Actually, instead of that can you try adding this to your mass check cf 
file?

mbox_format_from_regex /^From \S+  ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d 
\d{4}|.\d-\d\d-\d{4}_\d\d:\d\d:\d\d_)/

There should be a sane default for that option but it's somehow getting 
lost.

We should still be able to set it in the cf file though if my thinking 
is correct.

regards,
KAM

On 8/14/2012 1:49 PM, John Hardin wrote:
> On Tue, 14 Aug 2012, Daniel McDonald wrote:
>
>> Each night when I run masschecks, I get a lot of (couple of hundred) 
>> errors
>> that look like:
>> Use of uninitialized value in regexp compilation at
>> /home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive 
>>
>> Iterator.pm line 437, <DEFANGED_INPUT> line 168.
>>
>> Line 437 reads:
>>    last if (substr($_,0,5) eq "From " && @msg && 
>> /$self->{opt_from_regex}/o);
>>
>> Any idea where I should start looking to fix my mass-checks?
>
> As stated, it's a known bug.
>
> As a workaround so that I can run local masschecks when I need to, 
> I've made a local change in that line to use the full regex from the 
> default-setting code that's currently apparently being skipped.
>
> I have not and will not check this in, as the problem needs to be 
> correctly fixed and this is only a Q'n'D hack.
>
> I've attached a diff so you can patch your local copy and get 
> masschecks running again until the correct fix is made.
>


-- 
*Kevin A. McGrail*
President

Peregrine Computer Consultants Corporation
3927 Old Lee Highway, Suite 102-C
Fairfax, VA 22030-2422

http://www.pccc.com/

703-359-9700 x50 / 800-823-8402 (Toll-Free)
703-359-8451 (fax)
KMcGrail@PCCC.com <ma...@pccc.com>


Re: Nightly masschecks

Posted by John Hardin <jh...@impsec.org>.
On Tue, 14 Aug 2012, Daniel McDonald wrote:

> Each night when I run masschecks, I get a lot of (couple of hundred) errors
> that look like:
> Use of uninitialized value in regexp compilation at
> /home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
> Iterator.pm line 437, <DEFANGED_INPUT> line 168.
>
> Line 437 reads:
>    last if (substr($_,0,5) eq "From " && @msg && /$self->{opt_from_regex}/o);
>
> Any idea where I should start looking to fix my mass-checks?

As stated, it's a known bug.

As a workaround so that I can run local masschecks when I need to, I've 
made a local change in that line to use the full regex from the 
default-setting code that's currently apparently being skipped.

I have not and will not check this in, as the problem needs to be 
correctly fixed and this is only a Q'n'D hack.

I've attached a diff so you can patch your local copy and get masschecks 
running again until the correct fix is made.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Of the twenty-two civilizations that have appeared in history,
   nineteen of them collapsed when they reached the moral state the
   United States is in now.                          -- Arnold Toynbee
-----------------------------------------------------------------------
  Tomorrow: the 67th anniversary of the end of World War II

Re: Nightly masschecks

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 8/14/2012 12:50 PM, Daniel McDonald wrote:
> Nightly masschecks Each night when I run masschecks, I get a lot of 
> (couple of hundred) errors that look like:
> Use of uninitialized value in regexp compilation at 
> /home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/ArchiveIterator.pm 
> line 437, <INPUT> line 168.
>
> Line 437 reads:
>     last if (substr($_,0,5) eq "From " && @msg && 
> /$self->{opt_from_regex}/o);
>
>
> The mass-check program runs very quickly (about 5 minutes) and my 
> reports have only a few lines, even though I have several thousand 
> hams and several hundred hams.
>
> Any idea where I should start looking to fix my mass-checks?
It's not you. It's a bug in the mbox handling.  I'm working on it and 
it's a known bug.

If you want, add yoruself as a watcher to 
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6703

I have some current thoughts I'll try and articulate in a bit.

Regards,
KAM

Re: Nightly masschecks

Posted by Axb <ax...@gmail.com>.
On 08/14/2012 06:50 PM, Daniel McDonald wrote:
> Each night when I run masschecks, I get a lot of (couple of hundred) errors
> that look like:
> Use of uninitialized value in regexp compilation at
> /home/dmcdonald/nightlymc/trunk/masses/../blib/lib/Mail/SpamAssassin/Archive
> Iterator.pm line 437, <INPUT> line 168.
>
> Line 437 reads:
>      last if (substr($_,0,5) eq "From " && @msg &&
> /$self->{opt_from_regex}/o);
>
>
> The mass-check program runs very quickly (about 5 minutes) and my reports
> have only a few lines, even though I have several thousand hams and several
> hundred hams.
>
> Any idea where I should start looking to fix my mass-checks?

Are you using mbox or maildirs ?

Could you post a couple of sample messages which is causing this?