This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Segfault on recursive itertools.chain.from_iterable
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder: deeply nested itertools objects segfault
View: 14010
Assigned To: Nosy List: ikelly, serhiy.storchaka
Priority: normal Keywords:

Created on 2014-11-21 18:42 by ikelly, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg231489 - (view) Author: Ian Kelly (ikelly) Date: 2014-11-21 18:42
I expect this should result in a recursion depth exceeded error, not a segmentation fault.

$ cat test.py
import itertools

l = []
it = itertools.chain.from_iterable(l)
l.append(it)
next(it)
$ python3 test.py
Segmentation fault (core dumped)
msg231491 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-11-21 19:08
This is a duplicate of issue14010.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67100
2014-11-21 19:08:29serhiy.storchakasetstatus: open -> closed

superseder: deeply nested itertools objects segfault

nosy: + serhiy.storchaka
messages: + msg231491
resolution: duplicate
stage: resolved
2014-11-21 18:42:52ikellycreate