From owner-freebsd-current@FreeBSD.ORG Wed Oct 22 09:56:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5C5B16A4BF; Wed, 22 Oct 2003 09:56:01 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB09D43FDF; Wed, 22 Oct 2003 09:55:59 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9MGtxn9045208; Wed, 22 Oct 2003 11:55:59 -0500 (CDT) (envelope-from dan) Date: Wed, 22 Oct 2003 11:55:59 -0500 From: Dan Nelson To: Steve Kargl Message-ID: <20031022165558.GN55642@dan.emsphone.com> References: <200310221542.h9MFg3Jb017328@www.kukulies.org> <20031022164340.GA97877@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031022164340.GA97877@troutmask.apl.washington.edu> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: deischen@freebsd.org cc: "C. Kukulies" cc: freebsd-current@freebsd.org Subject: Re: i386_set_ldt warnings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2003 16:56:01 -0000 In the last episode (Oct 22), Steve Kargl said: > On Wed, Oct 22, 2003 at 12:09:43PM -0400, Daniel Eischen wrote: > > On Wed, 22 Oct 2003, C. Kukulies wrote: > > > Some (kde) applications now have a warning appear in xconsole: > > > > > > Warning: pid 595 used static ldt allocation. > > > See the i386_set_ldt man page for more info > > > > Let me guess. You are using Nividia-supplied drivers/libraries? > > I see similar messages on the console and I do not have a nvidia > card. By the time I find the message the process has terminated, so > I have no way of translating the PID into an actual executable name. That's cause whoever coded the warning forgot to print the executable name in the error message. Try 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