From owner-freebsd-current@freebsd.org Tue Apr 9 19:41:38 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 609CD156B477 for ; Tue, 9 Apr 2019 19:41:38 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B276764CA for ; Tue, 9 Apr 2019 19:41:37 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x39JfYxo061790; Tue, 9 Apr 2019 12:41:34 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x39JfY49061789; Tue, 9 Apr 2019 12:41:34 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net> Subject: Re: lsof hangs with latest 13.0-CURRENT snapshot In-Reply-To: To: David Boyd Date: Tue, 9 Apr 2019 12:41:34 -0700 (PDT) CC: "Rodney W. Grimes" , freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 8B276764CA X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-0.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.538,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.44)[-0.436,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_HAM_SHORT(-0.14)[-0.139,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[twc.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.03)[ip: (0.12), ipnet: 69.59.192.0/19(0.06), asn: 13868(0.04), country: US(-0.06)] 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 19:41:38 -0000 > On Tue, 2019-04-09 at 12:20 -0700, Rodney W. Grimes wrote: > > > After upgrading from FreeBSD-13.0-CURRENT-amd64-20190328-r345620 to > > > FreeBSD-13.0-CURRENT-amd64-20190404-r345863, lsof (4.92 from > > > packages) > > > hangs. > > > > > > This is true for bare metal installs and virtual machine installs. > > > > > > How to recreate: > > > > > > Install FreeBSD-13.0-CURRENT-amd64-20190404-r345863 snapshot. > > > > > > as root: lsof /sbin/init > > > > > > By running command with -b option, this error is displayed: > > > > > > lsof: status error on /sbin/init: Resource temporarily unavailable > > > > > > The return code is 1. > > > > > > This probably requires adjustment to lsof, but only the FreeBSD > > > snapshot changed, so I'll start here. > > > > Where did you get your lsof binary from? > > > > lsof has internal knowledge of kernel data structures > > and must be compiled to match the running system. > > > > > > > Thanks. > > > David Boyd. > > > lsof was installed via pkg install from pkg.freebsd.org. 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. 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. -- Rod Grimes rgrimes@freebsd.org