Message 228005 - Python tracker

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.

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