[issue21233] Add *Calloc functions to CPython memory allocation API

Nathaniel Smith report at bugs.python.org
Sun Apr 27 19:41:49 CEST 2014


Nathaniel Smith added the comment:

On my laptop (x86-64, Linux 3.13, 12 GB RAM):

$ python3 -c "[i for i in range(999999999)]"
zsh: killed     python3 -c "[i for i in range(999999999)]"

$ dmesg | tail -n 2
[404714.401901] Out of memory: Kill process 10752 (python3) score 687 or sacrifice child
[404714.401903] Killed process 10752 (python3) total-vm:17061508kB, anon-rss:10559004kB, file-rss:52kB

And your test.py produces the same result. Are you sure you don't have a ulimit set on address space?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21233>
_______________________________________


More information about the Python-bugs-list mailing list