[issue39778] collections.OrderedDict and weakref.ref raises "refcount is too small" assertion
Tim Peters
report at bugs.python.org
Fri Feb 28 00:53:29 EST 2020
Tim Peters <tim at python.org> added the comment:
I'm suspecting that maybe we shouldn't be doing
Py_VISIT(od->od_weakreflist);
at all - best I can tell from a quick (non-exhaustive!) scan, the objects in the weakref list aren't incref'ed to begin with. And even if they were, that line would only be looking at the head of the list, ignoring all the non-head weakrefs after the head.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39778>
_______________________________________
More information about the Python-bugs-list
mailing list