◐ Shell
clean mode source ↗

Message 217295 - Python tracker

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?