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 Ben.Darnell
Recipients Ben.Darnell
Date 2011-03-24.00:57:23
SpamBayes Score 0.00041725524
Marked as misclassified No
Message-id <1300928246.81.0.834552598366.issue11657@psf.upfronthosting.co.za>
In-reply-to
Content
Line 125 of multiprocessing.c is "*CMSG_DATA(cmsg) = fd;".  CMSG_DATA returns an unsigned char*, while fd is an int, so this code does not support file descriptors > 256 (additionally, I'm not sure if the buffer is guaranteed to be initialized with zeros).   recvfd has an analogous problem at line 168.  Both of these need to be changed to copy the entire integer, e.g. by casting the result of CMSG_DATA to an int*.

http://hg.python.org/cpython/file/5deb2094f033/Modules/_multiprocessing/multiprocessing.c
History
Date User Action Args
2011-03-24 00:57:26Ben.Darnellsetrecipients: + Ben.Darnell
2011-03-24 00:57:26Ben.Darnellsetmessageid: <1300928246.81.0.834552598366.issue11657@psf.upfronthosting.co.za>
2011-03-24 00:57:23Ben.Darnelllinkissue11657 messages
2011-03-24 00:57:23Ben.Darnellcreate