-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failure when func_repr is called on an already tp_clear-ed object #91636
Comments
@pitrou and @pablogsal are listed at https://devguide.python.org/experts/ under "gc". |
Bisected to here @methane: 3c45240 is the first bad commit
|
I opened #91651 to attempt to fix at least this one specific case. |
Hm. this is wider problem. I think many more types are not safe after tp_clear... |
This may be quite a widespread problem given how often |
Yes. This would be widespread problem. I quickly find two issues:
|
It's probably worthwhile fixing those |
Then we need to also modify |
Crash report
It is possible to resurrect a
tp_clear
-ed object using pure python. The following piece of code illustrates how:Your environment
The text was updated successfully, but these errors were encountered: