[Insight-users] Cannot get my head around this memory leakage

Mikael Brudfors brudfors at gmail.com
Thu Feb 13 01:35:55 EST 2014


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\h
5fl.c (201): extractBoneProbability.exe!H5FL_malloc + 0xB bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5fl.c (401): extractBoneProbability.exe!H5FL_reg_malloc + 0xE bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5pint.c (966): extractBoneProbability.exe!H5P_create_prop + 0xC bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5pint.c (1905): extractBoneProbability.exe!H5P_register_real + 0x7E bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5pocpl.c (147): extractBoneProbability.exe!H5P_ocrt_reg_prop + 0x61 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5pint.c (401): extractBoneProbability.exe!H5P_init_interface + 0x1C bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5pint.c (329): extractBoneProbability.exe!H5P_init + 0x20 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5.c (172): extractBoneProbability.exe!H5_init_library + 0x5 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\src\h
5i.c (1131): extractBoneProbability.exe!H5Iget_type + 0x20 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\s
rc\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++\s
rc\h5datatype.cpp (784): extractBoneProbability.exe!H5::DataType::close +
0x10 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\s
rc\h5datatype.cpp (809): extractBoneProbability.exe!H5::DataType::~DataType
+ 0xD bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\s
rc\h5atomtype.cpp (293): extractBoneProbability.exe!H5::AtomType::~AtomType
+ 0x37 bytes

 
c:\builds\src\insighttoolkit-4.5.0\modules\thirdparty\hdf5\src\itkhdf5\c++\s
rc\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).

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140212/baf1cca5/attachment.html>


More information about the Insight-users mailing list