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 kj
Recipients Mark.Shannon, kj, pablogsal, vstinner
Date 2021-08-19.10:51:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629370277.05.0.775836992213.issue44914@roundup.psfhosted.org>
In-reply-to
Content
I just realised I'm slightly wrong about identity checks -- there is a very very small chance where if the type object occupies the same address and the attribute is in a dynamically allocated __dict__ (and not some static slot), we can trick the checks and a segfault may occur for LOAD_ATTR using the old opcache in 3.10.

I've tried running tests for 30 repetitions, but I cannot get the segfault to appear. @Pablo I'll leave it up to you if you feel it's backport worthy. I don't think people use sys._clear_type_cache or PyType_ClearCache normally so the chances of this causing any crash is astronomically small.
History
Date User Action Args
2021-08-19 10:51:17kjsetrecipients: + kj, vstinner, Mark.Shannon, pablogsal
2021-08-19 10:51:17kjsetmessageid: <1629370277.05.0.775836992213.issue44914@roundup.psfhosted.org>
2021-08-19 10:51:17kjlinkissue44914 messages
2021-08-19 10:51:16kjcreate