[issue17978] Python crashes if Py_Initialize/Py_Finalize are called multiple times

STINNER Victor report at bugs.python.org
Tue Oct 22 18:48:36 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

Program described in msg189250 does not crash on the master branch of Python. The PEP 587 deeply reworked Python initialization code. There is now a preinitialization phase, for example.

Moreover, Programs/_testembed.c has a test calling Py_Initialize()+Py_Finalize() multiple times, and this test calls Py_SetProgramName() as well.

Upgrade to Python 3.8 to get the fix. (I didn't check if Python 3.7 is also fixed.)

----------
nosy: +vstinner
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list