In particular, the command-line used by the nagios plug-in check_procs produces: imb@aaron:/home/imb> /bin/ps axwo 'state uid ppid vsz rss pcpu ucomm command' Segmentation fault (core dumped) Removing 'ppid' stops it from dumping core, -- Michael Butler, CISSP Security Architect Protected Networks http://www.protected-networks.net -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4603 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060405/d2b718e1/smime.bin
I wrote (in too much of a hurry :-():> In particular, the command-line used by the nagios plug-in check_procs > produces: > > imb@aaron:/home/imb> /bin/ps axwo 'state uid ppid vsz rss pcpu ucomm > command' > Segmentation fault (core dumped) > > Removing 'ppid' stops it from dumping core,That should have been 'pcpu' .. I've just checked out a full new source set and am recompiling from scratch to see if it persists, -- Michael Butler, CISSP Security Architect Protected Networks http://www.protected-networks.net -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4603 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060405/c92782b8/smime.bin
James Raftery wrote:> Hmm. This is the only commit that jumps out at me as being related to > ps: > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=347962+0+current/cvs-src > > Might be worth a shot to retry with the previous revision.It is definitely related - 'pcpu' doesn't work, '%cpu' does .. -- Michael Butler, CISSP Security Architect Protected Networks http://www.protected-networks.net -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4603 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060405/055ce045/smime.bin
On Wed, Apr 05, 2006 at 11:29:45AM -0400, Michael Butler wrote:> In particular, the command-line used by the nagios plug-in check_procs > produces: > > imb@aaron:/home/imb> /bin/ps axwo 'state uid ppid vsz rss pcpu ucomm > command' > Segmentation fault (core dumped) > > Removing 'ppid' stops it from dumping core, >This is result of MFC of rev. 1.73, 1.74 of bin/ps/keyword.c. Try the following fix: Index: bin/ps/keyword.c ==================================================================RCS file: /usr/local/arch/ncvs/src/bin/ps/keyword.c,v retrieving revision 1.74 diff -u -r1.74 keyword.c --- bin/ps/keyword.c 8 Mar 2006 09:15:20 -0000 1.74 +++ bin/ps/keyword.c 5 Apr 2006 16:12:50 -0000 @@ -302,6 +302,8 @@ hp = strchr(p, '='); if (hp) *hp++ = '\0'; + else + hp = p; key.name = p; v = bsearch(&key, var, sizeof(var)/sizeof(VAR) - 1, sizeof(VAR), vcmp); -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060405/569bdf51/attachment.pgp