[New-bugs-announce] [issue22517] BufferedRWpair doesn't clear weakrefs

paul report at bugs.python.org
Mon Sep 29 22:59:02 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22517>
_______________________________________


More information about the New-bugs-announce mailing list