From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 05:25:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6362B16A417 for ; Wed, 9 Jan 2008 05:25:50 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 1A77613C459 for ; Wed, 9 Jan 2008 05:25:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2) id m095PiQP070928; Tue, 8 Jan 2008 23:25:44 -0600 (CST) (envelope-from dan) Date: Tue, 8 Jan 2008 23:25:44 -0600 From: Dan Nelson To: Jeffrey Lehman Message-ID: <20080109052544.GA55800@dan.emsphone.com> References: <20080109013932.GA44661@abby.digitalguy.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <20080109013932.GA44661@abby.digitalguy.net> X-OS: FreeBSD 7.0-PRERELEASE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-questions@freebsd.org Subject: Re: lsof: can't determine device random seed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2008 05:25:50 -0000 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In the last episode (Jan 08), Jeffrey Lehman said: > I'm running 7.0-RC1 amd64 and having an issue with lsof. > > # lsof > lsof: can't determine user device random seed. > > Anyone seen this problem and have a fix? Do you also have a zfs root? That's what triggers it for me. There's no mention of a "device random seed" anywhere in the kernel source, so I just patched lsof to always return OK and a seed of zero from dev2udev, and everything seems to work okay. Try putting the attached patch in the files subdirectory of the lsof port and rebuild. -- Dan Nelson dnelson@allantgroup.com --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-dn-seed --- dialects/freebsd/dmnt.c 2007-11-17 23:02:29.748574401 -0600 +++ dialects/freebsd/dmnt.c 2007-11-17 23:02:29.750579975 -0600 @@ -180,6 +180,8 @@ dev2udev_no_space: } break; } + + ss = 1; /* * Free string copies, as required. */ --T4sUOijqQbZv57TR--