Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Apr 2005 21:55:47 GMT
From:      Cory Marsh <cory.marsh@albertsons.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/79940: 5.3 with kernel debug causes panic when large # defunct processes occur
Message-ID:  <200504142155.j3ELtlxK067202@www.freebsd.org>
Resent-Message-ID: <200504142200.j3EM0fFT038616@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         79940
>Category:       kern
>Synopsis:       5.3 with kernel debug causes panic when large # defunct processes occur
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 14 22:00:41 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504142155.j3ELtlxK067202>