[issue14370] list.extend() called on an iterator of the list itself leads to an infinite loop

Charles-François Natali report at bugs.python.org
Tue Mar 20 09:44:00 CET 2012


Charles-François Natali <neologix at free.fr> added the comment:

I think you're simply running OOM, and Linux is thrashing to death.
If you wait long enough, the process should get nuked by the OOM killer (well, in theory).

What happens if you disable swap altogether ('swapoff -a')?
You can also change to strict overcommitting ('echo 2 > /proc/sys/vm/overcommit_memory').

Anyway, I guess you would get the same effect by simply running
list(range(<huge number>))...

----------
nosy: +neologix

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


More information about the Python-bugs-list mailing list