[Python-bugs-list] [ python-Bugs-449880 ] File size limit exceeded causes ABEND
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 10 Aug 2001 11:28:36 -0700
Bugs item #449880, was opened at 2001-08-10 11:28
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=449880&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: File size limit exceeded causes ABEND
Initial Comment:
The following code will never run to completion on
systems with a 2GB file size limit. The interpreter
exits as soon as it exceeds the file size limit.
Create a file called "testfile" that is 2GB - 1 in
size. Run the following program to observe behaviour.
#!/usr/bin/env python2
#
# Create a file called "testfile" that is 2147483647
bytes in size. Then
# run this application. The python interpreter prints
the message "File
# size limit exceeded" and exits, rather than raising
an exception.
#
# Tested with Python-2.1.1 on Red Hat 7.2 beta (Roswell)
fp = open('testfile', 'a')
try:
fp.write('foo')
fp.flush()
fp.close()
except OSError, e:
print e
print "done"
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=449880&group_id=5470