From owner-freebsd-current@FreeBSD.ORG Wed Oct 22 13:07:50 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 97AB816A4B3 for ; Wed, 22 Oct 2003 13:07:50 -0700 (PDT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E5DF43F75 for ; Wed, 22 Oct 2003 13:07:49 -0700 (PDT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) h9MK7gZV092288; Wed, 22 Oct 2003 16:07:42 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)h9MK7faT092285; Wed, 22 Oct 2003 16:07:41 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Wed, 22 Oct 2003 16:07:41 -0400 (EDT) From: Andre Guibert de Bruet To: Dan Nelson In-Reply-To: <20031022165558.GN55642@dan.emsphone.com> Message-ID: <20031022160537.B73466@alpha.siliconlandmark.com> References: <200310221542.h9MFg3Jb017328@www.kukulies.org> <20031022164340.GA97877@troutmask.apl.washington.edu> <20031022165558.GN55642@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean 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 20:07:50 -0000 On Wed, 22 Oct 2003, Dan Nelson wrote: > 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 */ This could also be accomplished by enabling process accounting and grepping the output of lastcomm. But yes, this patch is most welcome nonetheless. :) Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ >