You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/12/28 17:44:42 UTC

[Bug 5255] New: spamd SIGHUP handler can't deal with restarting on solaris if run using hand-specified perl interpreter commandline

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5255

           Summary: spamd SIGHUP handler can't deal with restarting on
                    solaris if run using hand-specified perl interpreter
                    commandline
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P5
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: jm@jmason.org


at least that's what I think it is:

http://buildbot.spamassassin.org/t-solaris-10/builds/10/test/0


t/spamc_y...................ok
t/spamd.....................ok
t/spamd_allow_user_rules....ok
t/spamd_hup.................# Failed test 4 in t/spamd_hup.t at line 40
#  t/spamd_hup.t line 40 is:   ok (-e $pid_file);
Could not open pid file log/spamd.pid: No such file or directory
dubious
	Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4-90
	Failed 87/90 tests, 3.33% okay

looking into the issue, the spamd log in t/log/d.spamd_hup contained:

[17977] info: spamd: server hit by SIGHUP, restarting
[17977] dbg: prefork: new lowest idle kid: 18013
[17977] info: spamd: child 18014 killed successfully
[17977] dbg: prefork: new lowest idle kid: none
[17977] info: spamd: child 18013 killed successfully
[17977] dbg: prefork: select returned err Interrupted system call, probably signalle
d
Too late for "-T" option at ../spamd/spamd.raw line 1.


in other words, the spamd was being re-execed, but without the
correct flags to the perl interpreter; probably something like
"perl spamd.raw ..." instead of "perl -T -w spamd.raw ...".

This is actually an entirely valid, although probably rare, condition.
(Normally one would run spamd as "spamd" instead of as "perl spamd"
or "/usr/local/perl561/bin/perl -T -w spamd" etc.)

anyway, I just wanted to log this bug to track the issue... fix
is ready to check in.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5255] spamd SIGHUP handler can't deal with restarting on solaris if run using hand-specified perl interpreter commandline

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5255





------- Additional Comments From mlathoud@b2b2c.ca  2007-01-26 08:36 -------
The fix creates a side effect at least on Linux, /proc/$PID/exe points to
/usr/bin/perl instead of /usr/bin/spamd, so some proc tools won't find spamd
anymore after a -HUP (i.e pstree, pidof), showing perl instead.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5255] spamd SIGHUP handler can't deal with restarting on solaris if run using hand-specified perl interpreter commandline

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5255


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|Undefined                   |3.2.0




------- Additional Comments From jm@jmason.org  2006-12-28 08:45 -------
fix checked in:

: jm 15...; svn commit -m "bug 5255: SIGHUP handler couldn't restart spamd if it
had been started using an odd commandline (possibly only on solaris)"
spamd/spamd.raw
Sending        spamd/spamd.raw
Transmitting file data .
Committed revision 490760.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5255] spamd SIGHUP handler can't deal with restarting on solaris if run using hand-specified perl interpreter commandline

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5255





------- Additional Comments From jm@jmason.org  2007-04-17 10:26 -------
Martin -- I've opened that as bug 5419 (separately).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.