• Fred Drake's avatar
    Allocating a new weakref object can cause existing weakref objects for · e5e6a15c
    Fred Drake authored
    the same object to be collected by the cyclic GC support if they are
    only referenced by a cycle.  If the weakref being collected was one of
    the weakrefs without callbacks, some local variables for the
    constructor became invalid and have to be re-computed.
    
    The test caused a segfault under a debug build without the fix applied.
    e5e6a15c
test_weakref.py 31.9 KB