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

2015-10-17 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2015-10-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- superseder: -> deeply nested filter segfaults ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2015-10-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this issue an exact duplicate of issue22911 that is a duplicate of issue14010. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

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

2015-10-16 Thread Raymond Hettinger
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 possi

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

2015-10-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: Also crashes in 3.5.0 (on Windows 7, with 64 bit build). -- nosy: +josh.r ___ Python tracker ___ ___

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

2015-10-16 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: -> rhettinger components: +Extension Modules nosy: +rhettinger versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3 ___ Python tracker __

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

2015-10-16 Thread Evan Hubinger
New submission from Evan Hubinger: The code import itertools it = itertools.chain.from_iterable((f() for f in [lambda: it])) list(it) definitely segfaults on Python 2.6, 2.7, 3.3, and 3.4, and probably segfaults on other versions as well. The code is clearly incorrect in that the lambda refer