[ python-Bugs-1002465 ] MemoryError on AIX52
SourceForge.net
noreply at sourceforge.net
Wed Aug 4 20:09:50 CEST 2004
Bugs item #1002465, was opened at 2004-08-03 10:04
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1002465&group_id=5470
Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 9
Submitted By: Datranet (richardjmason)
Assigned to: Nobody/Anonymous (nobody)
Summary: MemoryError on AIX52
Initial Comment:
I found the orginal problem when trying to send large
email attachments on AIX 5.2. I tracked the issue down
to the fact that a string can only grow to a very
restricted size on AIX 5.2. bin2ascii fails at the pint the
function tries to join the list togther to form 1 string.
I wrote the following test program to prove the issue:
a = ''
cnt = 0
while cnt < 1024:
a = a + 'x'
cnt += 1
c = ''
cnt = 0
while cnt < 1024:
c = c + a
cnt += 1
b = ''
cnt2 = 0
while 1:
b = b + c
cnt2 += 1
print cnt2
On AIX 5.2 you get a MemoryError with a cnt2 value of
42. I can run the test program on all other platforms and
get a cnt2 value over 150 before stopping to program
myself.
I have tried the binary python 2.2 from the IBM site and
building python 2.3.4 myself using the gcc from the IBM
site. Both fail with a cnt2 value of 42.
Can anyone please advise on how to get AIX 5.2 to
allow single objects to have more memory allocated.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2004-08-04 20:09
Message:
Logged In: YES
user_id=21627
You need to use a debugger to find the cause of the problem.
What is the string parameter of the MemoryError? This might
give a clue where precisely it is raised.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1002465&group_id=5470
More information about the Python-bugs-list
mailing list