From owner-freebsd-stable@FreeBSD.ORG Thu Dec 22 15:27:03 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 500F216A41F for ; Thu, 22 Dec 2005 15:27:03 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FFE643D49 for ; Thu, 22 Dec 2005 15:27:02 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1EpSLN-0001bW-Nd; Thu, 22 Dec 2005 17:27:01 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Melvyn Sopacua In-reply-to: Your message of Thu, 22 Dec 2005 15:13:27 +0100 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Dec 2005 17:27:01 +0200 From: Danny Braniss Message-ID: Cc: freebsd-stable@freebsd.org Subject: Re: lsof on 6.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 15:27:03 -0000 > On Thursday 22 December 2005 14:51, Danny Braniss wrote: > > > On Thursday 22 December 2005 12:36, Danny Braniss wrote: > > > > > On Thu, 22 Dec 2005 10:12:17 +0200 > > > > > > > > > > Danny Braniss wrote: > > > > > > i keep getting: > > > > > > lsof: can't determine user device random seed. > > > > > > is it only me? > > > > > > > > > > both as a normal user and as root. > > > > > I don't see the message you are referring to. > > > > > > > > either root, or just a mere mortal, just typing lsof, no arguments: > > > > > > > > shuttle-3> lsof > > > > lsof: can't determine user device random seed. > > > > > > Do you have a mount which is a symlink? > > > > no, but many nfs. > > minbari> mount > > 132.65.16.100:/d/6 on / (nfs) > > nfs mounted root. I think that's the problem. > If you can compile as follows: > env CFLAGS='-g -pipe' STRIP= make install > > then run: > gdb /usr/local/sbin/lsof > > At gdb: > (gdb) break dmnt.c:159 > (gdb) run > > When breaking: > (gdb) print sr > (gdb) print ln > (gdb) print dn and here it is: shuttle-3# gdb ./lsof GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) break dmnt.c:159 Breakpoint 1 at 0x402779: file dmnt.c, line 159. (gdb) run Starting program: /home/pobj/r+d/ports/sysutils/lsof/work/lsof_4.77A.freebsd/ls of lsof: WARNING: access /root/.lsof_shuttle-3: No such file or directory lsof: WARNING: can't open /root/.lsof_shuttle-3: Read-only file system Breakpoint 1, dev2udev (c=0xe) at dmnt.c:159 159 if (ln != dn) (gdb) print sr $1 = -1 (gdb) print ln $2 = 0x525140 "132.65.16.100:/d/8" (gdb) print dn $3 = 0x525140 "132.65.16.100:/d/8"