Thanks to everyone for the great support.
I've submitted a patch for this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1413181&group_id=5470&atid=305470.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listi
[Tim]
>> ...
>> As a result, it so happens that core Python never uses the original
>> PyThreadState_Delete() anymore, except when Py_NewInterpreter() has
>> to throw away the brand new thread state it created because it turns out
>> it can't create a new interpreter.
[Michael]
> Um, PyThreadState
Tim Peters <[EMAIL PROTECTED]> writes:
> [Gabriel Becedillas]
>> Can anybody tell me if the patch I suggested is ok ?
>> That will be to add the following code at the end of PyThreadState_Delete:
>>
>> if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate)
>> PyThread_delete_key_valu
[Gabriel Becedillas]
> Can anybody tell me if the patch I suggested is ok ?
> That will be to add the following code at the end of PyThreadState_Delete:
>
> if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate)
> PyThread_delete_key_value(autoTLSkey);
It needs a little work, but I t
Gabriel Becedillas wrote:
> Michael Hudson wrote:
>> Gabriel Becedillas <[EMAIL PROTECTED]> writes:
>>
>>
>>> Hi,
>>> At the company I work for, we've embedded Python in C++ application
>>> we develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started
>>> hitting Py_FatalError("Invalid thre
Michael Hudson wrote:
> Gabriel Becedillas <[EMAIL PROTECTED]> writes:
>
>
>>Hi,
>>At the company I work for, we've embedded Python in C++ application we
>>develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting
>>Py_FatalError("Invalid thread state for this thread") when using
Gabriel Becedillas <[EMAIL PROTECTED]> writes:
> Hi,
> At the company I work for, we've embedded Python in C++ application we
> develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting
> Py_FatalError("Invalid thread state for this thread") when using debug
> builds.
> We use bo
On Thu, Jan 12, 2006, Gabriel Becedillas wrote:
>
> If I add this code at the end of PyThreadState_Delete:
>
> if (autoTLSkey && PyThread_get_key_value(autoTLSkey) == tstate)
> PyThread_delete_key_value(autoTLSkey);
>
> then everything works fine.
> Could you please confirm if this is a bug
Hi,
At the company I work for, we've embedded Python in C++ application we
develop. Since our upgrade to Python 2.4.2 from 2.4.1 we started hitting
Py_FatalError("Invalid thread state for this thread") when using debug
builds.
We use both multiple interpreters and thread states.
I think the pro