[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Extension Modules -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r88191 and r88192. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
STINNER Victor added the comment: deque.patch: I'm unable to say if the patch is correct or not, but it is always a good thing to remove asser(...) :-) -- ___ Python tracker __

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, thanks for the bug report. Score one for fuzzing. Andrew, thanks for the analysis and simplified crasher. See attached patch. -- keywords: +needs review, patch nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker Added

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Andrew Brown
Andrew Brown added the comment: This bug trigger can be simplified down, see my attached bug_simplified.py The problem seems to be in deque_count(). What's happening is that after the rotations, the 16 items reside in the last 16 slots of one block. In deque_count()'s for loop, the block poin

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread STINNER Victor
New submission from STINNER Victor : Attached script, bug.py, ends with: $ python3.2 source2.py deque.remove(x): x not in deque python: ./Modules/_collectionsmodule.c:536: deque_count: Assertion `leftblock->rightlink != ((void *)0)' failed. Abandon (core dumped) -- components: Library