SegFault using deque in 2.4b3

Tim Peters tim.peters at gmail.com
Fri Oct 1 03:31:22 CEST 2004


[George Yoshida]
> A bit simpler version(narrow the problem).
...

Thanks!  It's more efficient to open a bug report.  Running your
program in a debug build triggers an assertion failure in deque's C
implementation, which enabled finding a simple
fails-every-time-at-the-same-place one-thread test case:

from collections import deque
import gc

d = deque()
for i in xrange(100):
    print i,
    d.append(1)
    gc.collect()

deque isn't setting up its garbage-collection correctly; that should
be fixed soon.



More information about the Python-list mailing list