[issue25429] Can segfault Python with itertools.chain.from_iterable

Raymond Hettinger report at bugs.python.org
Sat Oct 17 01:11:29 EDT 2015


Raymond Hettinger added the comment:

This is a duplicate of Issue #14010.  This issue runs deep and isn't itertools specific.  Running infinite chains of iterators pushes a number of CPython internals past their limits.  The best solutions are hard (monitoring the C-stack or fixing every possible fault at the fracture point).  The simplest solution (adding recursion count tracking to every possible iteration)is very heavy-handed and would slow-down all of Python in order to spare exotic cases that don't seem to arise in practice.

----------
resolution:  -> duplicate
status: open -> closed

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


More information about the Python-bugs-list mailing list