Hi all, The following code causes a segmentation fault in Numpy 1.0b2 and 1.0b1.
import numpy as N v = N.array([1,2,3,4,5,6,7,8,9,10]) N.lexsort(v) Stack trace =========== $ gdb --args python crash.py GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) run Starting program: /usr/bin/python crash.py [Thread debugging using libthread_db enabled] [New Thread -1209857824 (LWP 22827)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209857824 (LWP 22827)] 0xb7d48f8d in PyArray_LexSort (sort_keys=0x81ed7e0, axis=<value optimized out>) at arrayobject.c:8483 8483 arrayobject.c: No such file or directory. in arrayobject.c (gdb) bt #0 0xb7d48f8d in PyArray_LexSort (sort_keys=0x81ed7e0, axis=<value optimized out>) at arrayobject.c:8483 #1 0xb7d49da5 in array_lexsort (ignored=0x0, args=0x822cb18, kwds=0x822cb18) at numpy/core/src/multiarraymodule.c:6271 #2 0x080b62c7 in PyEval_EvalFrame (f=0x8185c24) at ../Python/ceval.c:3563 #3 0x080b771f in PyEval_EvalCodeEx (co=0xb7e27ce0, globals=0xb7e08824, locals=0xb7e08824, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2736 #4 0x080b7965 in PyEval_EvalCode (co=0x822cb18, globals=0x822cb18, locals=0x822cb18) at ../Python/ceval.c:484 #5 0x080d94cc in PyRun_FileExFlags (fp=0x813e008, filename=0xbfcc98f3 "crash.py", start=136497944, globals=0x822cb18, locals=0x822cb18, closeit=1, flags=0xbfcc91d4) at ../Python/pythonrun.c:1265 #6 0x080d976c in PyRun_SimpleFileExFlags (fp=<value optimized out>, filename=0xbfcc98f3 "crash.py", closeit=1, flags=0xbfcc91d4) at ../Python/pythonrun.c:860 #7 0x08055b33 in Py_Main (argc=1, argv=0xbfcc9274) at ../Modules/main.c:493 #8 0xb7e45ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #9 0x08054fa1 in _start () at ../sysdeps/i386/elf/start.S:119 (gdb) #0 0xb7d48f8d in PyArray_LexSort (sort_keys=0x81ed7e0, axis=<value optimized out>) at arrayobject.c:8483 #1 0xb7d49da5 in array_lexsort (ignored=0x0, args=0x822cb18, kwds=0x822cb18) at numpy/core/src/multiarraymodule.c:6271 #2 0x080b62c7 in PyEval_EvalFrame (f=0x8185c24) at ../Python/ceval.c:3563 #3 0x080b771f in PyEval_EvalCodeEx (co=0xb7e27ce0, globals=0xb7e08824, locals=0xb7e08824, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2736 #4 0x080b7965 in PyEval_EvalCode (co=0x822cb18, globals=0x822cb18, locals=0x822cb18) at ../Python/ceval.c:484 #5 0x080d94cc in PyRun_FileExFlags (fp=0x813e008, filename=0xbfcc98f3 "crash.py", start=136497944, globals=0x822cb18, locals=0x822cb18, closeit=1, flags=0xbfcc91d4) at ../Python/pythonrun.c:1265 #6 0x080d976c in PyRun_SimpleFileExFlags (fp=<value optimized out>, filename=0xbfcc98f3 "crash.py", closeit=1, flags=0xbfcc91d4) at ../Python/pythonrun.c:860 #7 0x08055b33 in Py_Main (argc=1, argv=0xbfcc9274) at ../Modules/main.c:493 #8 0xb7e45ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #9 0x08054fa1 in _start () at ../sysdeps/i386/elf/start.S:119 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion