From nobody@FreeBSD.org  Thu Apr 14 21:55:47 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 89D7216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 21:55:47 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6F98543D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 21:55:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3ELtlEQ067203
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 14 Apr 2005 21:55:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j3ELtlxK067202;
	Thu, 14 Apr 2005 21:55:47 GMT
	(envelope-from nobody)
Message-Id: <200504142155.j3ELtlxK067202@www.freebsd.org>
Date: Thu, 14 Apr 2005 21:55:47 GMT
From: Cory Marsh <cory.marsh@albertsons.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 5.3 with kernel debug causes panic when large # defunct processes occur
X-Send-Pr-Version: www-2.3

>Number:         79940
>Category:       kern
>Synopsis:       [panic] 5.3 with kernel debug causes panic when large # defunct processes occur
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rwatson
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 14 22:00:41 GMT 2005
>Closed-Date:    Sat Mar 08 20:29:59 UTC 2008
>Last-Modified:  Sat Mar 08 20:29:59 UTC 2008
>Originator:     Cory Marsh
>Release:        5.3-RELEASE #3
>Organization:
Albertsons
>Environment:
i386 GENERIC with debug
>Description:
      FreeBSD 5.3 when compiled with the Kernel debugger will kernel panic when excessively high numbers of fork() without wait() occur.   This seems to be time specific so that inserting a sleep(1); in the while loop prevents thet panic.  Perhaps a race condition?
>How-To-Repeat:
options DDB
options KDB
makeoptions DEBUG=-g


#include <stdio.h>
#include <unistd.h>

int main(int argc, char **argv) {
	int pid;
	while(1) {
		if((pid = fork()) < 1)
			exit(2);	
	}
	exit(1);
}
>Fix:
      unknown.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: rwatson 
State-Changed-When: Sat Mar 8 20:06:44 UTC 2008 
State-Changed-Why:  
Could you confirm whether this still occurs with a recent version of 
FreeBSD (6.3, 7.0)? 



Responsible-Changed-From-To: freebsd-bugs->rwatson 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Sat Mar 8 20:06:44 UTC 2008 
Responsible-Changed-Why:  
Grab ownership of this PR; I will investigate more if the submitter 
confirms the problem still exists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79940 
State-Changed-From-To: feedback->closed 
State-Changed-By: rwatson 
State-Changed-When: Sat Mar 8 20:29:21 UTC 2008 
State-Changed-Why:  
Submitter e-mail address bounced, so close.  Please let us know an 
alternative address where we can reach you should that be desired. 

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