[issue26494] Double deallocation on iterator exhausting

2016-03-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue26494] Double deallocation on iterator exhausting

2016-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 905b5944119c by Serhiy Storchaka in branch '3.5': Issue #26494: Fixed crash on iterating exhausting iterators. https://hg.python.org/cpython/rev/905b5944119c New changeset 73ce47d4a7b2 by Serhiy Storchaka in branch 'default': Issue #26494: Fixed cra

[issue26494] Double deallocation on iterator exhausting

2016-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please look at the patch? I'm not sure about organizing tests. -- ___ Python tracker ___

[issue26494] Double deallocation on iterator exhausting

2016-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It crashes in debug build. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue26494] Double deallocation on iterator exhausting

2016-03-09 Thread Filipp Andjelo
Filipp Andjelo added the comment: Hi Serhiy, I tried the short example you gave, but it doesn't crash. I'm getting: Exception ignored in: Traceback (most recent call last): File "./test.py", line 5, in __del__ next(it) StopIteration Exception ignored in: Traceback (most recent call last

[issue26494] Double deallocation on iterator exhausting

2016-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed test for OrderedDict. Tests for list and tuple are moved up to seq_tests.py. -- Added file: http://bugs.python.org/file42092/free_after_iterating_3.patch ___ Python tracker

[issue26494] Double deallocation on iterator exhausting

2016-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: TODO: After resolving issue26492 add the test for array. -- ___ Python tracker ___ ___ Python-bugs

[issue26494] Double deallocation on iterator exhausting

2016-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch fixes also set, dict and os.scandir() iterator. May be sqlite3 cursor needs a fix, but it is too complicated. -- Added file: http://bugs.python.org/file42081/free_after_iterating_2.patch ___ Python tr

[issue26494] Double deallocation on iterator exhausting

2016-03-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Following example causes double deallocation of a sequence and crashing. class A(list): def __del__(self): next(it) it = iter(A()) next(it) The same is for subclass of tuple, str, bytes and bytearray. Proposed patch fixes this issue.