[SciPy-Dev] scipy.test() segfault

Pauli Virtanen pav@iki...
Sat Nov 3 15:35:44 CDT 2012


02.11.2012 20:14, Nils Wagner kirjoitti:
> AFAIK the segfault was introduced recently.
> gcc (SUSE Linux) 4.6.2
> GNU Fortran (SUSE Linux) 4.6.2
> x86_64 GNU/Linux
> Python 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC] on linux2
> '0.12.0.dev-bb436fa'
> NumPy version 1.8.0.dev-526b764

Doesn't crash for me for this Numpy/Scipy version combination (Ubuntu
12.10).

gcc-4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
GNU Fortran (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
x86_64 GNU/Linux
Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2

However, Valgrind shows:

==31561== Invalid read of size 8
==31561==    at 0x4C2CD88: memcpy@@GLIBC_2.14 (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31561==    by 0xE25A608: fill_buffer (sigtoolsmodule.c:796)
==31561==    by 0xE25B344: PyArray_OrderFilterND (sigtoolsmodule.c:968)
==31561==    by 0xE25C075: sigtools_order_filterND (sigtoolsmodule.c:1135)
==31561==    by 0x45F911: PyEval_EvalFrameEx (in /usr/bin/python2.7)
==31561==    by 0x467208: PyEval_EvalCodeEx (in /usr/bin/python2.7)
==31561==    by 0x45FF76: PyEval_EvalFrameEx (in /usr/bin/python2.7)
==31561==    by 0x467208: PyEval_EvalCodeEx (in /usr/bin/python2.7)
==31561==    by 0x4D0241: PyEval_EvalCode (in /usr/bin/python2.7)
==31561==    by 0x5102BA: ??? (in /usr/bin/python2.7)
==31561==    by 0x4D01E3: PyRun_StringFlags (in /usr/bin/python2.7)
==31561==    by 0x419F54: PyRun_SimpleStringFlags (in /usr/bin/python2.7)
==31561==  Address 0x7f0e510 is 16 bytes before a block of size 8 alloc'd
==31561==    at 0x4C2B3F8: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31561==    by 0x68572A5: PyDataMem_NEW (multiarraymodule.c:3491)
==31561==    by 0x67A81EE: PyArray_NewFromDescr (ctors.c:970)
==31561==    by 0x67A9CA7: PyArray_FromAny (ctors.c:1649)
==31561==    by 0x67AA069: PyArray_CheckFromAny (ctors.c:1757)
==31561==    by 0x6851D58: _array_fromobject (multiarraymodule.c:1655)
==31561==    by 0x464E18: PyEval_EvalFrameEx (in /usr/bin/python2.7)
==31561==    by 0x467208: PyEval_EvalCodeEx (in /usr/bin/python2.7)
==31561==    by 0x45FF76: PyEval_EvalFrameEx (in /usr/bin/python2.7)
==31561==    by 0x467208: PyEval_EvalCodeEx (in /usr/bin/python2.7)
==31561==    by 0x45FF76: PyEval_EvalFrameEx (in /usr/bin/python2.7)
==31561==    by 0x467208: PyEval_EvalCodeEx (in /usr/bin/python2.7)


-- 
Pauli Virtanen



More information about the SciPy-Dev mailing list