This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jbrearley
Recipients jbrearley
Date 2013-01-10.17:19:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357838372.36.0.779855402088.issue16920@psf.upfronthosting.co.za>
In-reply-to
Content
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:

<pre>
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)
MemoryError
</pre>
History
Date User Action Args
2013-01-10 17:19:32jbrearleysetrecipients: + jbrearley
2013-01-10 17:19:32jbrearleysetmessageid: <1357838372.36.0.779855402088.issue16920@psf.upfronthosting.co.za>
2013-01-10 17:19:32jbrearleylinkissue16920 messages
2013-01-10 17:19:30jbrearleycreate