[Insight-users] itkGradientMagnitudeRecursiveGaussianImageFilter
with no input segfaults ITK
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Sun Mar 5 17:51:47 EST 2006
Charl,
Many classes are currently susceptible to produce segfault in ITK. All classes
and method names you may found in
http://voxel/darcsweb/darcsweb.cgi?r=WrapITK;a=headblob;f=/Python/Tests/returnedTypeCoverage.py
cause segfault in some conditions.
I hope fixing all those problem is the next challenge for ITK, after the
concept check revolution.
Gaetan
On Sunday 05 March 2006 23:31, Charl P. Botha wrote:
> Dear all,
>
> On ITK 2-4-1 on both Linux x86 g++ 3.4.4 (Centos 4.2) and on Windows
> XP with VS.NET 2003 build with the default wrappings, the following
> Python code generates a segfault:
>
> import InsightToolkit as itk
> g = itk.itkGradientMagnitudeRecursiveGaussianImageFilterF3F3_New()
> g.Update()
>
> *BOOM*
>
> Perhaps somebody forgot to check for input before starting processing?
> I don't have a CVS HEAD build at the moment to check if this has been
> fixed. Could anybody try to reproduce? (any language will do, just
> instantiate the filter and Update() without setting input)
>
> Backtrace on Linux is as follows:
>
> (gdb) bt
> #0 0x06b8e4e1 in
> itk::GradientMagnitudeRecursiveGaussianImageFilter<itk::Image<float,
> 3u>, itk::Image<float, 3u> >::GenerateInputRequestedRegion
> (this=0x9c48688) at
> /home/cpbotha/build/Insight/Code/Common/itkSmartPointer.h:71
> #1 0x066a4c60 in itk::ProcessObject::PropagateRequestedRegion
> (this=0x9c48688, output=0x9e1f0c8)
> at /home/cpbotha/build/Insight/Code/Common/itkProcessObject.cxx:741
> #2 0x0666c9fa in itk::DataObject::PropagateRequestedRegion
> (this=0x9e1f0c8) at
> /home/cpbotha/build/Insight/Code/Common/itkWeakPointer.h:67
> #3 0x0666bd54 in itk::DataObject::Update (this=0x9e1f0c8) at
> /home/cpbotha/build/Insight/Code/Common/itkDataObject.cxx:343
> #4 0x066a51e0 in itk::ProcessObject::Update (this=0x9c48688) at
> /home/cpbotha/build/Insight/Code/Common/itkProcessObject.cxx:554
> #5 0x06b6c1cc in
> _wrap_itkGradientMagnitudeRecursiveGaussianImageFilterF3F3_Pointer_Update
> (args=0xb7fd44ec)
> at /home/cpbotha/build/Insight/Code/Common/itkSmartPointer.h:71
> #6 0x0095b8e1 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
> #7 0x00938607 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
> #8 0x0098d968 in _PyEval_SliceIndex () from /usr/lib/libpython2.3.so.1.0
> #9 0x0099006e in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060305/ea7c7066/attachment-0001.pgp
More information about the Insight-users
mailing list