Subject: kern/27184: linux emul waitpid system calls return EINVAL
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <erh@nimenees.com>
List: netbsd-bugs
Date: 10/07/2004 14:23:24
>Number:         27184
>Category:       kern
>Synopsis:       linux emul waitpid system calls return EINVAL (causing firefox zombie processes)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 07 19:24:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD jodi.nimenees.com 2.0_BETA NetBSD 2.0_BETA (JODI) #5: Wed Jul 21 19:00:24 CDT 2004 erh@poe.swapsimple.com:/home/erh/netbsd/build/obj/home/erh/netbsd/src/sys/arch/i386/compile/JODI i386
Architecture: i386
Machine: i386
>Description:
	The linux_sys_waitpid() function doesn't know about all the possible
options that are available and does not map the linux values onto the
NetBSD values.
	This can cause exited processed/threads to not be reaped.  This is
quickly apparent when one uses firefox for any length of time.  It also
seems to occur with the sun jvm.  Many other linux programs will probably
show the same behaviour.
>How-To-Repeat:
	Install firefox-gtk2-linux.
	Run it.
	Run ps, notice there is a zombie process already.
	If you continue to use firefox it will collect more and more zombie
	processes until the process table fills up.
>Fix:
	I'll be comitting a fix shortly.
>Release-Note:
>Audit-Trail:
>Unformatted: