You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2006/05/31 19:28:19 UTC

Re: 3.1.2 issue with UnixNFSSafe.pm ?

Can you get output of 

    strace -f -o trace

on the affected processes?  (easy way: just stop spamd, then strace the
spamd startup script.)

--j.

up@3.am writes:
> On Wed, 31 May 2006 up@3.am wrote:
> 
> > On Wed, 31 May 2006, Theo Van Dinter wrote:
> >
> > > On Wed, May 31, 2006 at 11:12:03AM -0400, up@3.am wrote:
> > > > > > May 31 07:53:52 mail spamd[59117]: Use of uninitialized value in
> > > > > > subtraction (-) at
> > > > > /usr/local/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Locker/UnixNFSSafe.pm
> > > > > > line 102, <GEN108> line 46.
> > >
> > > Hrm.  That's not good.  Seems like there's a race condition in there. :(
> > >
> > > 1) If you can open a bz ticket about that, we ought to prod the code and try
> > > to eliminate the race.
> >
> > Will do.
> >
> > > 2) If the files are on local disk, switch to using the flock method instead.
> > > It's much better, imo.
> >
> > Wow, I didn't even know that was a config option (didn't see it in the
> > docs).  I just switched it and so far, it appears to have done the trick,
> > although the condition was coming and going, so I'll keep an eye on it.
> 
> It appeared to have fixed the race condition from what I could see...cpu
> was down, number of children, smtp connections, etc.  However, about 12
> minutes ago, the spamd parent died for the second time since the upgrade.
> Here is all I could find in the maillog:
> 
> May 31 12:59:44 mail spamd[35583]: spamd: result: Y 12 -
> BAYES_80,FORGED_RCVD_HE
> LO,HTML_40_50,HTML_MESSAGE,RCVD_IN_DSBL,URIBL_JP_SURBL,URIBL_SBL
> scantime=0.9,si
> ze=2585,user=simscan,uid=0,required_score=6.0,rhost=localhost.pil.net,raddr=127.
> 0.0.1,rport=4599,mid=<00...@ddq18>,bayes=0.930576978197
> 612,autolearn=no
> May 31 12:59:49 mail qmail: 1149094789.960550 new msg 289788
> May 31 12:59:49 mail qmail: 1149094789.960823 info msg 289788: bytes 14074
> from <li...@verisign.com> qp 35721 uid 1003
> May 31 12:59:49 mail spamc[35739]: connect(AF_INET) to spamd at 127.0.0.1
> failed, retrying (#1 of 3): Connection refused
> May 31 12:59:49 mail spamc[35744]: connect(AF_INET) to spamd at 127.0.0.1
> failed, retrying (#1 of 3): Connection refused
> May 31 12:59:50 mail qmail: 1149094790.217124 starting delivery 70430: ms
> 
> (deliveries continued, without filtering)
> 
> James Smallacombe		      PlantageNet, Inc. CEO and Janitor
> up@3.am							    http://3.am
> =========================================================================

Re: 3.1.2 issue with UnixNFSSafe.pm ?

Posted by Kai Schaetzl <ma...@conactive.com>.
 wrote on Wed, 31 May 2006 19:37:54 -0400 (EDT):

> some 
> under the 5.6.1 site_perl, some under 5.005.

Did you notice that you didn't say anything about this earlier? ;-) It 
seems this is the cause of your problem.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com




Re: 3.1.2 issue with UnixNFSSafe.pm ?

Posted by up...@3.am.
On Wed, 31 May 2006 up@3.am wrote:

> On Wed, 31 May 2006 up@3.am wrote:
>
> > On Wed, 31 May 2006, Justin Mason wrote:
> > >
> > > Can you get output of
> > >
> > >     strace -f -o trace
> > >
> > > on the affected processes?  (easy way: just stop spamd, then strace the
> > > spamd startup script.)
> >
> > Ok, that's going without any output as of yet...

Um...I was looking at STDOUT instead of STDERR...there's lotsa
output...like 24MB within a few seconds.  Not sure which of that would be
useful, but I did see alot of complaints about missing perl modules, some
under the 5.6.1 site_perl, some under 5.005.


James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up@3.am							    http://3.am
=========================================================================


Re: 3.1.2 issue with UnixNFSSafe.pm ?

Posted by up...@3.am.
On Wed, 31 May 2006 up@3.am wrote:

> On Wed, 31 May 2006, Justin Mason wrote:
> >
> > Can you get output of
> >
> >     strace -f -o trace
> >
> > on the affected processes?  (easy way: just stop spamd, then strace the
> > spamd startup script.)
>
> Ok, that's going without any output as of yet.  I did notice from the
> console log that a perl dumped core at the same time spamd died (perl
> 5.6.1), but the core isn't telling me much:
>
> This GDB was configured as "i386-unknown-freebsd".
> Core was generated by `perl'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x28198c65 in ?? ()

Whoops, sorry, here's the bt output:

(gdb) bt
#0  0x28198c65 in ?? ()
#1  0x28199653 in ?? ()
#2  0x2819a6ab in ?? ()
#3  0x28198490 in ?? ()
#4  0x28196454 in ?? ()
#5  0x28187bf6 in ?? ()
#6  0x809eb99 in ?? ()
#7  0x8092694 in ?? ()
#8  0x809907b in ?? ()
#9  0x8095cb6 in ?? ()
#10 0x805bfd6 in ?? ()
#11 0x805bbc3 in ?? ()
#12 0x8092141 in ?? ()
#13 0xbfbfffac in ?? ()
#14 0x2819c8c1 in ?? ()
#15 0x2819cfd9 in ?? ()
#16 0x808a117 in ?? ()
#17 0x809d072 in ?? ()
#18 0x8060e46 in ?? ()
#19 0x805eff4 in ?? ()
#20 0x80bf116 in ?? ()
#21 0x8095cb6 in ?? ()
#22 0x805b783 in ?? ()
#23 0x805b4f0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#24 0x8058e09 in ?? ()
#25 0x8058cee in ?? ()

James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up@3.am							    http://3.am
=========================================================================


Re: 3.1.2 issue with UnixNFSSafe.pm ?

Posted by up...@3.am.
On Wed, 31 May 2006, Justin Mason wrote:
>
> Can you get output of
>
>     strace -f -o trace
>
> on the affected processes?  (easy way: just stop spamd, then strace the
> spamd startup script.)

Ok, that's going without any output as of yet.  I did notice from the
console log that a perl dumped core at the same time spamd died (perl
5.6.1), but the core isn't telling me much:

This GDB was configured as "i386-unknown-freebsd".
Core was generated by `perl'.
Program terminated with signal 11, Segmentation fault.
#0  0x28198c65 in ?? ()

James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up@3.am							    http://3.am
=========================================================================