[Numpy-tickets] [NumPy] #615: numpy.array([])[arange(10000)>=0] = 123 segfaults
NumPy
numpy-tickets@scipy....
Fri Nov 16 01:13:31 CST 2007
#615: numpy.array([])[arange(10000)>=0] = 123 segfaults
------------------------+---------------------------------------------------
Reporter: rauli | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.5
Component: numpy.core | Version: 1.0.1
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by nils):
Confirmed on x86-64 running
{{{
>>> numpy.__version__
'1.0.5.dev4457'
}}}
Here is a backtrace
{{{
>>> array([])[arange(10000)>=0] = 123
*** glibc detected *** free(): invalid next size (fast):
0x000000000062e080 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread 182894187744 (LWP 29962)]
0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6
(gdb) bt
#0 0x0000003390e2e21d in raise () from /lib64/tls/libc.so.6
#1 0x0000003390e2fa1e in abort () from /lib64/tls/libc.so.6
#2 0x0000003390e63291 in __libc_message () from /lib64/tls/libc.so.6
#3 0x0000003390e68eae in _int_free () from /lib64/tls/libc.so.6
#4 0x0000003390e691f6 in free () from /lib64/tls/libc.so.6
#5 0x0000002a9915299b in array_dealloc (self=0x6c0690) at
numpy/core/src/arrayobject.c:1943
#6 0x000000339018910f in _PyEval_SliceIndex () from
/usr/lib64/libpython2.3.so.1.0
#7 0x000000339018b23e in PyEval_EvalCodeEx () from
/usr/lib64/libpython2.3.so.1.0
#8 0x000000339018b4a2 in PyEval_EvalCode () from
/usr/lib64/libpython2.3.so.1.0
#9 0x00000033901a40c9 in PyErr_Display () from
/usr/lib64/libpython2.3.so.1.0
#10 0x00000033901a5455 in PyRun_InteractiveOneFlags () from
/usr/lib64/libpython2.3.so.1.0
#11 0x00000033901a55ce in PyRun_InteractiveLoopFlags () from
/usr/lib64/libpython2.3.so.1.0
#12 0x00000033901a6035 in PyRun_AnyFileExFlags () from
/usr/lib64/libpython2.3.so.1.0
#13 0x00000033901aa7a8 in Py_Main () from /usr/lib64/libpython2.3.so.1.0
#14 0x0000003390e1c3fb in __libc_start_main () from /lib64/tls/libc.so.6
#15 0x00000000004006ba in _start ()
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/615#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list