Re: PyGILState_Release + Python2.3 = Segmentation Fault

2006-02-01 Thread cadavis2k2
Kirill Simonov wrote: > Hi, > > Could someone tell me why my extension module works under Python 2.4, but > fails with Segmentation Fault under Python 2.3? Here is the stripped version: Maybe Python threads aren't initialized? Adding a call to PyEval_InitThreads() stops the seg fault for me in Py

PyGILState_Release + Python2.3 = Segmentation Fault

2006-01-31 Thread Kirill Simonov
Hi, Could someone tell me why my extension module works under Python 2.4, but fails with Segmentation Fault under Python 2.3? Here is the stripped version: #include static PyObject * test_gil(PyObject *self) { PyGILState_STATE gs; Py_BE