From nobody@FreeBSD.org  Thu May 29 20:34:27 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7EDAC1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 20:34:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 52D978FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 20:34:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4TKWk4A007694
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 May 2008 20:32:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4TKWkRP007692;
	Thu, 29 May 2008 20:32:46 GMT
	(envelope-from nobody)
Message-Id: <200805292032.m4TKWkRP007692@www.freebsd.org>
Date: Thu, 29 May 2008 20:32:46 GMT
From: Ted Unangst <tedu@fogcreek.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel says see i386_set_ldt; man page doesn't help
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124111
>Category:       kern
>Synopsis:       i386_set_ldt(2): kernel says see i386_set_ldt; man page doesn't help
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tijl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 20:40:01 UTC 2008
>Closed-Date:    Mon Aug 30 13:18:51 UTC 2010
>Last-Modified:  Mon Aug 30 13:18:51 UTC 2010
>Originator:     Ted Unangst
>Release:        6.3
>Organization:
>Environment:
6.3-RELEASE
>Description:
I see a number of these in the message buffer:
Warning: pid 76289 used static ldt allocation.
See the i386_set_ldt man page for more info

So I refer to the man page.  It doesn't say anything that seems relevant
to the above.  It doesn't even contain the word static.

What has pid 76289 done?  Is the process "really hosed" as the man page
warns me?  That's the only warning reference in the man page.

As a developer, the man page doesn't shed much enlightenment, and as the
sysadmin who is likely the only person seeing these, it's really baffling.
>How-To-Repeat:
Probably came about while running mono.
>Fix:
From searching the web, the solution appears to be "Don't panic, it's
not a real warning."  Maybe the man page can say so too.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-docs 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sat Aug 28 18:50:46 UTC 2010 
Responsible-Changed-Why:  
I'm wondering if a documentation guy can do something for this PR? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124111 
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Sat Aug 28 19:44:16 UTC 2010 
State-Changed-Why:  
I remember getting this warning too, but haven't seen it for a long time. I 
suspect it to be limited to RELENG_6 and earlier and that it has been fixed at 
some point in RELENG_7. However this needs to be confirmed. I think this warning 
was linuxulator related and was triggered by games/linux-quake3 e.g. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124111 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/124111: commit references a PR
Date: Mon, 30 Aug 2010 13:08:27 +0000 (UTC)

 Author: tijl
 Date: Mon Aug 30 13:08:13 2010
 New Revision: 211995
 URL: http://svn.freebsd.org/changeset/base/211995
 
 Log:
   MFC r182959:
   
   Remove warning about static LDT segment allocation. Applications
   continue using it after ~7 years since warning was introduced, and there
   is no reason to discourage them.
   
   PR:		kern/124111
   Approved by:	kib (mentor)
 
 Modified:
   stable/6/sys/i386/i386/sys_machdep.c
 Directory Properties:
   stable/6/sys/   (props changed)
   stable/6/sys/contrib/pf/   (props changed)
   stable/6/sys/dev/cxgb/   (props changed)
 
 Modified: stable/6/sys/i386/i386/sys_machdep.c
 ==============================================================================
 --- stable/6/sys/i386/i386/sys_machdep.c	Mon Aug 30 13:05:21 2010	(r211994)
 +++ stable/6/sys/i386/i386/sys_machdep.c	Mon Aug 30 13:08:13 2010	(r211995)
 @@ -500,9 +500,6 @@ i386_get_ldt(td, uap)
  	return(error);
  }
  
 -static int ldt_warnings;
 -#define NUM_LDT_WARNINGS 10
 -
  int
  i386_set_ldt(td, uap, descs)
  	struct thread *td;
 @@ -549,12 +546,6 @@ i386_set_ldt(td, uap, descs)
  	}
  
  	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("See the i386_set_ldt man page for more info\n");
 -		}
  		/* verify range of descriptors to modify */
  		largest_ld = uap->start + uap->num;
  		if (uap->start >= MAX_LD ||
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: tijl 
State-Changed-When: Mon Aug 30 13:14:28 UTC 2010 
State-Changed-Why:  
The warning has been removed from 6-STABLE now. 


Responsible-Changed-From-To: freebsd-docs->tijl 
Responsible-Changed-By: tijl 
Responsible-Changed-When: Mon Aug 30 13:14:28 UTC 2010 
Responsible-Changed-Why:  
The warning has been removed from 6-STABLE now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124111 
>Unformatted:
