[Numpy-tickets] [NumPy] #325: memory error using vectorize
NumPy
numpy-tickets at scipy.net
Fri Oct 6 12:32:32 CDT 2006
#325: memory error using vectorize
------------------------+---------------------------------------------------
Reporter: stefan | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: normal | Keywords:
------------------------+---------------------------------------------------
The following code causes python (and valgrind!) to segfault:
{{{
from numpy import vectorize, zeros
vt = vectorize(lambda *args: args)
# Removing either of the following lines cures the segfault
vt(zeros((1,2,1)), zeros((2,1,1)), zeros((1,1,2)))
vt(zeros((1,2,1)), zeros((2,1,1)), zeros((1,1,2)), zeros((2,2)))
}}}
with gdb pronouncing
{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210120528 (LWP 11564)]
DOUBLE_setitem (op=0x0, ov=0x824b820 "�1���1��\002", ap=0x8226d28) at
numpy/core/src/arraytypes.inc.src:129
129 if (PyArray_IsScalar(op, @kind@)) {
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/325>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list