Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82421 > unrolled thread
| Started by | keepplearningpython <krishna2prasad@gmail.com> |
|---|---|
| First post | 2014-12-11 23:54 -0800 |
| Last post | 2014-12-13 08:06 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Fatal Python error: PyCOND_WAIT(gil_cond) failed keepplearningpython <krishna2prasad@gmail.com> - 2014-12-11 23:54 -0800
Re: Fatal Python error: PyCOND_WAIT(gil_cond) failed dieter <dieter@handshake.de> - 2014-12-13 08:06 +0100
| From | keepplearningpython <krishna2prasad@gmail.com> |
|---|---|
| Date | 2014-12-11 23:54 -0800 |
| Subject | Fatal Python error: PyCOND_WAIT(gil_cond) failed |
| Message-ID | <a04ba13a-2147-482c-a678-9efeb960517b@googlegroups.com> |
Hi, I am running ipython3 on Unix and constantly see this crash - It happens when i try to issue commands on the ipython interactive shell. I have tried to set the PYTHONDIR to /var/tmp/ in case there was an issue accessing the default location of the history file. However, this makes no difference. I can run a command a few times successfully after which I hit this error. This is my python version info Python 3.3.2 (default, Nov 14 2014, 12:28:17) Type "copyright", "credits" or "license" for more information. IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. Any suggestions on what might be going on? Fatal Python error: PyCOND_WAIT(gil_cond) failed Thread 0x088e8900: File "/opt/jde/lib/python3.3/site-packages/IPython/core/history.py", line 664 in _writeout_input_cache File "/opt/jde/lib/python3.3/site-packages/IPython/core/history.py", line 680 in writeout_cache File "/opt/jde/lib/python3.3/site-packages/IPython/core/history.py", line 65 in needs_sqlite File "<string>", line 2 in writeout_cache File "/opt/jde/lib/python3.3/site-packages/IPython/core/history.py", line 733 in run File "/opt/jde/lib/python3.3/site-packages/IPython/core/history.py", line 65 in needs_sqlite File "<string>", line 2 in run File "/opt/jde/lib/python3.3/threading.py", line 637 in _bootstrap_inner File "/opt/jde/lib/python3.3/threading.py", line 614 in _bootstrap Current thread 0x0804b000: File "/opt/jde/lib/python3.3/logging/__init__.py", line 940 in emit File "/opt/jde/lib/python3.3/logging/__init__.py", line 833 in handle File "/opt/jde/lib/python3.3/logging/__init__.py", line 1439 in callHandlers File "/opt/jde/lib/python3.3/logging/__init__.py", line 1377 in handle File "/opt/jde/lib/python3.3/logging/__init__.py", line 1367 in _log File "/opt/jde/lib/python3.3/logging/__init__.py", line 1232 in info File "/var/root/diags/src/lib/python/jde/jde/Model.py", line 644 in show File "<ipython-input-3-e2e1750a3a77>", line 1 in <module> File "/opt/jde/lib/python3.3/site-packages/IPython/core/interactiveshell.py", line 2828 in run_code File "/opt/jde/lib/python3.3/site-packages/IPython/core/interactiveshell.py", line 2778 in run_ast_nodes File "/opt/jde/lib/python3.3/site-packages/IPython/core/interactiveshell.py", line 2668 in run_cell File "/opt/jde/lib/python3.3/site-packages/IPython/terminal/interactiveshell.py", line 555 in interact File "/opt/jde/lib/python3.3/site-packages/IPython/terminal/interactiveshell.py", line 436 in mainloop File "/opt/jde/lib/python3.3/site-packages/IPython/terminal/ipapp.py", line 362 in start File "/opt/jde/lib/python3.3/site-packages/IPython/config/application.py", line 545 in launch_instance File "/opt/jde/lib/python3.3/site-packages/IPython/__init__.py", line 118 in start_ipython File "/opt/jde/bin/ipython3", line 6 in <module> Abort (core dumped)
[toc] | [next] | [standalone]
| From | dieter <dieter@handshake.de> |
|---|---|
| Date | 2014-12-13 08:06 +0100 |
| Message-ID | <mailman.16932.1418454416.18130.python-list@python.org> |
| In reply to | #82421 |
keepplearningpython <krishna2prasad@gmail.com> writes: > I am running ipython3 on Unix and constantly see this crash - > It happens when i try to issue commands on the ipython interactive shell. > > I have tried to set the PYTHONDIR to /var/tmp/ in case there was an issue accessing the default location of the history file. However, this makes no difference. > > I can run a command a few times successfully after which I hit this error. > ... > Any suggestions on what might be going on? > > > > > Fatal Python error: PyCOND_WAIT(gil_cond) failed Apparently, some thread should wait for the GIL (Python's Global Interpreter Lock) but instead of waiting, the operation results in an error. This looks like an important bug in GIL handling -- likely caused by some C extension, likely executing Python code without first acquiring the GIL. It might be difficult to locate the error: likely C level debugging will be necessary. Should my hypothesis be true, a change in C code would be necessary to fix the problem. I recommend to check for known problems related to GIL handling for all C implemented components of your application. If you are lucky, your problem is known and has been fixed in a different version. Then upgrading would be all you need to do.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web