Richard Oudkerk added the comment:

I suspect that the size of the 5GB file is originally a 64 bit quantity, but 
gets cast unsafely to a 32 bit size_t to give 1GB.  This is causing the 
miscalculations.

There is no way to map all of a 5GB file in a 32 bit process -- 4GB is the 
maximum -- so any such attempt should raise an error.  This does not prevent us 
from mapping *part* of a 5GB file.

----------
nosy: +sbt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16743>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to