From owner-freebsd-current@freebsd.org Tue Apr 9 22:36:39 2019 Return-Path: Delivered-To: freebsd-current@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 6D85A1570AC4 for ; Tue, 9 Apr 2019 22:36:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F1D38591F for ; Tue, 9 Apr 2019 22:36:37 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id DzLvhIDcMo7SQDzLxhb3wx; Tue, 09 Apr 2019 16:36:30 -0600 X-Authority-Analysis: v=2.3 cv=Go88BX9C c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=oexKYjalfGEA:10 a=iKhvJSA4AAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=myc0QebvQyQhy0_iO9kA:9 a=QEXdDO2ut3YA:10 a=odh9cflL3HIXMm4fY7Wr:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from DESKTOP-IJTJOA3.esitwifi.local (S0106788a207e2972.gv.shawcable.net [70.66.154.233]) by spqr.komquats.com (Postfix) with ESMTPSA id 116CA1877; Tue, 9 Apr 2019 15:36:27 -0700 (PDT) Date: Tue, 09 Apr 2019 15:36:02 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net> References: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: lsof hangs with latest 13.0-CURRENT snapshot To: freebsd-current@freebsd.org, "Rodney W. Grimes" , David Boyd From: Cy Schubert Message-ID: <3A0D37FF-317F-45CE-88E5-64E4642BACD6@cschubert.com> X-CMAE-Envelope: MS4wfLU6NYjLRfbpaDGi0EzvSkdq2TZOqSh4/OUwit7qeAg5huUHPLvjU9QEmdXptFLAxTUbnZwTlan7dmLip3c1bKlu5Y3XqJK49igsRQnHJEW+hfbw4b4q PZ3iKjeOVO8s+27RxgFiB6ugRVYnh6q+hU0oGMo5BLatMmsipCfVJxoGtTzk1AdHFNDieiNlvWslLHMQoKchtCLDvI2UV7T6Ps1f7v8jvKMxawGEOAec+9tg gtMAX+HZphuqiqf2G/TpAcL3sdbTgIPhtmVBBiuKzao= X-Rspamd-Queue-Id: 8F1D38591F X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-5.39 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11,233.154.66.70.zen.spamhaus.org : 127.0.0.11]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[spqr.komquats.com]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[139.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-2.20)[ip: (-5.42), ipnet: 64.59.128.0/20(-3.09), asn: 6327(-2.40), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2019 22:36:39 -0000 On April 9, 2019 12:41:34 PM PDT, "Rodney W=2E Grimes" wrote: >> On Tue, 2019-04-09 at 12:20 -0700, Rodney W=2E Grimes wrote: >> > > After upgrading from FreeBSD-13=2E0-CURRENT-amd64-20190328-r345620 >to >> > > FreeBSD-13=2E0-CURRENT-amd64-20190404-r345863, lsof (4=2E92 from >> > > packages) >> > > hangs=2E >> > >=20 >> > > This is true for bare metal installs and virtual machine >installs=2E >> > >=20 >> > > How to recreate: >> > > =09 >> > > Install FreeBSD-13=2E0-CURRENT-amd64-20190404-r345863 snapshot=2E >> > >=20 >> > > as root: lsof /sbin/init >> > >=20 >> > > By running command with -b option, this error is displayed: >> > >=20 >> > > lsof: status error on /sbin/init: Resource temporarily >unavailable >> > >=20 >> > > The return code is 1=2E >> > >=20 >> > > This probably requires adjustment to lsof, but only the FreeBSD >> > > snapshot changed, so I'll start here=2E >> >=20 >> > Where did you get your lsof binary from? >> >=20 >> > lsof has internal knowledge of kernel data structures=20 >> > and must be compiled to match the running system=2E >> >=20 >> >=20 >> > > Thanks=2E >> > > David Boyd=2E >>=20 >>=20 >> lsof was installed via pkg install from pkg=2Efreebsd=2Eorg=2E > >That does not work well on ^head or for that mater any snapshot, >as I said, lsof has internal knowledge of kernel data structures >and must match the running kernel for it to work=2E > >It should be complaining about a version mismatch, but perhaps >it was compiled recently enough that these are matching, but >there is still a datastruct that changed=2E Version mismatches are innocuous=2E I tend to use it on -current until it = breaks, rebuilding it as needed=2E Rebuilding is a good time to update the = port while I'm at it=2E This policy has served me well over the years=2E=20 --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E