Subject: Re: "panic: chgproccnt: lost user" on dual-CPU SS20 with 1.6.1_STABLE
To: None <port-sparc@NetBSD.org>
From: Charles Blundell <cb@kittenz.org>
List: port-sparc
Date: 07/27/2003 11:03:40
on Sat, Jul 26, 2003 at 03:37:41PM -0400, Greg A. Woods wrote:
> [Sat Jul 26 03:15:07 2003]Jul 26 03:15:07 almost /netbsd: calendar:
>       pid 666 [eid 0:31, rid 0:0, svid: 0:0] called seteuid(1)
> 	as superuser, setting svid and ruid to 1
> [Sat Jul 26 03:15:08 2003]panic: chgproccnt: lost user

You have modified seteuid(), I presume. seteuid() in netbsd calls
do_setresuid(), which in turn calls chgproccnt() only if
r != -1 and != ruid. r is explicitly set to -1 by seteuid() in
netbsd.
i.e., this code path does not occur in netbsd, as far as I can tell.

So without knowing what you have changed and how, trying to fix
it seems a little futile..