From owner-freebsd-stable@FreeBSD.ORG Tue Jun 24 01:51:46 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 AA80537B401; Tue, 24 Jun 2003 01:51:46 -0700 (PDT) Received: from h68-144-29-132.cg.shawcable.net (h68-144-29-132.cg.shawcable.net [68.144.29.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B689743F75; Tue, 24 Jun 2003 01:51:45 -0700 (PDT) (envelope-from gtf@cirp.org) Received: from cirp.org (localhost [127.0.0.1])h5O8peUW067471; Tue, 24 Jun 2003 02:51:43 -0600 (MDT) (envelope-from gtf@cirp.org) Message-Id: <200306240851.h5O8peUW067471@h68-144-29-132.cg.shawcable.net> Date: Tue, 24 Jun 2003 02:51:40 -0600 (MDT) From: "Geoffrey T. Falk" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII cc: tegge@freebsd.org Subject: 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 08:51:47 -0000 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? Geoffrey