Subject: kern/27184: linux emul waitpid system calls return EINVAL
To: None <>
From: None <>
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
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 2.0_BETA
System: NetBSD 2.0_BETA NetBSD 2.0_BETA (JODI) #5: Wed Jul 21 19:00:24 CDT 2004 i386
Architecture: i386
Machine: i386
	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.
	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.
	I'll be comitting a fix shortly.