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
GH-93990: fix refcounting bug in add_subclass in typeobject.c #93989
Conversation
Please create an issue. Also, can you add tests which trigger this bug? If it's too difficult to trigger from Python code, we can forgo the tests. |
I don't think this can be done from python. It is an edge case when allocating dict for tp_subclasses causes memory error. |
Thanks @kumaraditya303 for the PR, and @Fidget-Spinner for merging it |
Thanks @kumaraditya303 for the PR, and @Fidget-Spinner for merging it |
Sorry, @kumaraditya303 and @Fidget-Spinner, I could not cleanly backport this to |
Sorry @kumaraditya303 and @Fidget-Spinner, I had trouble checking out the |
Thanks @kumaraditya303 for the PR, and @Fidget-Spinner for merging it |
…c` (pythonGH-93989) (cherry picked from commit 726448e) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-93998 is a backport of this pull request to the 3.11 branch. |
GH-93999 is a backport of this pull request to the 3.10 branch. |
No description provided.