[Insight-developers] many new test failures, divide by 0 of m_NumberOfPixelsWithDifferences

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Feb 29 11:45:26 EST 2012


Thanks for the post... I have been checking the dashboard all morning and haven't seen this failure.

It's obvious to me, because it's my fault.

Brad

On Feb 29, 2012, at 11:42 AM, Sean McBride wrote:

> Hi all,
> 
> My dashboards with clang's 'catch undefined behaviour' flags have about 684 new test failures today.
> 
> I tried a random one in gdb and it seems to be doing an integer divide by 0.  I'm assuming they are all failing for the same reasons, but maybe not.  I haven't investigated what change caused this, hoping it'll be obvious to someone reading this post. :)
> 
> Cheers,
> 
> Sean
> 
> 
> Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
> 
> itk::Testing::ComparisonImageFilter<itk::Image<double, 6u>, itk::Image<double, 6u> >::AfterThreadedGenerateData (this=0x101dc0920) at itkTestingComparisonImageFilter.hxx:283
> 283	  m_MeanDifference = m_TotalDifference / m_NumberOfPixelsWithDifferences;
> 
> (gdb) p m_NumberOfPixelsWithDifferences
> $1 = 0
> 
> (gdb) bt
> #0  itk::Testing::ComparisonImageFilter<itk::Image<double, 6u>, itk::Image<double, 6u> >::AfterThreadedGenerateData (this=0x101dc0920) at itkTestingComparisonImageFilter.hxx:283
> #1  0x00000001001e999e in itk::ImageSource<itk::Image<double, 6u> >::GenerateData (this=0x101dc0920) at itkImageSource.hxx:279
> #2  0x0000000100e79e06 in itk::ProcessObject::UpdateOutputData (this=0x101dc0920) at /Users/builder/external/ITK/Modules/Core/Common/src/itkProcessObject.cxx:1500
> #3  0x0000000100e9adb9 in itk::DataObject::UpdateOutputData (this=0x102031e00) at /Users/builder/external/ITK/Modules/Core/Common/src/itkDataObject.cxx:434
> #4  0x000000010004703a in itk::ImageBase<6u>::UpdateOutputData (this=0x102031e00) at itkImageBase.hxx:285
> #5  0x0000000100e9a7e6 in itk::DataObject::Update (this=0x102031e00) at /Users/builder/external/ITK/Modules/Core/Common/src/itkDataObject.cxx:359
> #6  0x0000000100e7a675 in itk::ProcessObject::UpdateLargestPossibleRegion (this=0x101dc0920) at /Users/builder/external/ITK/Modules/Core/Common/src/itkProcessObject.cxx:1625
> #7  0x0000000100006908 in RegressionTestImage (testImageFilename=0x7fff5fbffb7d "/Users/builder/external/ITK-clang-dbg-x86_64-static/Testing/Temporary/RGBTestImageJPEG.tif", baselineImageFilename=0x101dbf428 "/Users/builder/external/ITK-clang-dbg-x86_64-static/ExternalData/Testing/Data/Baseline/IO/RGBTestImageJPEG.tif", reportErrors=0, intensityTolerance=2, numberOfPixelsTolerance=0, radiusTolerance=0) at itkTestDriverInclude.h:500
> #8  0x000000010000bc3f in main (ac=3, av=0x7fff5fbff980) at itkTestDriverAfterTest.inc:60
> 
> -- 
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com 
> Mac Software Developer              Montréal, Québec, Canada
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20120229/172b312a/attachment.htm>


More information about the Insight-developers mailing list