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
        [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to