From nobody@FreeBSD.org  Mon Jun 25 13:28:49 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 0FD3016A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 13:28:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id DE3AA13C455
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 13:28:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5PDSmJG068231
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jun 2007 13:28:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5PDSmZ7068230;
	Mon, 25 Jun 2007 13:28:48 GMT
	(envelope-from nobody)
Message-Id: <200706251328.l5PDSmZ7068230@www.freebsd.org>
Date: Mon, 25 Jun 2007 13:28:48 GMT
From: Ludger Bolmerg <lbolmerg@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: spamassassin/spamd not showing process title when using option --virtual-config-dir
X-Send-Pr-Version: www-3.0

>Number:         114014
>Category:       ports
>Synopsis:       mail/p5-mail-spamassassin : spamd not showing process title when using option --virtual-config-dir
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 25 13:30:04 GMT 2007
>Closed-Date:    Tue Jul 10 21:54:38 GMT 2007
>Last-Modified:  Tue Jul 10 21:54:38 GMT 2007
>Originator:     Ludger Bolmerg
>Release:        6.1
>Organization:
>Environment:
>Description:
After upgrading to p5-Mail-Spamassassin-3.2.1 the ps command only shows [perl5.8.8] as proc title for the spamd process instead of /usr/local/bin/spamd ...
This happens only if option --virtual-config-dir is used for spamd

The script /usr/local/etc/rc.d/sa-spamd relies on a properly set proc title.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jun 25 22:27:27 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114014 

From: Michael Scheidell <scheidell@secnap.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114014: mail/p5-mail-spamassassin: spamd not showing process
 title when using option --virtual-config-dir
Date: Tue, 26 Jun 2007 09:02:10 -0400

 Edwin Groothuis wrote:
 > Maintainer of mail/p5-Mail-SpamAssassin,
 >
 > Please note that PR ports/114014 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/114014
 >
 >   
 Not enough information:  please close in two weeks if no response by PR 
 submitter.
 
 #1: What is environment?  (uname -a)
 #2: what EXACTLY were the spamd_flags and options (grep ^spamd 
 /etc/rc.conf*)
 #3, is this a spamAssassin problem?  should spamd.raw be patched? should 
 sa-spamd.sh be patched?
   If spamd.raw should be patched, this needs to be submitted to 
 bugzilla.spamassassin.org.
 
 If the process name depends on a full patch name, and patch has been 
 replaced (with virtual config dir) it might need symlinks or something else.
 
 patches to fix this should be attached to either this PR (if a patch to 
 sa-spamd.sh) or to spamassassin PR (if patch to spamd)
 
 
 
 _________________________________________________________________________
 This email has been scanned and certified safe by SpammerTrap(tm). 
 For Information please see http://www.spammertrap.com
 _________________________________________________________________________

From: Ludger Bolmerg <lbolmerg@web.de>
To: bug-followup@FreeBSD.org, Michael Scheidell <scheidell@secnap.net>, 
 lbolmerg@web.de
Cc:  
Subject: Re: ports/114014: mail/p5-mail-spamassassin : spamd not showing process
 title when using option --virtual-config-dir
Date: Thu, 28 Jun 2007 21:14:31 +0200

 Sorry for the incomplete information.
 
 #1: What is environment? (uname -a)
 
 FreeBSD netserv2.munichre.com 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #1: 
 Mon Aug 28 11:17:41 CEST 2006 
 gr172@netserv2.dmz.munichre.com:/usr/obj/usr/src/sys/MYKERNEL  i386
 
 #2: what EXACTLY were the spamd_flags and options
 
 with the following options:
 : ${spamd_flags="-x --max-children=20 --min-children=5 \
   --min-spare=2 --max-spare=10 --listen-ip=127.0.0.1 \
   -u spamd \
   -H /var/spool/spamd \
   --allowed-ips=193.103.202.0/24,127.0.0.1 \
   --virtual-config-dir=/var/spamassassin/user_prefs/%u "}
 
 ps ax
 results in:
 
 44314  ??  Ss     0:03.94 [perl5.8.8]
 44319  ??  S      0:00.03 spamd child (perl5.8.8)
 44320  ??  S      0:00.02 spamd child (perl5.8.8)
 44321  ??  S      0:00.02 spamd child (perl5.8.8)
 ...
 
 without the virtual-config-dir option
 ps ax
 results in:
 
 41645  ??  Ss     0:04.43 /usr/local/bin/spamd -x --max-children=20 
 --min-children=5 --min-spare=2 --max-spare=10 --listen-ip=127.0.0.1 -u 
 spamd -H /var/spool/spamd --allowed-ips=193.103.202.0/24,127.0.0.1 -d -r 
 /var/run/spamd/spamd.pid (perl5.8.8)
 41663  ??  S      1:18.86 spamd child (perl5.8.8)
 41664  ??  S      0:29.54 spamd child (perl5.8.8)
 41665  ??  R      0:07.31 spamd child (perl5.8.8)
 ...
 
 #3, is this a spamAssassin problem? should spamd.raw be patched? should
 sa-spamd.sh be patched?
 
 I don't really know the answer to this question.
 
 
 

From: Michael Scheidell <scheidell@secnap.net>
To: Ludger Bolmerg <lbolmerg@web.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/114014: mail/p5-mail-spamassassin : spamd not showing process
 title when using option --virtual-config-dir
Date: Fri, 29 Jun 2007 17:06:29 -0400

 Ludger Bolmerg wrote:
 > Sorry for the incomplete information.
 >
 PR maintainer: please close PR as 'not port problem'.  it is either a 
 spamassassin problem, perl problem or OS problem.
 > #1: What is environment? (uname -a)
 >
 > FreeBSD netserv2.munichre.com 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 
 > #1: Mon Aug 28 11:17:41 CEST 2006 
 > gr172@netserv2.dmz.munichre.com:/usr/obj/usr/src/sys/MYKERNEL  i386
 >
 > #2: what EXACTLY were the spamd_flags and options
 >
 > with the following options:
 > : ${spamd_flags="-x --max-children=20 --min-children=5 \
 >  --min-spare=2 --max-spare=10 --listen-ip=127.0.0.1 \
 >  -u spamd \
 >  -H /var/spool/spamd \
 >  --allowed-ips=193.103.202.0/24,127.0.0.1 \
 >  --virtual-config-dir=/var/spamassassin/user_prefs/%u "}
 
 Try starting by hand with:
 
 spamd -x --listen-ip=127.0.0.1 -u spamd -H /var/spool/spamd \
 --allowed-ips=192.103.202.0/24,127.0.0.1 \
 --virtual-config-dir=/var/spamassassin/user_prefs/%u \
 -d -r /var/run/spamd/spamd.pid
 
 I get this:
 
 ps -auxww | grep spamd
 root    30621  0.0  5.7 61808 58968  ??  Ss    4:22PM   0:02.20 
 /usr/local/bin/spamd -x --listen-ip=127.0.0.1 -u spamd -H 
 /var/spool/spamd --allowed-ips=192.103.202.0/24,127.0.0.1 
 --virtual-config-dir=/var/spamassassin/user_prefs/%u -d -r 
 /var/run/spamd/spamd.pid (perl5.8.8)
 spamd   30636  0.0  5.7 61808 58968  ??  I     4:22PM   0:00.01 spamd 
 child (perl5.8.8)
 spamd   30637  0.0  5.7 61808 58968  ??  I     4:22PM   0:00.01 spamd 
 child (perl5.8.8)
 root    31023  0.0  0.1  1508   856  p1  LL+   4:23PM   0:00.00 grep spamd
 
 
 but, increase the command line length and it fails:  (issue is not 
 sa-spamd.sh   I did not use sa-spamd.sh)
 
 spamd -x --max-children=20 --min-children=5 --min-spare=2 --max-spare=10 
 --listen-ip=127.0.0.1 -u spamd -H /var/spool/spamd 
 --allowed-ips=193.103.202.0/24,127.0.0.1 
 --virtual-config-dir=/var/spamassassin/user_prefs/%u -d -r  
 /var/run/spamd/spamd.pid
 
 I get this:
 
 ps -auxww | grep spamd
 spamd   37082  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 child (perl5.8.8)
 spamd   37083  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 child (perl5.8.8)
 spamd   37084  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 child (perl5.8.8)
 spamd   37085  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 child (perl5.8.8)
 spamd   37086  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 child (perl5.8.8)
 spamd   37087  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 child (perl5.8.8)
 spamd   37088  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 child (perl5.8.8)
 spamd   37089  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 child (perl5.8.8)
 spamd   37090  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 child (perl5.8.8)
 spamd   37091  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 child (perl5.8.8)
 
 so, this is not a sa-spamd.sh problem,
 
 I suspect that the length of the commandline is the issue, and that 
 adding in --virtual-config-dir cause the tip past the point of it working.
 
 
 
 _________________________________________________________________________
 This email has been scanned and certified safe by SpammerTrap(tm). 
 For Information please see http://www.spammertrap.com
 _________________________________________________________________________

From: Ludger Bolmerg <lbolmerg@web.de>
To: Michael Scheidell <scheidell@secnap.net>,  bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114014: mail/p5-mail-spamassassin : spamd not showing process
 title when using option --virtual-config-dir
Date: Sat, 30 Jun 2007 15:05:46 +0200

 Michael Scheidell wrote:
 > 
 > Try starting by hand with:
 > 
 > spamd -x --listen-ip=127.0.0.1 -u spamd -H /var/spool/spamd \
 > --allowed-ips=192.103.202.0/24,127.0.0.1 \
 > --virtual-config-dir=/var/spamassassin/user_prefs/%u \
 > -d -r /var/run/spamd/spamd.pid
 > 
 > I get this:
 > 
 > ps -auxww | grep spamd
 > root    30621  0.0  5.7 61808 58968  ??  Ss    4:22PM   0:02.20 
 > /usr/local/bin/spamd -x --listen-ip=127.0.0.1 -u spamd -H 
 > /var/spool/spamd --allowed-ips=192.103.202.0/24,127.0.0.1 
 > --virtual-config-dir=/var/spamassassin/user_prefs/%u -d -r 
 > /var/run/spamd/spamd.pid (perl5.8.8)
 > spamd   30636  0.0  5.7 61808 58968  ??  I     4:22PM   0:00.01 spamd 
 > child (perl5.8.8)
 > spamd   30637  0.0  5.7 61808 58968  ??  I     4:22PM   0:00.01 spamd 
 > child (perl5.8.8)
 > root    31023  0.0  0.1  1508   856  p1  LL+   4:23PM   0:00.00 grep spamd
 > 
 > 
 > but, increase the command line length and it fails:  (issue is not 
 > sa-spamd.sh   I did not use sa-spamd.sh)
 > 
 > spamd -x --max-children=20 --min-children=5 --min-spare=2 --max-spare=10 
 > --listen-ip=127.0.0.1 -u spamd -H /var/spool/spamd 
 > --allowed-ips=193.103.202.0/24,127.0.0.1 
 > --virtual-config-dir=/var/spamassassin/user_prefs/%u -d -r  
 > /var/run/spamd/spamd.pid
 > 
 > I get this:
 > 
 > ps -auxww | grep spamd
 > spamd   37082  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 > child (perl5.8.8)
 > spamd   37083  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 > child (perl5.8.8)
 > spamd   37084  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 > child (perl5.8.8)
 > spamd   37085  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 > child (perl5.8.8)
 > spamd   37086  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 > child (perl5.8.8)
 > spamd   37087  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 > child (perl5.8.8)
 > spamd   37088  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 > child (perl5.8.8)
 > spamd   37089  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 > child (perl5.8.8)
 > spamd   37090  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.02 spamd 
 > child (perl5.8.8)
 > spamd   37091  0.0  5.6 61812 58920  ??  I     5:02PM   0:00.01 spamd 
 > child (perl5.8.8)
 > 
 > so, this is not a sa-spamd.sh problem,
 > 
 > I suspect that the length of the commandline is the issue, and that 
 > adding in --virtual-config-dir cause the tip past the point of it working.
 > 
 
 Replacing --listen-ip by -i and --allowed-ips by -A and thus reducing 
 the length of the command line solved the issue.  Thanks for pointing me 
 into the right direction.
 Is this a perl or an OS issue?
 

From: Michael Scheidell <scheidell@secnap.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114014: mail/p5-mail-spamassassin : spamd not showing process
 title when using option --virtual-config-dir
Date: Sun, 01 Jul 2007 09:32:32 -0400

 Please mark 'closed'.  this is not a spamassassin issue.
 
 _________________________________________________________________________
 This email has been scanned and certified safe by SpammerTrap(tm). 
 For Information please see http://www.spammertrap.com
 _________________________________________________________________________
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue Jul 10 21:53:21 UTC 2007 
State-Changed-Why:  
Closing; this is not spamassassin problem. (I think there's a fixed length 
buffer in kernel that keeps the command line.) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114014 
>Unformatted:
