New submission from paul: # static void # bufferedrwpair_dealloc(rwpair *self) # { # _PyObject_GC_UNTRACK(self); # Py_CLEAR(self->reader); # Py_CLEAR(self->writer); # Py_CLEAR(self->dict); # Py_TYPE(self)->tp_free((PyObject *) self); # } # # Weakrefs to this object contain stale pointer after BufferedRWPair is freed.
---------- files: poc_brwpair_weakref.py messages: 227835 nosy: pkt priority: normal severity: normal status: open title: BufferedRWpair doesn't clear weakrefs type: crash versions: Python 3.4 Added file: http://bugs.python.org/file36753/poc_brwpair_weakref.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com