[issue3311] block operation on closed socket/pipe for multiprocessing
STINNER Victor
report at bugs.python.org
Mon Jul 7 03:18:41 CEST 2008
New submission from STINNER Victor <haypo at users.sourceforge.net>:
_multiprocessing Connection methods don't check if handle is valid or
not. If you close the socket/pipe, Python may crash on operations,
especially in poll() on FD_SET(...handle, &rdfs).
Example of crash:
----------------------
import _multiprocessing
obj = _multiprocessing.Connection(755)
obj.close()
obj.poll()
----------------------
Attached patch is a proposition of fix to check handle in all
Connection methods using the handle.
----------
components: Library (Lib)
files: multiprocessing_closed.patch
keywords: patch
messages: 69365
nosy: haypo
severity: normal
status: open
title: block operation on closed socket/pipe for multiprocessing
versions: Python 2.6
Added file: http://bugs.python.org/file10838/multiprocessing_closed.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3311>
_______________________________________
More information about the Python-bugs-list
mailing list