Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99628
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | dieter <dieter@handshake.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: Py_NewInterpreter() - Fatal Error with ceval - orphan tstate |
| Date | Fri, 27 Nov 2015 08:30:51 +0100 |
| Lines | 18 |
| Message-ID | <mailman.168.1448609471.20593.python-list@python.org> (permalink) |
| References | <CAGQhfC5ZSZyyL7kmaQmL=ECqCU_Ruy4ytXMYpDeJR=HdKLQ05A@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | news.uni-berlin.de bi9LXlsMLjhPxBLFg6wOZAIaj2XxiLLb4Z/86XI8wT3g== |
| Cancel-Lock | sha1:AIlgNX/nznUuqEyoCxPfSDj5/y0= |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Error': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thread': 0.10; 'python': 0.10; 'python.': 0.11; '2.7': 0.13; 'suggest': 0.15; 'pthread': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'sequential': 0.16; 'variable': 0.18; "python's": 0.23; 'somewhere': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'error': 0.27; 'executing': 0.27; 'extending': 0.29; 'especially': 0.32; 'problem': 0.33; 'stands': 0.33; 'running': 0.34; 'c++': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'application': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'your': 0.60; 'information': 0.63; 'received:217': 0.66; 'execution.': 0.84; 'maybe,': 0.91; 'from.': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | pd9e08a43.dip0.t-ipconnect.de |
| User-Agent | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:99628 |
Show key headers only | View raw
"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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Py_NewInterpreter() - Fatal Error with ceval - orphan tstate dieter <dieter@handshake.de> - 2015-11-27 08:30 +0100
csiph-web