Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 2019 15:31:08 +0200
From:      Stefan Hegnauer <stefan.hegnauer@gmx.ch>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ps -J0 broken?
Message-ID:  <c6b5b9a3-a80a-77f4-ff5a-8acdac7119a6@gmx.ch>
In-Reply-To: <20190602130529.GF75280@kib.kiev.ua>
References:  <mailman.11.1559476800.15549.freebsd-stable@freebsd.org> <3e81cb06-853b-c682-5dd2-a40191ae9a72@gmx.ch> <20190602130529.GF75280@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help


On 02.06.2019 15:05, Konstantin Belousov wrote:
> On Sun, Jun 02, 2019 at 02:30:49PM +0200, Stefan Hegnauer wrote:
>> Hi,
>>
>> after a recent full update to 12.0-STABLE r348382 it seems that '/bin/p=
s
>> -J 0' is broken: 'ps: Invalid jail id: 0'.
>> It did work on stable for the last couple years prior to this update
>> (last update without this error was about 5 weeks ago), and should stil=
l
>> work according to ps(1):
>> =C2=A0=C2=A0=C2=A0=C2=A0 -J=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Display infor=
mation about processes which match the specified
>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 jail IDs.=C2=A0 This may be either the jid or name of the jail.=C2=A0
>> **Use**
>> **=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 -J 0 to display only host processes*.*=C2=A0 This flag implies
>> -x by
>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 default.
>>
>> My system runs several jails with JID's currently in the range 80-100.
>> The source code of ps did not change for the last 7 month as far as I
>> can tell. A fresh 'make clean & make & make install' of just ps did not
>> help either, which was not really surprising to me.
>> Any pointers where to look further?
> Is your libjail up to date ?  Do you have r348297 ?
Thanks for the quick reply. Seems so:

=C2=A0=C2=A0=C2=A0 # grep FBSDID /usr/src/lib/libjail/jail_getid.c
=C2=A0=C2=A0=C2=A0 __FBSDID("$FreeBSD: stable/12/lib/libjail/jail_getid.c =
348297
2019-05-27 02:18:33Z kevans $");
=C2=A0=C2=A0=C2=A0 #
=C2=A0=C2=A0=C2=A0 # ls -l /lib/libjail*
=C2=A0=C2=A0=C2=A0 -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 31520 May 30 =
09:12 /lib/libjail.so.1

My full update included a 'svnlite up /usr/src' followed by make
buildworld & make kernel and later make installworld as per
/usr/src/UPDATING. To the very letter, as I always do just to be save. I
do however use WITH_META_MODE=3D"YES" in /etc/src-env.conf to speed up
things. Anything else to look for?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6b5b9a3-a80a-77f4-ff5a-8acdac7119a6>