From owner-freebsd-questions@FreeBSD.ORG Wed Mar 31 15:11:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23A4716A4CE for ; Wed, 31 Mar 2004 15:11:17 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D11BB43D2D for ; Wed, 31 Mar 2004 15:11:16 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2VNBFXx061332; Wed, 31 Mar 2004 17:11:15 -0600 (CST) (envelope-from dan) Date: Wed, 31 Mar 2004 17:11:15 -0600 From: Dan Nelson To: Adam McLaurin Message-ID: <20040331231115.GA82264@dan.emsphone.com> References: <20040331172740.1408dd2b.adam.mclaurin@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040331172740.1408dd2b.adam.mclaurin@gmx.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: questions@freebsd.org Subject: Re: Help tracking down a naughty process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 23:11:17 -0000 In the last episode (Mar 31), Adam McLaurin said: > Since upgrading to 5.2.1-p4-RELEASE last night, I have seen the > following warnings a few times in my /var/log/messages: > > Mar 31 16:49:14 jake kernel: Warning: pid 37735 used static ldt > allocation. Mar 31 16:49:14 jake kernel: See the i386_set_ldt man page > for more info > > Trouble is, by the time I go to check what pid 37735 is, it's already > terminated without a trace. Apply this patch: Index: sys_machdep.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/sys_machdep.c,v retrieving revision 1.91 diff -u -r1.91 sys_machdep.c --- sys_machdep.c 7 Sep 2003 05:23:28 -0000 1.91 +++ sys_machdep.c 22 Oct 2003 16:52:49 -0000 @@ -464,8 +464,8 @@ if (!(uap->start == LDT_AUTO_ALLOC && uap->num == 1)) { /* complain a for a while if using old methods */ if (ldt_warnings++ < NUM_LDT_WARNINGS) { - printf("Warning: pid %d used static ldt allocation.\n", - td->td_proc->p_pid); + printf("Warning: pid %d (%s) used static ldt allocation.\n", + td->td_proc->p_pid, td->td_proc->p_comm); printf("See the i386_set_ldt man page for more info\n"); } /* verify range of descriptors to modify */ -- Dan Nelson dnelson@allantgroup.com