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 David.Edelsohn, ncoghlan, pitrou, serhiy.storchaka, vstinner
Date 2014-09-30.21:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412112814.06.0.458470847223.issue22397@psf.upfronthosting.co.za>
In-reply-to
Content
Failing tests:

* testFDPassSeparateMinSpace (test.test_socket.RecvmsgSCMRightsStreamTest)
* testFDPassSeparate (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
* testFDPassSeparateMinSpace (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
* testFDPassSeparate (test.test_socket.RecvmsgSCMRightsStreamTest)
* testFDPassSeparateMinSpace (test.test_socket.RecvmsgSCMRightsStreamTest)
* testFDPassSeparate (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
* testFDPassSeparateMinSpace (test.test_socket.RecvmsgIntoSCMRightsStreamTest)

It looks like the failure come from code like:

    self.sendmsgToServer([MSG], [(socket.SOL_SOCKET,
                                  socket.SCM_RIGHTS,
                                  array.array("i", [fd0])),

and

    self.doRecvmsg(self.serv_sock, len(MSG),
                   socket.CMSG_SPACE(SIZEOF_INT) + socket.CMSG_LEN(SIZEOF_INT)),

In clear, there are errors on tests sending file descriptors through UNIX sockets. So this issue is a duplicate of #20718, but we may keep this one for AIX, and #20718 for OpenBSD.

It looks possible to send a file descriptor between processes but using a pipe with I_SENDFD and I_RECVFD ioctl. See:
http://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.commtrf2/I_SENDFD.htm
http://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.commtrf2/I_RECVFD.htm
http://search.cpan.org/~fractal/AnyEvent-FDpasser-0.3.0/lib/AnyEvent/FDpasser.pm
History
Date User Action Args
2014-09-30 21:33:34vstinnersetrecipients: + vstinner, ncoghlan, pitrou, serhiy.storchaka, David.Edelsohn
2014-09-30 21:33:34vstinnersetmessageid: <1412112814.06.0.458470847223.issue22397@psf.upfronthosting.co.za>
2014-09-30 21:33:34vstinnerlinkissue22397 messages
2014-09-30 21:33:33vstinnercreate