Date: Wed, 31 Mar 2004 17:11:15 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Adam McLaurin <adam.mclaurin@gmx.net> Cc: questions@freebsd.org Subject: Re: Help tracking down a naughty process Message-ID: <20040331231115.GA82264@dan.emsphone.com> In-Reply-To: <20040331172740.1408dd2b.adam.mclaurin@gmx.net> References: <20040331172740.1408dd2b.adam.mclaurin@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040331231115.GA82264>