Memory leaks & memory access errors

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <Pine.GSO.4.44.0402081946200.25869-100000@scooby.simplesystems.org>
For the past couple of weeks, Glenn and I have been busy using
Valgrind (great tool!) to find memory leaks and improper accesses in
GraphicsMagick. Naturally, problems were fixed once we debugged them.
The entire GraphicsMagick test suite (except for PerlMagick) has now
been run under Valgrind.

As of this evening, Valgrind finds no memory leaks in development
GraphicsMagick 1.1.  There are uses of uninitialized data which occur
for the TIFF and XPM formats.  For TIFF, it seems that the error must
be in libtiff itself and is apparently non-fatal since the tests pass.
For XPM, it is difficult to decipher where the problem is since the
detected error occurs in the bowels of the C library, yet the results
look fine.

The most significant memory leaks we found were in the montage
functionalty.  All of the thumbnail images and the texture image were
being leaked!

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.