msg247414 - (view) |
Author: Ned Deily (ned.deily) *  |
Date: 2015-07-26 07:35 |
====================================================================== ERROR: testFDPassEmpty (test.test_socket.RecvmsgSCMRightsStreamTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py", line 2799, in testFDPassEmpty len(MSG), 10240), File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py", line 1907, in doRecvmsg result = sock.recvmsg(bufsize, *args) OSError: [Errno 12] Cannot allocate memory ====================================================================== ERROR: testFDPassEmpty (test.test_socket.RecvmsgIntoSCMRightsStreamTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py", line 2799, in testFDPassEmpty len(MSG), 10240), File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py", line 1998, in doRecvmsg result = sock.recvmsg_into([buf], *args) OSError: [Errno 12] Cannot allocate memory ---------------------------------------------------------------------- Ran 507 tests in 28.819s FAILED (errors=2, skipped=122) test test_socket failed Same failures seen with 3.4.3 and 3.5.0b4 installers on 10.11 (El Capitan) Developer Previews 2 and 4. Passes on 10.10.x and earlier recent OS X systems. There have been other problems in this area on OS X in the past (see Issue12958). Probably need to open a RADAR. |
|
|
msg247416 - (view) |
Author: Ronald Oussoren (ronaldoussoren) *  |
Date: 2015-07-26 08:52 |
I agree this needs a radar when it works on older releases of the OS and not on the 10.11 beta's. |
|
|
msg254848 - (view) |
Author: Jeff Ramnani (jramnani) * |
Date: 2015-11-18 16:44 |
I'm still getting these test failures on OS X 10.11.1. Has a radar been filed with Apple? I'd submit one, but I don't know enough about the issue to create a good bug report. In the meantime, I'm attaching a patch to skip these tests as was done in issue #12958. |
|
|
msg257153 - (view) |
Author: Roundup Robot (python-dev)  |
Date: 2015-12-29 01:18 |
New changeset b4c6631737b3 by Brett Cannon in branch 'default': Issue #24725: Skip the test_socket.testFDPassEmpty on OS X. https://hg.python.org/cpython/rev/b4c6631737b3 |
|
|
msg257154 - (view) |
Author: Brett Cannon (brett.cannon) *  |
Date: 2015-12-29 01:18 |
Thanks for the patch, Jeff! |
|
|
msg284474 - (view) |
Author: Ned Deily (ned.deily) *  |
Date: 2017-01-02 08:09 |
This issue slipped off the radar (so to speak) after being closed. For one, the tests also fail on 3.5.x (and probably earlier systems) and fail on macOS 10.12, not just 10.11. And, two, I'm not sure if anyone opened an issue with Apple about it. I'm re-opening it and assigning it to me to address those things. |
|
|
msg292893 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-05-03 12:11 |
New changeset 5e9c1101924bacf3ead03124b5c1e48551638360 by Victor Stinner in branch '3.5': bpo-24725: Skip the test_socket.testFDPassEmpty on OS X (#1427) https://github.com/python/cpython/commit/5e9c1101924bacf3ead03124b5c1e48551638360 |
|
|
msg301916 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2017-09-11 22:12 |
Ned Deily: > This issue slipped off the radar (so to speak) after being closed. For one, the tests also fail on 3.5.x (and probably earlier systems) and fail on macOS 10.12, not just 10.11. And, two, I'm not sure if anyone opened an issue with Apple about it. I'm re-opening it and assigning it to me to address those things. Did you report the bug to Apple? Any update? Should we just close the issue? |
|
|
msg379009 - (view) |
Author: Ronald Oussoren (ronaldoussoren) *  |
Date: 2020-10-19 20:27 |
The issue is still present with python 3.9 and macOS 10.15 as well as current macOS 11 betas. The following python scriptlet reproduces the issue: # --- import socket sd1, sd2 = socket.socketpair() sd1.sendmsg([b"hello"], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, b"")]) sd2.recvmsg(1) # --- I think the attached file "repro.c" does the same in C, it also fails with "recvmsg: Cannot allocate memory". I've filed an issue for this with Apple: FB8813140. I filed it from an Arm Mac system, with some luck this will help to get attention :-) |
|
|
msg407385 - (view) |
Author: Ronald Oussoren (ronaldoussoren) *  |
Date: 2021-11-30 16:44 |
The reproducer script and .c file I added earlier do not fail with "Cannot allocate memory" on macOS 12.0.1. I haven't checked yet if this is enough to avoid test failures in the (now skipped) testFDPassEmpty. |
|
|