Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Apr 2019 14:44:07 -0500
From:      Larry Rosenman <ler@FreeBSD.org>
To:        "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
Cc:        David Boyd <David.Boyd49@twc.com>, freebsd-current@freebsd.org, owner-freebsd-current@freebsd.org
Subject:   Re: lsof hangs with latest 13.0-CURRENT snapshot
Message-ID:  <d45941f4fdbdcc7a17b41af2b0a268a2@FreeBSD.org>
In-Reply-To: <201904091941.x39JfY49061789@gndrsh.dnsmgr.net>
References:  <201904091941.x39JfY49061789@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d45941f4fdbdcc7a17b41af2b0a268a2>