[Python-apps-team] Bug#692313: cython: weakref + python-dbg -> visit_decref: Assertion `gc->gc.gc_refs != 0' failed.

Jakub Wilk jwilk at debian.org
Sun Nov 4 21:54:13 UTC 2012


Package: cython
Version: 0.17.1-1
Control: block 683132 with -1

The attached module worked correctly with Cython 0.15, but it explodes 
with 0.17:

$ python-dbg -c 'import pyximport as pi; pi.install(); import weakfail; s=weakfail.foo(42)'
python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion `gc->gc.gc_refs != 0' failed.
Aborted


-- System Information:
Debian Release: wheezy/sid
    APT prefers unstable
    APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cython depends on:
ii  libc6   2.13-36
ii  python  2.7.3-3

Versions of packages cython suggests:
ii  gcc         4:4.7.2-1
ii  python-dev  2.7.3-3

-- 
Jakub Wilk
-------------- next part --------------
import weakref
foo_dict = weakref.WeakValueDictionary()

cdef class Foo:
    cdef object __weakref__

def foo(key):
    obj = Foo()
    foo_dict[key] = obj
    return obj


More information about the Python-apps-team mailing list