[Numpy-discussion] bool indices segv

Maria Liukis liukis@usc....
Tue Jun 22 18:46:49 CDT 2010


Hi Geoff,

It's working in numpy V1.3.0:

>>> import numpy 
>>> numpy.__version__
'1.3.0'
>>> a = numpy.ones((1,1))
>>> a[a>0]
array([ 1.])
>>> 

Thanks,
Masha
--------------------
liukis@usc.edu



On Jun 22, 2010, at 4:37 PM, Geoffrey Ely wrote:

> Hi,
> 
> I'm getting a SEGV for boolean indices to a multi-dimensional array (numpy ver 1.4.1). Is this a known problem? Code and backtrace below.
> 
> Thanks,
> Geoff
> 
> 
> import numpy
> a = numpy.ones((1,1))
> a[a>0]
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182902359776 (LWP 17886)]
> DOUBLE_copyswap (dst=0xa62d60, src=0x3f800a38fc0, swap=0, __NPY_UNUSED_TAGGEDarr=0xa57d60)
>    at numpy/core/src/multiarray/arraytypes.c.src:1161
> 1161	numpy/core/src/multiarray/arraytypes.c.src: No such file or directory.
> 	in numpy/core/src/multiarray/arraytypes.c.src
> (gdb) bt
> #0  DOUBLE_copyswap (dst=0xa62d60, src=0x3f800a38fc0, swap=0, __NPY_UNUSED_TAGGEDarr=0xa57d60)
>    at numpy/core/src/multiarray/arraytypes.c.src:1161
> #1  0x0000002a990a5759 in array_subscript (self=Variable "self" is not available.
> ) at numpy/core/src/multiarray/mapping.c:259
> #2  0x0000002a990a5af5 in array_subscript_nice (self=0xa872f0, op=0xa87e50)
>    at numpy/core/src/multiarray/mapping.c:939
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list