[issue9526] 2 GB limit in array module
Mark Dickinson dicki...@gmail.com added the comment: Thanks for confirming, Stefan. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9526] 2 GB limit in array module
Stefan Krah stefan-use...@bytereef.org added the comment: Tested on an 8GB machine. This is fixed. -- nosy: +skrah status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9526] 2 GB limit in array module
Changes by Stefan Krah stefan-use...@bytereef.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9526] 2 GB limit in array module
Changes by Benjamin Peterson benja...@python.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9526] 2 GB limit in array module
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report. Also applies to 3.1 and 3.2 (and 2.6, but it's too late to fix things there). I agree that those (int) casts look wrong---I suspect they're leftovers from the big int - Py_ssize_t switch that happened for Python 2.5. I've removed the casts in svn revisions 83751 through 83754. Unfortunately, right now I don't have access to a machine with enough memory to test that this fixes the problem. Martin, would you be able to check this? You'll need a Python svn checkout if you don't already have one; instructions for getting it are at http://python.org/dev -- assignee: - mark.dickinson nosy: +mark.dickinson resolution: - fixed status: open - pending versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9526] 2 GB limit in array module
New submission from Martin Frith mar...@cbrc.jp: The array module does not seem to work for arrays 2 GB. import sys, array sys.maxsize 9223372036854775807 x = array.array('c', ('a' for i in xrange(3))) (seems to work OK) x = array.array('c', ('a' for i in xrange(30))) (runs forever: memory usage increases to 2GB and then stops) I think the cause is: casting to int in arraymodule.c, in array_iter_extend() and array_append(). My uname -a: Linux c016 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux -- components: Extension Modules messages: 113061 nosy: mcfrith priority: normal severity: normal status: open title: 2 GB limit in array module type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com