Re: lsof hangs with latest 13.0-CURRENT snapshot

From: Cy Schubert <Cy.Schubert_at_cschubert.com>
Date: Tue, 09 Apr 2019 15:36:02 -0700
On April 9, 2019 12:41:34 PM PDT, "Rodney W. Grimes" <freebsd-rwg_at_gndrsh.dnsmgr.net> 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.

Version mismatches are innocuous. I tend to use it on -current until it breaks, rebuilding it as needed. Rebuilding is a good time to update the port while I'm at it. This policy has served me well over the years. 


-- 
Pardon the typos and autocorrect, small keyboard in use.
Cheers,
Cy Schubert <Cy.Schubert_at_cschubert.com>
FreeBSD UNIX: <cy_at_FreeBSD.org> Web: http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.
Received on Tue Apr 09 2019 - 20:36:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC