[issue30201] [3.5] RecvmsgIntoSCMRightsStreamTest fails with "OSError: [Errno 12] Cannot allocate memory" on macOS El Capitan

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of issue #24725, I proposed a backport to 3.5: https://github.com/python/cpython/pull/1427 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot

[issue30201] [3.5] RecvmsgIntoSCMRightsStreamTest fails with "OSError: [Errno 12] Cannot allocate memory" on macOS El Capitan

2017-04-28 Thread STINNER Victor
len(MSG), 10240), File "/Users/buildbot/buildarea/3.5.billenstein-elcapitan/build/Lib/test/test_socket.py", line 1955, in doRecvmsg result = sock.recvmsg(bufsize, *args) OSError: [Errno 12] Cannot allocate memory

Re: OSError: [Errno 12] Cannot allocate memory

2016-12-01 Thread duncan smith
On 01/12/16 01:12, Chris Kaynor wrote: > On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote: >> >> Thanks. So something like the following might do the job? >> >> def _execute(command): >> p = subprocess.Popen(command, shell=False, >>

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread duncan smith
On 01/12/16 00:46, Chris Kaynor wrote: > On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote: >> On 30/11/16 17:57, Chris Angelico wrote: >>> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote: def _execute(command): # shell=True

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread Chris Kaynor
On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote: > > Thanks. So something like the following might do the job? > > def _execute(command): > p = subprocess.Popen(command, shell=False, > stdout=subprocess.PIPE, >

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread duncan smith
, format) >> File "dot.py", line 921, in to_image >> _execute('%s -T%s -o %s' % (prog, format, filename)) >> File "dot.py", line 887, in _execute >> close_fds=True) >> File "/usr/lib/python2.7/subprocess.py", line 711, in __ini

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread Chris Kaynor
On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote: > On 30/11/16 17:57, Chris Angelico wrote: >> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote: >>> >>> def _execute(command): >>> # shell=True security hazard? >>> p =

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread duncan smith
On 30/11/16 17:57, Chris Angelico wrote: > On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote: >> >> def _execute(command): >> # shell=True security hazard? >> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE, >>

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread Chris Angelico
On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote: > > def _execute(command): > # shell=True security hazard? > p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE, > stdout=subprocess.PIPE, >

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread duncan smith
[snip] Sorry, should have said Python 2.7.12 on Ubuntu 16.04. Duncan -- https://mail.python.org/mailman/listinfo/python-list

Re: OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread Chris Kaynor
line 887, in _execute > close_fds=True) > File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child > self.pid = os.fork() > OSError: [Errno 12] Canno

OSError: [Errno 12] Cannot allocate memory

2016-11-30 Thread duncan smith
line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child self.pid = os.fork() OSError: [Errno 12] Cannot allocate memory The relevant (AFAICT) code is, def to_image(text, filename, prog='dot', format='dot')