i keep getting: lsof: can't determine user device random seed. is it only me? danny
On Thu, 22 Dec 2005 10:12:17 +0200 Danny Braniss <danny@cs.huji.ac.il> wrote:> i keep getting: > lsof: can't determine user device random seed. > is it only me?You'll have to be more specific: do you get that by doing only 'lsof' or are you using any parameters? _Do you run as a normal user, or as root? FWIW, plain 'lsof' works here, on tingo@kg-quiet$ uname -a FreeBSD kg-quiet.kg4.no 6.0-STABLE FreeBSD 6.0-STABLE #1: Thu Dec 22 06:29:24 CET 2005 root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET amd64 both as a normal user and as root. I don't see the message you are referring to. -- Regards, Torfinn Ingolfsen, Norway
> On Thursday 22 December 2005 12:36, Danny Braniss wrote: > > > On Thu, 22 Dec 2005 10:12:17 +0200 > > > > > > Danny Braniss <danny@cs.huji.ac.il> 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) devfs on /dev (devfs, local) /dev/md0 on /.etc (ufs, local, soft-updates) <above>:/.etc on /etc (unionfs, noclusterw) procfs on /proc (procfs, local) /dev/md1 on /var (ufs, NFS exported, local) /dev/md2 on /a (ufs, local, soft-updates) pid431@minbari:/usr/local on /usr/local (nfs) pid431@minbari:/Platform on /Platform (nfs) pid431@minbari:/vol on /vol (nfs) pid431@minbari:/net on /net (nfs) pid431@minbari:/cs on /cs (nfs) x-dev:/dist on /dist (nfs) fs-01:/system on /a/fs-01/system (nfs)> -- > Melvyn Sopacua > freebsd.stable@melvyn.homeunix.org > > FreeBSD 6.0-STABLE > Qt: 3.3.5 > KDE: 3.4.3 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
> 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 <danny@cs.huji.ac.il> 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 dnand 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"