+ All Categories
Home > Documents > ITK/GDCM Memory Leak

ITK/GDCM Memory Leak

Date post: 19-Mar-2016
Category:
Upload: lyndon
View: 50 times
Download: 1 times
Share this document with a friend
Description:
Jon Zolla ([email protected]) Open Source Software, Group 10 December 4, 2008. ITK/GDCM Memory Leak. Overview. ITK/DICOM/GDCM overview Goals Tools Process Bug Details Results What I Learned. ITK. Image Segmentation and Registration toolkit BSD Licensed - PowerPoint PPT Presentation
Popular Tags:
16
ITK/GDCM Memory Leak Jon Zolla ([email protected]) Open Source Software, Group 10 December 4, 2008
Transcript
Page 1: ITK/GDCM Memory Leak

ITK/GDCM Memory Leak

Jon Zolla ([email protected])Open Source Software, Group 10

December 4, 2008

Page 2: ITK/GDCM Memory Leak

Overview ITK/DICOM/GDCM overview Goals Tools Process Bug Details Results What I Learned

Page 3: ITK/GDCM Memory Leak

ITK

Image Segmentation and Registration toolkit BSD Licensed We've heard a lot about this one already...

Page 4: ITK/GDCM Memory Leak

DICOM

Digital Imaging and Communications in Medicine

Standard for storage/transmission/etc. Of medical images

Both a file format and network protocol Extremely widespread usage

Page 5: ITK/GDCM Memory Leak

GDCM

Grassroots DICOM Originally named Gnu DiCoM

Open source cross platform library for DICOM files

BSD Licensed C++ Bundled inside of ITK

Page 6: ITK/GDCM Memory Leak

Goals

Fix memory leak in GDCM Specifically the version utilized by ITK

Occurred during loading of DICOM files

Page 7: ITK/GDCM Memory Leak

Valgrind

Tool for memory leak detection, profiling, etc. Generic framework for dynamic analysis tools

This project utilized memory leak detection (Memcheck)

Can be used on any executable Greatly degrades performance Quick Demo

Page 8: ITK/GDCM Memory Leak

Process

Obtain/build ITK Source Find GDCM source Use Valgrind to find memory leak Investigate code to find source of leak Fix leak and contribute back

Page 9: ITK/GDCM Memory Leak

Bug Details Valgrind Output

Page 10: ITK/GDCM Memory Leak

Bug Details Valgrind Output

Page 11: ITK/GDCM Memory Leak

Bug Details DocEntrySet::NewSeqEntry

Page 12: ITK/GDCM Memory Leak

Bug Details Document::ParseDES

Page 13: ITK/GDCM Memory Leak

Bug Details Document::ParseDES

Page 14: ITK/GDCM Memory Leak

Bug Details ElementSet::RemoveEntry

Page 15: ITK/GDCM Memory Leak

Results

Sucessfully fixed the issue Problem already solved

Discovered after a CVS update Traced back to a bug online

http://www.itk.org/Bug/view.php?id=7004 Bug submitted 5/13, with proposed fix

Page 16: ITK/GDCM Memory Leak

What I Learned

Valgrind is really cool How to use Cmake Got acquainted with large open source project Communicate with project developers before

contributing Mailing lists, etc.


Recommended