[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash
Pablo Galindo Salgado
report at bugs.python.org
Mon Feb 15 13:02:33 EST 2021
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
> If the GIL is released before the tuple is fully populated and something access to this tuple via the GC (ex: gc.get_objects()), accessing the tuple can crash, especially in the Python land (for example, repr(the_tuple) is likely to crash).
It can happen even without releasing the GIL: A new tuple is created, then some other object is created using the CAPI, the gc runs, the callback triggers (or the tuplevisit method is invoked) and then kaboom
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue15108>
_______________________________________
More information about the Python-bugs-list
mailing list