This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients eric.snow, leezu, pablogsal, pitrou, rhettinger, tim.peters, vstinner
Date 2020-03-02.19:04:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
After some thought, I'm sure the diagnosis is correct:  the weakref list must be made invisible to gc.  That is, simply don't traverse it at all.  The crash is exactly what's expected from traversing objects a container doesn't own references to.

I agree the tp_traverse docs should point out that weakref lists are special this way, but I think the problem is unique to them - can't think of another case where a container points to an object it doesn't own a reference to.
Date User Action Args
2020-03-02 19:04:46tim.peterssetrecipients: + tim.peters, rhettinger, pitrou, vstinner, eric.snow, leezu, pablogsal
2020-03-02 19:04:46tim.peterssetmessageid: <>
2020-03-02 19:04:46tim.peterslinkissue39778 messages
2020-03-02 19:04:46tim.peterscreate