Description of problem:
Use of a python file iterator on sys.stdin with large files (> 2GB) results in an assertion.
python: Objects/fileobject.c:2117: readahead_get_line_skip: Assertion `skip+len < 2147483647' failed.
Version-Release number of selected component (if applicable):
Python x86_64 2.6.6 29.el6
Bug was found working from Openstack Glance source tree.
Steps to Reproduce:
fileobject.c uses a 32 bit value for INT_MAX (2147483647) rather than a 64 bit value.
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Upstream issue: http://bugs.python.org/issue22526
Fix for 2.7: https://hg.python.org/cpython/rev/beadb3e1dc81
Created attachment 977785 [details]
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.