[IGSTK-Developers] Sandbox dynamic memory errors

David Gobbi dgobbi at atamai.com
Tue Mar 14 14:13:06 EST 2006


Hi All,

The dynamic analysis dashboard checks for the sandbox have been showing 
errors for the last week or so.
The culprits seem to be the DICOMImageReader, the recent TimeStamp 
changes, and the View2D.
Here is a summary:

DICOMImageReader in igstkAnnotation2DTest, maybe the string isn't 
initialized:

UMC ==4273== Conditional jump or move depends on uninitialised value(s)
==4273==    at 0x891AFD0: gdcm::SerieHelper::AddFileName(std::string const&) (gdcmDocument.h:117)
==4273==    by 0x891C0FD: gdcm::SerieHelper::SetDirectory(std::string const&, bool) (stl_iterator.h:593)
==4273==    by 0x88474DF: itk::GDCMSeriesFileNames::SetInputDirectory(std::string const&) (itkGDCMSeriesFileNames.cxx:60)
==4273==    by 0x85F7B7E: igstk::DICOMImageReader::ReadDirectoryFileNamesProcessing() (igstkDICOMImageReader.txx:246)
==4273==    by 0x85F0791: igstk::DICOMImageReader::SetDirectoryNameProcessing() (igstkDICOMImageReader.txx:217)
==4273==    by 0x847114D: igstk::StateMachine >::ProcessInput(unsigned long const&) (igstkStateMachine.txx:368)
==4273==    by 0x846F9B0: igstk::StateMachine >::ProcessInputs() (igstkStateMachine.txx:298)
==4273==    by 0x846ED3E: igstk::DICOMImageReader::RequestSetDirectory(std::string const&) (igstkDICOMImageReader.txx:204)
==4273==    by 0x846D13E: igstkAnnotation2DTest(int, char**) (igstkAnnotation2DTest.cxx:61)
==4273==    by 0x83193AF: main (igstkTestMain.h:133)
==4273== 

The igstkCTImageSpatialObjectReadingAndRepresentationTest and igstkObliqueImageSpatialObjectRepresentationTest
show nearly identical errors to the above.

TimeStamp or Transform or Tracker in igstkSpatialObjectTest.  The timestamp is being set using an uninitialized variable.

UMR ==4252== Use of uninitialised value of size 8
==4252==    at 0x878977C: igstk::TimeStamp::SetStartTimeNowAndExpireAfter(double) (igstkTimeStamp.cxx:56)
==4252==    by 0x87B3AC2: igstk::Transform::SetToIdentity(double) (igstkTransform.cxx:176)
==4252==    by 0x83F676A: igstk::SpatialObjectTest::MyTracker::InternalUpdateStatus() (igstkSpatialObjectTest.cxx:116)
==4252==    by 0x8797587: igstk::Tracker::AttemptToUpdateStatusProcessing() (igstkTracker.cxx:666)
==4252==    by 0x87A2669: igstk::StateMachine::ProcessInput(unsigned long const&) (igstkStateMachine.txx:368)
==4252==    by 0x879F718: igstk::StateMachine::ProcessInputs() (igstkStateMachine.txx:298)
==4252==    by 0x87928BD: igstk::Tracker::UpdateStatus() (igstkTracker.cxx:277)
==4252==    by 0x87A818F: itk::SimpleMemberCommand::Execute(itk::Object*, itk::EventObject const&) (itkCommand.h:248)
==4252==    by 0x8A00645: itk::SubjectImplementation::InvokeEvent(itk::EventObject const&, itk::Object*) (itkSmartPointer.h:71)
==4252==    by 0x8A01668: itk::Object::InvokeEvent(itk::EventObject const&) (itkObject.cxx:450)
==4252==    by 0x874064B: igstk::PulseGenerator::EmitPulseProcessing() (igstkPulseGenerator.cxx:284)
==4252==    by 0x8747C9B: igstk::StateMachine::ProcessInput(unsigned long const&) (igstkStateMachine.txx:368)
==4252==    by 0x87458F4: igstk::StateMachine::ProcessInputs() (igstkStateMachine.txx:298)
==4252==    by 0x8740357: igstk::PulseGenerator::CallbackTimer() (igstkPulseGenerator.cxx:261)
==4252==    by 0x87400D1: igstk::PulseGenerator::CallbackTimerGlobal(void*) (igstkPulseGenerator.cxx:248)
==4252==    by 0x8740F39: igstk::PulseGenerator::InvokeTimeoutActions() (igstkPulseGenerator.cxx:422)
==4252==    by 0x8740DCB: igstk::PulseGenerator::CheckTimeouts() (igstkPulseGenerator.cxx:375)
==4252==    by 0x83F4BD8: igstkSpatialObjectTest(int, char**) (igstkSpatialObjectTest.cxx:194)
==4252==    by 0x83193AF: main (igstkTestMain.h:133)
==4252== 

View2D::PrintSelf seems to be printing an uninitialized value in igstkViewTest:

UMC ==4290== Conditional jump or move depends on uninitialised value(s)
==4290==    at 0x2932A64: std::ostreambuf_iterator > std::num_put > >::_M_convert_int(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.so.5.0.7)
==4290==    by 0x293269F: std::num_put > >::do_put(std::ostreambuf_iterator >, std::ios_base&, char, long) const (in /usr/lib/libstdc++.so.5.0.7)
==4290==    by 0x294899B: std::ostream::operator<<(long) (in /usr/lib/libstdc++.so.5.0.7)
==4290==    by 0x2948E70: std::ostream::operator<<(int) (in /usr/lib/libstdc++.so.5.0.7)
==4290==    by 0x882E32F: igstk::View2D::PrintSelf(std::ostream&, itk::Indent) const (igstkView2D.cxx:49)
==4290==    by 0x881630B: igstk::View::Print(std::ostream&, itk::Indent) const (igstkView.cxx:877)
==4290==    by 0x858D77D: igstkViewTest(int, char**) (igstkViewTest.cxx:254)
==4290==    by 0x83193AF: main (igstkTestMain.h:133)




More information about the IGSTK-Developers mailing list