You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jakob Hirsch <jh...@plonk.de> on 2010/01/29 10:53:21 UTC

3.3.0: uninitialized value $start_time

Hi,

when running spamc to learn/unlearn, I get this:

> Fri Jan 29 10:00:01 2010 [9855] info: spamd: got connection over /var/run/spamd/socket
> Fri Jan 29 10:00:01 2010 [9855] warn: Use of uninitialized value $start_time in addition (+) at /usr/bin/spamd line 1382, <GEN4747> line 47.
> Fri Jan 29 10:00:02 2010 [9855] info: spamd: Tell: Setting local for nobody:108 in 0.4 seconds, 2287 bytes


Oh, and I get some of these:

> Fri Jan 29 08:53:33 2010 [11842] info: spamd: handled cleanup of child pid [3688] due to SIGCHLD: exit 0
> Fri Jan 29 10:00:15 2010 [11842] info: spamd: handled cleanup of child pid [15751] due to SIGCHLD: INTERRUPTED, signal 2 (0002)

The first one is ok, I guess, but why does SA send SIGINT to a child??



Re: 3.3.0: uninitialized value $start_time

Posted by Mark Martinec <Ma...@ijs.si>.
On Friday 29 January 2010 11:50:25 Mark Martinec wrote:
> On Friday January 29 2010 10:53:21 Jakob Hirsch wrote:
> > when running spamc to learn/unlearn, I get this:
> > > Fri Jan 29 10:00:01 2010 [9855] warn: Use of
> > > uninitialized value $start_time in addition (+)
> > > at /usr/bin/spamd line 1382, <GEN4747> line 47.
> 
> It's not too bad, but it's not good either. The $start_time is
> not set for learn/unlearn requests, so the timeout code can
> jump in much too soon. Please open a bug report.

Done, and provided a fix:
  https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6312


Mark

Re: 3.3.0: uninitialized value $start_time

Posted by Mark Martinec <Ma...@ijs.si>.
On Friday January 29 2010 10:53:21 Jakob Hirsch wrote:

> when running spamc to learn/unlearn, I get this:
> > Fri Jan 29 10:00:01 2010 [9855] warn: Use of
> > uninitialized value $start_time in addition (+) at /usr/bin/spamd line
> > 1382, <GEN4747> line 47.

It's not too bad, but it's not good either. The $start_time is
not set for learn/unlearn requests, so the timeout code can
jump in much too soon. Please open a bug report.


> Oh, and I get some of these:
> > Fri Jan 29 08:53:33 2010 [11842] info: spamd: handled cleanup of child
> > pid [3688] due to SIGCHLD: exit 0 Fri Jan 29 10:00:15 2010 [11842] info:
> > spamd: handled cleanup of child pid [15751] due to SIGCHLD: INTERRUPTED,
> > signal 2 (0002)
> 
> but why does SA send SIGINT to a child??

This is normal when you allow spamd to dynamically adjust
the number of child processes. See discussion in:
  https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6304


Mark