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-08.22:45:04
SpamBayes Score 0.00109241
Marked as misclassified No
Message-id <1215557110.58.0.0473055429054.issue3321@psf.upfronthosting.co.za>
In-reply-to
Content
_multiprocessing.Connection() allows to use any positive (or nul) 
number has socket handle. If you use an invalid file descriptor, 
poll() method may crash (especially for big positive integer). 
Example:

>>> import _multiprocessing
>>> obj = _multiprocessing.Connection(44977608)
>>> obj.poll()
Erreur de segmentation (core dumped)

Fix: use fstat() to make sure that the handle is valid. Attached patch 
implements this feature.

Another solution would be to reuse code from Modules/selectmodule.c.
History
Date User Action Args
2008-07-08 22:45:11vstinnersetspambayes_score: 0.00109241 -> 0.00109241
recipients: + vstinner
2008-07-08 22:45:10vstinnersetspambayes_score: 0.00109241 -> 0.00109241
messageid: <1215557110.58.0.0473055429054.issue3321@psf.upfronthosting.co.za>
2008-07-08 22:45:08vstinnerlinkissue3321 messages
2008-07-08 22:45:07vstinnercreate