Subject: kern/20536: deadlock due to printf with schedlock held
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 03/01/2003 18:01:40
>Number:         20536
>Category:       kern
>Synopsis:       deadlock due to printf with schedlock held
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 01 01:03:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6P
>Organization:

>Environment:
	
	
System: NetBSD kaeru 1.6P NetBSD 1.6P (build.kaeru) #: Thu Feb 27 23:29:00 JST 2003 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	there're codes that do printf with schedlock held.
	(eg. DIAGNOSTIC printf in sa_switch)
	but it can deadlock.
	printf -> kprintf -> putchar -> tputchar -> ttstart
	-> ptsstart -> selwakeup -> SCHED_LOCK => deadlock

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: