<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Steve,<div><br></div><div>I spent some time looking into this.</div><div><br></div><div>I downloaded the latest Debian 64-bit and then updated to the sid unstable with gcc 4.7. &nbsp;I think this is the same version you are using?</div><div><br></div><div>These are the failing tests I had:</div><div><br></div><div><div>The following tests FAILED:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>508 - itkDiffusionTensor3DReconstructionImageFilterTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>885 - itkReadWriteSpatialObjectTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>886 - itkReadWriteSpatialObjectTest1 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>887 - itkReadWriteSpatialObjectTest2 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1504 - itkMeshSpatialObjectIOTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1505 - itkMeshSpatialObjectIOTest1 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1506 - itkMeshSpatialObjectIOTest2 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1924 - itkImageSpatialObjectTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1925 - itkSpatialObjectToImageStatisticsCalculatorTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1926 - itkImageMaskSpatialObjectTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1927 - itkImageMaskSpatialObjectTest2 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1928 - itkImageMaskSpatialObjectTest3 (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1931 - itkSceneSpatialObjectTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1933 - itkMetaArrowConverterTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1946 - itkArrowSpatialObjectTest (SEGFAULT)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>2124 - itkTransformsSetParametersTest (SEGFAULT)</div><div>Errors while running CTest</div></div><div><br></div><div><br></div><div>I was able to repeat many of your test failures. I then hacked and debugged the code for a little bit. I don't see anything wrong with it. Based on you experiment of mixing optimization levels and what I observed, I would tend to agree that there is likely some kind of gcc bug, perhaps in intra-unit optimization or how the data get laid out in certain circumstances.</div><div><br></div><div>The most interesting things I was able to do it the following change:</div><div><br></div><div><div>diff --git a/Modules/Core/Transform/include/itkScalableAffineTransform.h b/Modules/Core/Transform/i</div><div>index 6032127..8dbcdc4 100644</div><div>--- a/Modules/Core/Transform/include/itkScalableAffineTransform.h</div><div>+++ b/Modules/Core/Transform/include/itkScalableAffineTransform.h</div><div>@@ -166,7 +166,7 @@ private:</div><div>&nbsp; &nbsp;const Self &amp; operator=(const Self &amp;);</div><div>&nbsp;</div><div>&nbsp; &nbsp;double &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_Scale[NDimensions];</div><div>- &nbsp;InputVectorType m_MatrixScale;</div><div>+ &nbsp;InputVectorType m_MatrixScale __attribute__ ((aligned) );</div><div>&nbsp;}; //class ScalableAffineTransform</div><div>&nbsp;} &nbsp;// namespace itk</div></div><div><br></div><div><br></div><div>With this change all tests pass. Which is _really_ good to know! This mean that all these failing tests are related to this same bug. So I think I have taken this as far as it needs to... I guess I hope that a patch in gcc 4.7 will address this issue.</div><div><br></div><div><br></div><div>On another note. Have you looking at the SimpleITK project? Have you considered also packaging that for Debian distributions?</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br></div><div><br></div><div><br><div><div>On Jun 10, 2012, at 1:41 AM, Steve M. Robbins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Sun, Jun 10, 2012 at 12:03:39AM -0500, Steve M. Robbins wrote:<br><br><blockquote type="cite">Well, I spent some time looking at itkReadWriteSpatialObjectTest and<br></blockquote><blockquote type="cite">I've determined a few things.<br></blockquote> &nbsp;[...]<br><blockquote type="cite">2. It works when built using gcc 4.7 in RelWithDebInfo mode (flags -O2 -g).<br></blockquote> &nbsp;[...]<br><blockquote type="cite">4. It fails when built using gcc 4.7 with flags -O3 -g -DNDEBUG.<br></blockquote><br>One further item. &nbsp;Of the three files that make up<br>ITKIOSpatialObjectsTestDriver, as long as this one<br>is built with -O2:<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>itkPolygonGroupSpatialObjectXMLFileTest.cxx.o<br><br>I can build the other two with -O3:<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>ITKIOSpatialObjectsTestDriver.cxx.o<br><span class="Apple-tab-span" style="white-space:pre">        </span>itkReadWriteSpatialObjectTest.cxx.o<br><br>and the test completes successfully. &nbsp;This makes no sense to me<br>because itkPolygonGroupSpatialObjectXMLFileTest code is not even<br>executed when running the test in question ("ctest -R<br>itkReadWriteSpatialObjectTest").<br><br><br>-Steve<br><span>&lt;signature.asc&gt;</span>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>