Subject: Re: race in select() ?
To: David Laight <david@l8s.co.uk>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 10/09/2003 17:20:10
On Thu, Oct 09, 2003 at 02:13:51PM +0100, David Laight wrote:
> 
> I presume inetd takes the fd out of its select list until the rpc.rstatd
> process exits.  Otherwise there would be a nasty loop.

Yes it does.

> 
> > I suspect a race condition in the kernel, but don't have much idea about it.
> > Any idea welcome.
> 
> Is this 'current'? and single cpu?

It's 1.6.1_STABLE around aug 24.

> There was a bug when more than 2 processes select on the same fd.
> 
> OTOH this does have rather look like a 'data arriving during setup' bug.
> Did you find out what sel_pid and sel_collision were set to?

No, I'll try next time.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 24 ans d'experience feront toujours la difference
--