[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?
Antoine Pitrou
report at bugs.python.org
Sun Sep 12 13:35:05 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
I can't reproduce under Linux. Is 3.1 also affected?
Can you try the following patch:
Index: Python/pythonrun.c
===================================================================
--- Python/pythonrun.c (révision 84718)
+++ Python/pythonrun.c (copie de travail)
@@ -219,6 +219,8 @@
/* auto-thread-state API, if available */
#ifdef WITH_THREAD
+ if (PyEval_ThreadsInitialized())
+ PyEval_ReInitThreads();
_PyGILState_Init(interp, tstate);
#endif /* WITH_THREAD */
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9828>
_______________________________________
More information about the Python-bugs-list
mailing list