[Zope3-dev] race condition in Python2.3 asyncore

Steve Alexander steve@cat-box.net
Sat, 26 Oct 2002 14:52:50 +0000


> >The cause of the problem seems to be a race
> >condition around the socket_map global of
> >asyncore.
> >
> >If a socket is closed during the time between
> >the socket_map being processed into arguments
> >for select, and the select.select call, the
> >call will raise a 'Bad file descriptor' error.
>
>
> We definitely need to guard against other threads mucking with files & 
> sockets while the mainloop is running.  I wonder if there are other 
> related problems we should be aware of.


I've reported the issue in the Python bug tracker at Sourceforge.

"629097  Race condition in asyncore poll"

http://sourceforge.net/tracker/?func=detail&aid=629097&group_id=5470&atid=105470

--
Steve Alexander