[issue24725] test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

Ronald Oussoren report at bugs.python.org
Mon Oct 19 16:27:56 EDT 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

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 :-)

----------
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5
Added file: https://bugs.python.org/file49528/repro.c

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24725>
_______________________________________


More information about the Python-bugs-list mailing list