From owner-freebsd-current@freebsd.org Tue Apr 9 19:44:12 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 BC050156B600; Tue, 9 Apr 2019 19:44:12 +0000 (UTC) (envelope-from ler@FreeBSD.org) Received: from thebighonker.lerctr.org (unknown [IPv6:2001:470:1f0f:3ad::53:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.lerctr.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59270766F0; Tue, 9 Apr 2019 19:44:12 +0000 (UTC) (envelope-from ler@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xKM7zEMT6TCUjH28Ayz7c6e0sOg5D6IDl74g1L+Bw4s=; b=RyPmzGCfP8sYgYC7at7WqjsKS3 yZ2mcPb3TP9U4WYZbavIJ4DIV3+jT6xEjGD/EqN0Z6UBQR4GU0ptfrdnSO6C+fKsmvu8eDvfM5+0A MxPBIm7ovp0kGQhnivkH7H/EPLBVZvOLN/Pyn80O+xxki9rq9RvT6BpkpPGqxrpqpGQKgF6Hv10Jz WVjd6HnVCcE6xbWkEX+bu95W8XlJUDqwq09iUn2PLfIehKs/bOJSn1G1Z4YmiHTNn+9zg1YiZtGch 8bIR9vdoL6x//RWY/RLgcflBcmgnEAMu/nVjKzhJ2yuMJ9AfIdlinbHZmD0vV/GdeyObrRaZk+2nJ ncgQ6zMA==; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:bb:dcff:fe50:d900]:52394 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hDwf9-000IGm-M1; Tue, 09 Apr 2019 14:44:07 -0500 Received: from 2600:1700:210:b180:9950:ab98:4498:ec58 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Tue, 09 Apr 2019 14:44:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 09 Apr 2019 14:44:07 -0500 From: Larry Rosenman To: "Rodney W. Grimes" Cc: David Boyd , freebsd-current@freebsd.org, owner-freebsd-current@freebsd.org Subject: Re: lsof hangs with latest 13.0-CURRENT snapshot In-Reply-To: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net> References: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net> Message-ID: X-Sender: ler@FreeBSD.org User-Agent: Roundcube Webmail/1.3.8 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:44:13 -0000 On 04/09/2019 2:41 pm, Rodney W. Grimes wrote: >> 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. As the lsof maintainer, I heartily agree here.... Compile it against your system, and if it still hangs, make me a bugzilla ticket with the details. Thanks! -- Larry Rosenman http://people.freebsd.org/~ler Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106