[Numpy-discussion] bool indices segv
Geoffrey Ely
gely at usc.edu
Tue Jun 22 19:37:13 EDT 2010
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
More information about the NumPy-Discussion
mailing list