[issue24581] Crash when a set is changed during iteration

2015-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8644744f53ce by Serhiy Storchaka in branch '3.4': Added regression test for issue24581. https://hg.python.org/cpython/rev/8644744f53ce New changeset cfb84be6c7fc by Serhiy Storchaka in branch '2.7': Added regression test for issue24581. https://hg.p

[issue24581] Crash when a set is changed during iteration

2015-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 648c9fb3bdf5 by Raymond Hettinger in branch 'default': Issue 24581: Revert c9782a9ac031 pending a stronger test for mutation during iteration. https://hg.python.org/cpython/rev/648c9fb3bdf5 -- nosy: +python-dev

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: The test for the size being constant has always been weak (it was possible to produce a unstable and incorrect but non-crashing result). I was considering checking both size and that the table itself hasn't moved. -- __

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Changeset c9782a9ac031 caused segmentation fault when underlying table of the set is reallocated but the number of set elements is kept the same during iteration. Crash reproducer: s = set(range(100)) s.clear() s.update(range(100)) si = iter(s) s.clear() a