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 pablogsal
Recipients pablogsal, vstinner
Date 2019-10-10.20:56:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570740983.4.0.749612033912.issue38437@roundup.psfhosted.org>
In-reply-to
Content
> Under which condition can such list be corrupted?

If someone is adding/modifiying the gc and calls any of the functions that set the gc flags like (PREV_MASK_COLLECTING).

One example is that after calling move_unreachable(), the unreachable set has NEXT_MASK_UNREACHABLE and therefore is an invalid list (until move_legacy_finalizers removes the flag and makes it valid again). If you mess the order or violate any of the contract, the lists will be invalid. It helps a lot to know that you are not leaving the lists in invalid state by mistake or on the other hand, to check that they are valid when they are supposed to be valid.
History
Date User Action Args
2019-10-10 20:56:23pablogsalsetrecipients: + pablogsal, vstinner
2019-10-10 20:56:23pablogsalsetmessageid: <1570740983.4.0.749612033912.issue38437@roundup.psfhosted.org>
2019-10-10 20:56:23pablogsallinkissue38437 messages
2019-10-10 20:56:23pablogsalcreate