[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.
Antoine Pitrou
report at bugs.python.org
Mon Jan 16 18:52:33 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
There seem to be two issues at play here:
- the atexit module (and its companion helper _Py_PyAtExit()) doesn't know about sub-interpreters.
- PyState_FindModule() doesn't know about sub-interpreters either, because the m_index field (which records the module's index in an interpreter's module list (PyInterpreterState.modules_by_index)) is recorded in the PyModuleDef structure rather than the module instance: it is therefore global to all interpreters
Having atexit work properly with sub-interpreters would require fixing these two issues AFAICT.
----------
nosy: +loewis, pitrou
versions: +Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6531>
_______________________________________
More information about the Python-bugs-list
mailing list