From owner-freebsd-stable@FreeBSD.ORG Tue Jun 24 04:33:12 2003 Return-Path: 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 F13DD37B401 for ; Tue, 24 Jun 2003 04:33:11 -0700 (PDT) Received: from mx1.evo6.net (mx1.evo6.net [80.76.194.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 6724543F3F for ; Tue, 24 Jun 2003 04:33:09 -0700 (PDT) (envelope-from andy@evo6.org) Received: (qmail 8795 invoked from network); 24 Jun 2003 11:33:06 -0000 Received: from vx.dhcp.evo6.net (HELO vx) (10.0.1.2) by mx1.evo6.net with SMTP; 24 Jun 2003 11:33:06 -0000 Message-ID: <002901c33a44$593af8d0$0201000a@vx> From: "Andy Gilligan" To: References: <200306240851.h5O8peUW067471@h68-144-29-132.cg.shawcable.net> Date: Tue, 24 Jun 2003 12:32:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-1.0 required=5.0 tests=QUOTED_EMAIL_TEXT,REFERENCES version=2.55-evo6.net X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55-evo6.net (1.174.2.19-2003-05-19-exp) Subject: Re: lsof builds but doesn't run under 4-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2003 11:33:12 -0000 ----- Original Message ----- From: "Geoffrey T. Falk" To: Cc: Sent: Tuesday, June 24, 2003 9:51 AM Subject: lsof builds but doesn't run under 4-STABLE > Hi, > > I noticed this today. If I build lsof on my 4-STABLE box, then it > doesn't run: > > boojum# lsof > lsof: PID 0, no file * space > > If I build the lsof binary under 4.8-STABLE, then it runs fine under > 4.8-STABLE and 4-STABLE. > > Upon investigation it appears that the variable fd in the file dproc.c > is being used uninitialized in gather_proc_info(). The problem seems to > be related to some changes to struct filedesc > (/usr/include/sys/filedesc.c) from some recent commits to the RELENG_4 > branch on /usr/src/sys/sys/filedesc.c... Anyone care to investigate > further? Kernel structures tend to change from time to time on the RELENG_4 branch, and because lsof is built against your current /usr/src/sys, it is most likely using different structures than your running kernel. To fix: 1) Reboot with a kernel built from the same sources that lsof was built against. 2) CVSup your src to the same date your running kernel was built, then recompile lsof. Regards, -Andy