ukoethe/vigra — Issue #105: python: cannyEdgelList segfaults
Author: thorbenk
Created: 2011-12-16 10:16:45+00:00
State: open

the following snippet leads to a segmentation fault:

```python
import numpy
import vigra
from scipy.misc import lena

img = lena().astype(numpy.float32)
l = vigra.analysis.cannyEdgelList(img, 1.5, 5.0)
```

backtrace:

```gdb
#0 0x00007ffff7aee480 in PyErr_Occurred () at Python/errors.c:80
#1 0x00007ffff7b219bc in _PyObject_GC_Malloc (basicsize=88) at Modules/gcmodule.c:1455
#2 0x00007ffff7a7dafd in PyType_GenericAlloc (type=0xcff400, nitems=32) at Objects/typeobject.c:753
#3 0x00007ffff0a35f38 in boost::python::converter::as_to_python_function > > >::convert(void const*) () from /home/thorben/inst/lib/python/site-packages/vigra/analysis.so
#4 0x00007ffff33703e6 in boost::python::converter::registration::to_python(void const volatile*) const () from /usr/lib64/libboost_python-mt-1_47.so.1.47.0
#5 0x00007ffff3388160 in boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&) ()
from /usr/lib64/libboost_python-mt-1_47.so.1.47.0
#6 0x00007ffff0a52b8e in boost::python::list vigra::pythonFindEdgels(vigra::NumpyArray<2u, float, vigra::StridedArrayTag>, double, double) ()
from /home/thorben/inst/lib/python/site-packages/vigra/analysis.so
```