[ITK Community] [Insight-users] Cannot get my head around this memory leakage
Bradley Lowekamp
blowekamp at mail.nih.gov
Thu Feb 13 08:17:45 EST 2014
Hello,
Those all look like HDF5 related issues.
Do you have a small test which demonstrates this leak?
It may be just that we have an older/buggy version of HDF5. There is the option to build against a system HDF5, if you can compile a newer version.
Brad
On Feb 13, 2014, at 1:35 AM, Mikael Brudfors <brudfors at gmail.com> wrote:
> Hello,
>
> I have built an application using ITK for reading Ultrasound volumes. When I use Visual Leak Detector on it, through Visual Studio 2010, it shows massive memory leaks and a huge output. Looking at the output the message below repeats for different blocks. I don't feel totally at home with construction/destruction of objects in ITK yet and I am thinking maybe it is something wrong with Visual Leak Detector. Maybe someone can clarify by looking at the below text if I have a memory leakage or not.
>
> Thank you,
>
> Mikael
>
> ---------- Block 245701 at 0x0000000007B14ED0: 88 bytes ----------
> Call Stack:
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (201): extractBoneProbability.exe!H5FL_malloc + 0xB bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5fl.c (401): extractBoneProbability.exe!H5FL_reg_malloc + 0xE bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (966): extractBoneProbability.exe!H5P_create_prop + 0xC bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (1905): extractBoneProbability.exe!H5P_register_real + 0x7E bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pocpl.c (147): extractBoneProbability.exe!H5P_ocrt_reg_prop + 0x61 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (401): extractBoneProbability.exe!H5P_init_interface + 0x1C bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5pint.c (329): extractBoneProbability.exe!H5P_init + 0x20 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5.c (172): extractBoneProbability.exe!H5_init_library + 0x5 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h5i.c (1131): extractBoneProbability.exe!H5Iget_type + 0x20 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5idcomponent.cpp (317): extractBoneProbability.exe!H5::IdComponent::p_valid_id + 0x9 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5datatype.cpp (784): extractBoneProbability.exe!H5::DataType::close + 0x10 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5datatype.cpp (809): extractBoneProbability.exe!H5::DataType::~DataType + 0xD bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5atomtype.cpp (293): extractBoneProbability.exe!H5::AtomType::~AtomType + 0x37 bytes
> c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\src\h5predtype.cpp (301): extractBoneProbability.exe!H5::PredType::~PredType + 0x37 bytes
> 0x000000003FE3EE21 (File and line number not available): extractBoneProbability.exe!`dynamic atexit destructor for 'H5::PredType::NotAtexit'' + 0x21 bytes
> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0dat.c (567): MSVCR100D.dll!doexit
> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0dat.c (394): MSVCR100D.dll!exit
> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c (568): extractBoneProbability.exe!__tmainCRTStartup
> f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crtexe.c (371): extractBoneProbability.exe!mainCRTStartup
> 0x00000000775B652D (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0xD bytes
> 0x00000000777EC541 (File and line number not available): ntdll.dll!RtlUserThreadStart + 0x21 bytes
> Data:
> F0 F1 AD 07 00 00 00 00 01 00 00 00 00 00 00 00 ........ ........
> A0 F2 AD 07 00 00 00 00 02 00 00 00 00 00 00 00 ........ ........
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
> 00 00 00 00 00 00 00 00 86 25 5A 3F 01 00 00 00 ........ .%Z?....
> 00 00 00 00 00 00 00 00 ........ ........
>
>
> Visual Leak Detector detected 1759 memory leaks (259177 bytes).
> Largest number used: 140512177 bytes.
> Total allocations: 153177251 bytes.
> Visual Leak Detector is now exiting.
> The program '[10236] extractBoneProbability.exe: Native' has exited with code 0 (0x0).
>
> _____________________________________
> 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://www.kitware.com/products/protraining.php
>
> 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-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140213/40ebaf8b/attachment-0002.html>
-------------- next part --------------
_____________________________________
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://www.kitware.com/products/protraining.php
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-users
More information about the Community
mailing list