From owner-freebsd-stable@freebsd.org Sun Jun 2 13:54:25 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B594D15B62DE for ; Sun, 2 Jun 2019 13:54:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F0FFC6A09A for ; Sun, 2 Jun 2019 13:54:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x52DsHj4017045 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 2 Jun 2019 16:54:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x52DsHj4017045 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x52DsHj6017044; Sun, 2 Jun 2019 16:54:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 2 Jun 2019 16:54:17 +0300 From: Konstantin Belousov To: Stefan Hegnauer Cc: freebsd-stable@freebsd.org Subject: Re: ps -J0 broken? Message-ID: <20190602135417.GG75280@kib.kiev.ua> References: <3e81cb06-853b-c682-5dd2-a40191ae9a72@gmx.ch> <20190602130529.GF75280@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2019 13:54:25 -0000 On Sun, Jun 02, 2019 at 03:31:08PM +0200, Stefan Hegnauer wrote: > > > 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/ps > >> -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 still > >> work according to ps(1): > >>      -J      Display information about processes which match the specified > >>              jail IDs.  This may be either the jid or name of the jail.  > >> **Use** > >> **             -J 0 to display only host processes*.*  This flag implies > >> -x by > >>              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: > >     # grep FBSDID /usr/src/lib/libjail/jail_getid.c >     __FBSDID("$FreeBSD: stable/12/lib/libjail/jail_getid.c 348297 > 2019-05-27 02:18:33Z kevans $"); >     # >     # ls -l /lib/libjail* >     -r--r--r--  1 root  wheel  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="YES" in /etc/src-env.conf to speed up > things. Anything else to look for? Yes, rebuild without metamode, and remove your /usr/obj first.