[NumPy-Tickets] [NumPy] #1928: PyArray_API is *not* a unique symbol.
NumPy Trac
numpy-tickets@scipy....
Thu Aug 11 08:51:44 CDT 2011
#1928: PyArray_API is *not* a unique symbol.
-------------------------------------------+--------------------------------
Reporter: phil@… | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.numarray | Version: 1.5.1
Keywords: |
-------------------------------------------+--------------------------------
Comment(by phil@…):
I looked into the problem a little more. It was indeed something my
module was doing that was causing the problem, but it had nothing to do
with my module using numpy arrays. It was because the python wrapper
around my C-python module was sharing symbols across modules. The problem
is easily reproduced thusly:
{{{
>>> import sys
>>> import DLFCN
>>> sys.setdlopenflags(sys.getdlopenflags() | DLFCN.RTLD_GLOBAL)
>>> import scipy.signal
Segmentation fault (core dumped)
}}}
What I said about changing the definition of PY_ARRAY_UNIQUE_SYMBOL in
fortranobject.h still fixes it, and I still think it might be a good idea
to check in the change. But that's just my unexpert opinion...
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1928#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list