[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Py_NewInterpreter() - Fatal Error with ceval - orphan tstate
From:       dieter <dieter () handshake ! de>
Date:       2015-11-27 7:30:51
Message-ID: 87wpt3ew5w.fsf () handshake ! de
[Download RAW message or body]

"ramjee a.g." <ramjee.ag@gmail.com> writes:

> I am using python 2.7 for extending my C++ application with python.
>
> And when two pthread of C is executing Py_NewInterpreter() it is throwing
> faltal error with ceval-orphan tstate.  There is no problem when sequential
> thread execution.

"tstate" likely stands for "thread state".

Python must somewhere store important information of the currently
running Python thread - and apparently, your use of "Py_NewInterpreter"
confuses this management.

Maybe, the "tstate" is a global variable and you cannot have multiple
interpreters at the same time. I suggest to have a look at Python's
C implementation, especially the location where the error comes from.

-- 
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic