[ python-Bugs-853507 ] socket.recv() raises MemoryError exception
(WindowsXP ONLY)
SourceForge.net
noreply at sourceforge.net
Wed Dec 3 14:16:41 EST 2003
Bugs item #853507, was opened at 2003-12-03 11:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=853507&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Randy Wiser (randyw)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket.recv() raises MemoryError exception (WindowsXP ONLY)
Initial Comment:
Calling socket.recv(size) with size starting at 3000000
and decreasing by approximately 1024 each time, quickly
raises a MemoryError exception, although the process
memory use does not exceed 30 Mbytes! Verified on
Python 2.1, 2.3 and 2.3.2 (under Windows XP
Professional ONLY version 5.1.2600 hotfix KB824146 if it
matters :-)
Cannot reproduce (test runs many iterations without fail)
under Windows 2000 Professional or Server. To reproduce
on XP, run attached files is separate shell windows:
c:\> python hostMemErrSrv.py
waiting for client on 3021
Connected by ('127.0.0.1', 1217)
. . . . . . . . . . . . . . . .
c:\> python hostMemErr.py
MemoryError, hit return to exit.
Traceback (most recent call last):
File "hostMemErr.py", line 117, in ?
main()
File "hostMemErr.py", line 108, in main
data = p.dataRecv(sz)
File "hostMemErr.py", line 63, in dataRecv
tmp = self.dataSocket.recv (nleft)
File "<string>", line 1, in recv
MemoryError
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=853507&group_id=5470
More information about the Python-bugs-list
mailing list