• Tim Peters's avatar
    SF bug #483469: crash on unbounded recursion in __del__. · b13680bf
    Tim Peters authored
    PyEval_EvalCodeEx():  increment tstate->recursion_depth around the
    decref of the frame, because the C stack for this call is still in
    use and the decref can lead to __del__ methods getting called.
    
    While this gives tstate->recursion_depth a value proportional to the
    depth of the C stack (instead of a small constant no matter how
    deeply __del__s recurse), it's not enough to stop the reported crash
    when using the default recursion limit on Windows.
    
    Bugfix candidate.
    b13680bf
ceval.c 81.9 KB