Segfaults from CTMF

Tony Yu tsyu80 at gmail.com
Fri Mar 1 10:48:24 EST 2013


On Thu, Feb 28, 2013 at 8:17 PM, Thouis (Ray) Jones <thouis at gmail.com>wrote:

> I'm on OSX 10.8, python 2.7.3, Cython 0.18.  I wonder if it's the
> cython version.  Your code works for me.
>
> Do you have a traceback?


There's no python traceback, but I've copied the crash report below. The
relevant line in the Cython code is:

https://github.com/scikit-image/scikit-image/blob/master/skimage/filter/_ctmf.pyx#L366


Also, do you know which path it's going down
> (SSE/MMX/Altivec/unaccelerated)?
>
>

It's crashing on the SSE path. The MMX (and unaccelerated) path works fine.

Crash report
~~~~~~~~~

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   _ctmf.so                       0x058c77ea
__pyx_f_7skimage_6filter_5_ctmf_accumulate + 490 (_ctmf.c:2277)
1   _ctmf.so                       0x058cb4a0
__pyx_pw_7skimage_6filter_5_ctmf_1median_filter + 8864 (_ctmf.c:3673)
2   org.python.python             0x000cb2d1 PyEval_EvalFrameEx + 21649
3   org.python.python             0x000cd02a PyEval_EvalCodeEx + 2042
4   org.python.python             0x000cb253 PyEval_EvalFrameEx + 21523
5   org.python.python             0x000cd02a PyEval_EvalCodeEx + 2042
6   org.python.python             0x000cd1b7 PyEval_EvalCode + 87
7   org.python.python             0x000f1898 PyRun_FileExFlags + 168
8   org.python.python             0x000f27c3 PyRun_SimpleFileExFlags + 867
9   org.python.python             0x0010ba58 Py_Main + 3560
10  org.python.python             0x00001fb6 0x1000 + 4022



> Ray
>
>
> On Thu, Feb 28, 2013 at 7:35 PM, Tony Yu <tsyu80 at gmail.com> wrote:
> > I'm getting segfaults when running the median filter due to the
> > SSE/MMX/Altivec speed ups for ctmf (PR #432). Here's a short snippet for
> > testing:
> >
> >
> > from skimage import data
> > from skimage.filter import median_filter
> >
> > median_filter(data.camera())
> >
> >
> > Is any one else getting a segfault? I'm running OSX 10.8 on a Intel Core
> i7
> > machine with Cython 0.16, Python 2.7.3.
> >
> > Thanks,
> > -Tony
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "scikit-image" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to scikit-image+unsubscribe at googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130301/2ebf807f/attachment.html>


More information about the scikit-image mailing list