From owner-freebsd-stable@FreeBSD.ORG Wed Apr 5 16:14:55 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BA2D16A424; Wed, 5 Apr 2006 16:14:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (ll-227.216.82.212.sovam.net.ua [212.82.216.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18B3F43D5A; Wed, 5 Apr 2006 16:14:51 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.3) with ESMTP id k35GEjPo065698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Apr 2006 19:14:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6) with ESMTP id k35GEjHX074170; Wed, 5 Apr 2006 19:14:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6/Submit) id k35GEi0n074169; Wed, 5 Apr 2006 19:14:44 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 5 Apr 2006 19:14:44 +0300 From: Kostik Belousov To: Michael Butler Message-ID: <20060405161444.GJ1375@deviant.kiev.zoral.com.ua> References: <4433E269.3030104@protected-networks.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hABqaeELJqnDDeDE" Content-Disposition: inline In-Reply-To: <4433E269.3030104@protected-networks.net> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on fw.zoral.com.ua Cc: stable@freebsd.org, gad@freebsd.org Subject: Re: something changed with 'ps' ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 16:14:55 -0000 --hABqaeELJqnDDeDE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > produces: >=20 > imb@aaron:/home/imb> /bin/ps axwo 'state uid ppid vsz rss pcpu ucomm=20 > command' > Segmentation fault (core dumped) >=20 > Removing 'ppid' stops it from dumping core, >=20 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D strchr(p, '=3D'); if (hp) *hp++ =3D '\0'; + else + hp =3D p; =20 key.name =3D p; v =3D bsearch(&key, var, sizeof(var)/sizeof(VAR) - 1, sizeof(VAR), vcmp); --hABqaeELJqnDDeDE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEM+zyC3+MBN1Mb4gRAlcpAKCD+Q547z+waUD1ZtJRjB6s+o2ZHgCeMbfx G08eYECwxlfTSryYw/mQpSA= =F2CQ -----END PGP SIGNATURE----- --hABqaeELJqnDDeDE--