-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-34521: Fix tests in test_socket to use correctly CMSG_LEN #9594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN().
Manually checking on the buildbot itself reveals that all test for test_socket now pass:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I will wait for the buildbots before evaluating if we should backport this or not. |
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7. |
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108) Co-authored-by: Pablo Galindo <[email protected]>
GH-9597 is a backport of this pull request to the 3.7 branch. |
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108) Co-authored-by: Pablo Galindo <[email protected]>
GH-9598 is a backport of this pull request to the 3.6 branch. |
Sorry, @pablogsal, I could not cleanly backport this to |
Good job, @miss-islington! |
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108) Co-authored-by: Pablo Galindo <[email protected]>
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots regarding tests in test_socket that are using testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed out to be the reason the test started to fail. A close examination of the manpage for cmsg_space(3) reveals that the number of file descriptors needs to be taken into account when using CMSG_LEN(). This commit fixes tests in test_socket to use correctly CMSG_LEN, taking into account the number of FDs. (cherry picked from commit 7291108) Co-authored-by: Pablo Galindo <[email protected]>
@pablogsal: It seems like the merged commit message lacks "bpo-34521". |
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.
A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().
https://linux.die.net/man/3/cmsg_space
Example from the manpage. The code below passes an array of file descriptors over a UNIX domain socket using SCM_RIGHTS:
https://bugs.python.org/issue34521