This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-07-07.01:18:38
SpamBayes Score 5.7605865e-07
Marked as misclassified No
Message-id <1215393520.85.0.811591651843.issue3311@psf.upfronthosting.co.za>
In-reply-to
Content
_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.
History
Date User Action Args
2008-07-07 01:18:41vstinnersetspambayes_score: 5.76059e-07 -> 5.7605865e-07
recipients: + vstinner
2008-07-07 01:18:40vstinnersetspambayes_score: 5.76059e-07 -> 5.76059e-07
messageid: <1215393520.85.0.811591651843.issue3311@psf.upfronthosting.co.za>
2008-07-07 01:18:40vstinnerlinkissue3311 messages
2008-07-07 01:18:39vstinnercreate