Kristján Valur Jónsson krist...@ccpgames.com added the comment:
You are creating a 10 level nested structure of iterators. It is no wonder
that you exhaust the stack space of the interpreter. You would get the same
with any iterator combination, nothing special with zip and starmap here.
Antoine Pitrou pit...@free.fr added the comment:
Kristján, we already have provisions to avoid stack overflows, instead bailing
out with a RuntimeError. So this is a bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14507
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14507
___
Terry J. Reedy tjre...@udel.edu added the comment:
Win7, 64 bit, IDLE shell and editor, 3.2.3c2, 24 gb machine, added print():
I got no response for about 10 secs until a process restart happens, which I
believe means that the background pythonw process stopped.
If I hit ^C before that, I get
Terry J. Reedy tjre...@udel.edu added the comment:
3.3.0a2, command prompt window:
'python has stopped working' in about 2 secs.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14507
___
New submission from Per Myren progr...@gmail.com:
The following code crashes with a segfault on Python 2.7.2:
from operator import add
from itertools import izip, starmap
a = b = [1]
for i in xrange(10):
a = starmap(add, izip(a, b))
list(a)
It also crashes with Python 3.2.2:
from
Antoine Pitrou pit...@free.fr added the comment:
Apparently it's a stack overflow between zip_next and starmap_next.
--
nosy: +pitrou, rhettinger
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14507
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14507
___
___