Subject: kern/37455: tty related lockup
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 11/30/2007 17:25:00
>Number:         37455
>Category:       kern
>Synopsis:       tty related lockup
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 30 17:25:00 +0000 2007
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 4.99.38
>Organization:
	
>Environment:
	
	
System: NetBSD 4.99.38
Architecture: i386
Machine: i386
>Description:
	the following program easily lockup my i386 2cpu box.
	diagnostic+debug+lockdebug didn't detect anything.

============================
#include <pthread.h>
#include <unistd.h>

static void *
f(void *v)
{
	for (;;)
		write(1, "aaaaa", 5);
	return NULL;
}

int
main(int argc, char *argv[])
{
	int i;

	for (i = 0; i < 16; i++) {
		pthread_t pt;
		pthread_create(&pt, NULL, f, NULL);
	}
	for (;;)
		sleep(100);
}
============================

>How-To-Repeat:
	see above.
>Fix:
	

>Unformatted: