[Insight-users] crashes N-D Linear Time Exact Signed Euclidean Distance Transform
Oleksandr Dzyubak
adzyubak at gmail.com
Thu May 29 17:42:25 EDT 2008
Hi Bill,
I ran valgrind on my box.
dzyubak at debian: /Images$ valgrind --tool=memcheck
./SignedMaurerDistanceMapImageFilterTest SquareBinary201.hdr test.hdr
I got several interesting results.
1) Running valgrind on an executable results in producing output image
which matches that
in the archive. This never happens if I just run an executable since a
program aborts right away.
2) Valgrind produces a huge log with errors. In the end it says:
==15656== ERROR SUMMARY: 29 errors from 7 contexts (suppressed: 69 from 1).
3) And it starts its log with as below.
==15656== Invalid write of size 8
==15656== at 0x40DF148: itk::AnalyzeImageIO::ReadImageInformation()
(in /usr/local/lib/InsightToolkit/libITKIO.so.3.7.0)
==15656== by 0x80C66A6: itk::ImageFileReader<itk::Image<int, 2>,
itk::DefaultConvertPixelTraits<int> >::GenerateOutputInformation() (in
/home/dzyubak/Test/N-D_Linear_Time_Exact_Signed_Euclidean_Distance_Transform/Images/SignedMaurerDistanceMapImageFilterTest)
Is this memory block size mismatch coming from type traits or what?
Any ideas how to treat that?
Thanks,
Alex
Bill Lorensen wrote:
> Oleksandr,
>
> If you have valgrind on your linux box, try running it. It can find
> some tricky memory problems.
>
> Bill
More information about the Insight-users
mailing list