From nobody@FreeBSD.ORG Fri Apr 16 05:18:50 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5542E14D2A; Fri, 16 Apr 1999 05:18:50 -0700 (PDT)
Message-Id: <19990416121850.5542E14D2A@hub.freebsd.org>
Date: Fri, 16 Apr 1999 05:18:50 -0700 (PDT)
From: aef@shu.smolensk.su
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: IBCS2 don't work correctly with PID_MAX 99999
X-Send-Pr-Version: www-1.0

>Number:         11165
>Category:       kern
>Synopsis:       [ibcs2] IBCS2 doesn't work correctly with PID_MAX 99999
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-emulation
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 05:20:00 PDT 1999
>Closed-Date:    
>Last-Modified:  Tue Nov 15 00:59:26 GMT 2005
>Originator:     Andrew Filonov
>Release:        All FreeBSD after 13-Nov-98
>Organization:
SHU
>Environment:
>Description:
ibcs2_pid_t have a short type.
if BSD_PID>32767 - possible ENOCHILD error in some SCO program
>How-To-Repeat:
Run any SCO program, displayed his PID
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-emulation 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Aug 30 20:46:24 GMT 2004 
Responsible-Changed-Why:  
Looks like a problem in the emulation code. 

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

From: Julian Elischer <julian@vicor.com>
To: freebsd-gnats-submit@FreeBSD.org, aef@shu.smolensk.su
Cc:  
Subject: Re: kern/11165: IBCS2 don't work correctly with PID_MAX 99999
Date: Tue, 31 Aug 2004 11:33:46 -0700

 No it's an inherrent problem..
 pids inthese systems are a 16 bit word
 they can not HOLD a PID > 16 bits..
 
 I suggest adding a sysctl that keeps the new generated pids < 60000
 as they were for years.. this is true also fo freebsd 1.x binaries
 which had the same problem when run under new FreeBSDs.
 

From: Tim Robbins <tjr@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: i386/11165: IBCS2 don't work correctly with PID_MAX 99999
Date: Fri, 3 Sep 2004 16:13:02 +1000

 Following up to note that i386/39802 was closed as a duplicate of this PR.
Responsible-Changed-From-To: freebsd-emulation->emulation 
Responsible-Changed-By: gerald 
Responsible-Changed-When: Mon Nov 22 11:03:52 GMT 2004 
Responsible-Changed-Why:  
freebsd-emulation -> emulation (since the latter has nearly all reports for 
this list).  

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

Adding to audit trail from followup to identical, closed, PR 39802:

From: Greg Quinlan <gwq_uk@yahoo.com>
Subject: RE: i386/39802: iBCS2 emulation fork process core dumps

[This is still a problem]: (atleast in 4.11-Stable /sys/sys/proc.h line 336-7)

Regards

Greg
>Unformatted:
