[Insight-developers] Memory leaks

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Jun 27 12:59:05 EDT 2005


Karthik,

	Looking at:
http://www.itk.org/Testing/Sites/Sabbath.kitware/Linux-g++-3.4-Shared/20050627-0100-Nightly/DynamicAnalysis/__Examples_Segmentation_CannySegmentationLevelSetImageFilterTest.html
MPK ==9578== 407208 bytes in 49 blocks are still reachable in loss 
record 2 of 2
==9578==    at 0x1B906727: operator new(unsigned) (vg_replace_malloc.c:132)
==9578==    by 0x1C5FFA6A: 
std::__default_alloc_template::_S_chunk_alloc(unsigned, int&) (in 
/usr/lib/libstdc++.so.5.0.7)
==9578==    by 0x1C5FF97C: 
std::__default_alloc_template::_S_refill(unsigned) (in 
/usr/lib/libstdc++.so.5.0.7)
==9578==    by 0x1C5FF677: 
std::__default_alloc_template::allocate(unsigned) (in 
/usr/lib/libstdc++.so.5.0.7)
==9578==    by 0x1BD46078: std::__simple_alloc >, 
std::__default_alloc_template >::allocate(unsigned) (stl_alloc.h:232)
==9578==    by 0x1BD4603B: std::_Rb_tree_alloc_base, std::allocator >, 
true>::_M_get_node() (stl_tree.h:564)
==9578==    by 0x1BD46006: std::_Rb_tree_base, std::allocator > 
 >::_Rb_tree_base(std::allocator > const&) (stl_tree.h:579)
==9578==    by 0x1BD45FB7: std::_Rb_tree, std::_Select1st >, std::less, 
std::allocator > >::_Rb_tree(std::less const&, std::allocator > const&) 
(stl_tree.h:730)
==9578==    by 0x1C53131C: std::map, std::allocator > >::map() 
(stl_map.h:144)



	It seems you did not defined GLIBCXX_FORCE_NEW or GLIBCPP_FORCE_NEW. 
Could you please include the ctest script you are using as a note (ctest 
-A) or post it to the list.

Thanks
Mathieu
Ref:
http://valgrind.org/docs/FAQ/faq.unexpected.html#faq.reports



Karthik Krishnan wrote:
> Sabbath submits valgrind builds.
> http://www.itk.org/Testing/Sites/Sabbath.kitware/Linux-g++-3.4-Shared/20050627-0100-Nightly/DynamicAnalysis.html 
> 
> Since the tests take a long time, its broken into 4 day cycles.
> 
> Thanks
> Regards
> Karthik
> 
> 
>> We have not had purify runs for several months. Our systems cannot 
>> complete the runs overnight. We should see how valgrind performs. I'm 
>> really uncomfortable that we are not running nightly memory tests. 
>> Dart2 may help.
>>
>> Bill
>>
>> -----Original Message-----
>> From: insight-developers-bounces+lorensen=crd.ge.com at itk.org 
>> <http://www.itk.org/mailman/listinfo/insight-developers>
>> [mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org 
>> <http://www.itk.org/mailman/listinfo/insight-developers>]On Behalf
>> Of Luis Ibanez
>> Sent: Wednesday, June 15, 2005 4:08 PM
>> To: Kent Williams
>> Cc: insight-developers at itk.org 
>> <http://www.itk.org/mailman/listinfo/insight-developers>; Mathieu 
>> Malaterre
>> Subject: Re: [Insight-developers] how to attack memory leaks
>>
>>
>>
>> Kent,
>>
>> That's great,
>>
>> Maybe we should put together a ValgridnSuppresion.supp
>> file for ITK and maintain it in the CVS repository.
>>
>> It seems that there are similar files already in CMake and
>> VTK but each one is a bit tailored to their own project.
>>
>> We could start by combining Kent's file from Brains2 and
>> the one available in GDCM in Insight/Utilities/gdcm/CMake.
>>
>>
>> Any suggestions as to where to put this file in the ITK
>> directory ?
>>
>>
>>
>>     Luis
>>
>>
>>
>>
>>
>>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
> 



More information about the Insight-developers mailing list