Bug 794632

Summary: Python 2.6 installation is not 64 bit clean
Product: Red Hat Enterprise Linux 6 Reporter: Chris Hoge <hoge>
Component: pythonAssignee: Petr Viktorin (pviktori) <pviktori>
Status: CLOSED ERRATA QA Contact: Branislav NĂ¡ter <bnater>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2CC: bkabrda, bnater, dkutalek, pviktori, rkuska
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-2.6.6-55.el6 Doc Type: Bug Fix
Doc Text:
Cause: fileobject.c uses a 32 bit value for INT_MAX (2147483647) Consequence: Iteration over files bigger than 2147483647B fails with Exception Fix: Use Py_ssize_t value which has the same size as the compiler's size_t type instead of int value Result: It's possible to iteratete over big files (<(2^64/2)B)
Story Points: ---
Clone Of:
: 1271760 1329141 (view as bug list) Environment:
Last Closed: 2015-07-22 06:39:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Backported patch none

Description Chris Hoge 2012-02-17 06:39:12 UTC
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

How reproducible:
Bug was found working from Openstack Glance source tree.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
fileobject.c uses a 32 bit value for INT_MAX (2147483647) rather than a 64 bit value.

Comment 3 RHEL Program Management 2012-12-14 08:38:47 UTC
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.

Comment 4 Petr Viktorin (pviktori) 2015-01-08 12:49:48 UTC
Upstream issue: http://bugs.python.org/issue22526
Fix for 2.7: https://hg.python.org/cpython/rev/beadb3e1dc81

Comment 5 Petr Viktorin (pviktori) 2015-01-08 12:50:52 UTC
Created attachment 977785 [details]
Backported patch

Comment 9 errata-xmlrpc 2015-07-22 06:39:15 UTC
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.

https://rhn.redhat.com/errata/RHSA-2015-1330.html