[issue43660] Segmentation fault when overriding sys.stderr

Pablo Galindo Salgado report at bugs.python.org
Mon Mar 29 14:43:40 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

The problem is that https://github.com/python/cpython/blob/master/Python/pythonrun.c#L1074 doesn't take a strong reference to sys.stderr but code underneath can potentially release the GIL and remove the reference that keeps the object alive.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43660>
_______________________________________


More information about the Python-bugs-list mailing list