[NumPy-Tickets] [NumPy] #2213: Deadlock happening when using numpy/scipy with python subinterpreters

NumPy Trac numpy-tickets@scipy....
Wed Sep 12 05:21:51 CDT 2012

#2213: Deadlock happening when using numpy/scipy with python subinterpreters
 Reporter:  raphael.de.feraudy  |       Owner:  somebody
     Type:  enhancement         |      Status:  new     
 Priority:  normal              |   Milestone:  1.7.0   
Component:  numpy.core          |     Version:  devel   
 Keywords:                      |  

 I've encountered a deadlock while trying to import a scipy subpackage
 using Python C API in my application.

 I've managed to build a minimal example showing this, which I join to this

 According to what I've found on the internet, I guess this is caused by
 the (documented) unsupported use of both PyGilState_* functions in numpy
 code and Subinterpreters in my code (As you will see in my example, the
 simple use of a new subinterpreter instead of the main default one is
 enough to produce the deadlock).

 I use an ubuntu 12.04 Precise Pangolin 64bits distribution with standard
 python-numpy (1.6.1) and python-scipy (0.9.0) package , but the deadlock
 still happens with last revisions of git repositories.

 I tried to fix this by myself, only using PyEval_* functions in a working
 copy, but didn't succeed.

 My questions are :
 * Are you aware of this issue ?
 * Do you plan to address it in next milestone ?
 * Do you have any workaround to suggest ?

Ticket URL: <http://projects.scipy.org/numpy/ticket/2213>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list