bpo-31095: fix potential crash during GC.#2974
Conversation
Some tp_dealloc methods of GC types didn't call PyObject_GC_UnTrack().
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM (besides two details).
But this touches delicate things, and I think this PR needs a review of yet one core developer.
Sorry, something went wrong.
benjaminp
left a comment
There was a problem hiding this comment.
lgtm. This suggests that we need a systematic way to deal with this problem, though.
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
I suggest to add a comment explaining why an explicit Untrack is required.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
tiran
left a comment
There was a problem hiding this comment.
SSL and elementtree changes LGTM
Sorry, something went wrong.
(cherry picked from commit a6296d3)
(cherry picked from commit a6296d3)
see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974 Fixes #35.
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
|
Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7. |
Sorry, something went wrong.
|
Sorry, @methane, I could not cleanly backport this to |
Sorry, something went wrong.
call PyObject_GC_UnTrack() in tp_dealloc() see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974
call PyObject_GC_UnTrack() in tp_dealloc() see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974
call PyObject_GC_UnTrack() in tp_dealloc() see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974
call PyObject_GC_UnTrack() in tp_dealloc()
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
call PyObject_GC_UnTrack() in tp_dealloc()
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
see the following sites for details:
* https://bugs.python.org/issue31095
* python/cpython#2974
Some tp_dealloc methods of GC types didn't call PyObject_GC_UnTrack().
https://bugs.python.org/issue31095