[New-bugs-announce] [issue16920] multiprocessing.connection listener gets MemoryError on recv

John Brearley report at bugs.python.org
Thu Jan 10 18:19:32 CET 2013

New submission from John Brearley:

Using a multiprocessing.connection listener, I can accept an incoming socket OK, but when I do conn.recv(), I get memory error. The attached script mpl_bug.py will readily reproduce the issues on WinXP & WinVista, see sample output below:

c:\>python mpl_bug.py
main server listening on host  port 10500
main created simple_client <Process(Process-1, initial)>
simple_client connecting to host localhost port 10500
main conn: <multiprocessing.connection.Connection object at 0x00C94B50> waiting
for data
simple_client sending: b'abcd'
simple_client waiting for data
Traceback (most recent call last):
  File "mpl_bug.py", line 61, in <module>
    data=conn.recv()   ;# Memory Error occurs here <<<==========================
  File "c:\python33\lib\multiprocessing\connection.py", line 251, in recv
    buf = self._recv_bytes()
  File "c:\python33\lib\multiprocessing\connection.py", line 405, in _recv_bytes

    return self._recv(size)
  File "c:\python33\lib\multiprocessing\connection.py", line 380, in _recv
    chunk = read(handle, remaining)

files: mpl_bug.py
messages: 179577
nosy: jbrearley
priority: normal
severity: normal
status: open
title: multiprocessing.connection listener gets MemoryError on recv
versions: Python 3.3
Added file: http://bugs.python.org/file28673/mpl_bug.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list