[SciPy-User] segfaults with weave.inline

Pitam Mitra pitam@deepspace.ucsb....
Tue Mar 2 05:21:25 CST 2010


Hi,

I am creating a new median filter for an astronomy
application. Due to speed issues, I decided to code it with
weave.inline. However, I have run into segfaults and I have
no clue what to do next.

I am sorry if this is the wrong section to post this - I
searched the site, I could not find any forum. :(


Any help is appreciated!!

Here is the output:

*** glibc detected *** python: free(): invalid next size
(fast): 0x09746358 ***
======= Backtrace: =========
/lib/libc.so.6[0x428751]
/usr/lib/python2.6/site-packages/numpy/core/multiarray.so(+0x3643c)[0x8db43c]
/usr/lib/libpython2.6.so.1.0[0x3669924]
/usr/lib/libpython2.6.so.1.0[0x3656559]
/usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x5359)[0x36c8fc9]
/usr/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7aa)[0x36c9e4a]
/usr/lib/libpython2.6.so.1.0(PyEval_EvalCode+0x64)[0x36c9fb4]
/usr/lib/libpython2.6.so.1.0[0x36e525c]
/usr/lib/libpython2.6.so.1.0(PyRun_FileExFlags+0x93)[0x36e5323]
/usr/lib/libpython2.6.so.1.0(PyRun_SimpleFileExFlags+0xe1)[0x36e68c1]
/usr/lib/libpython2.6.so.1.0(PyRun_AnyFileExFlags+0x82)[0x36e7162]
/usr/lib/libpython2.6.so.1.0(Py_Main+0xb95)[0x36f3bd5]
python(main+0x28)[0x80485c8]
/lib/libc.so.6(__libc_start_main+0xe6)[0x3d0bb6]
python[0x8048501]



Then there is a huge memory map. The full output can be
seen here:http://www.pastebay.com/88049

and the code here: http://www.pastebay.com/88050

Regards

Pitam



More information about the SciPy-User mailing list