The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Good memory leak/corruption detectors


We use an ancient version of Purify and need to upgrade to something more modern as it's running on an ancient Solaris box, but would rather not use the overly annoying modern Purify (we tried it and it's far too much of a pain to use in our test environment).

Our requirements:

o  Should run from both Linux and Windows (Linux-only is OK).
o  Should not require a GUI - detection of success and failure should be script-able using some sort of shell script/perl/whatever.
o  Should integrate easily into the build process.
o  Best if it integrates into GDB as well as Visual Studio.

We have a code-generator product and we need to run literally thousands of programs through the detector tool, so anything that needs human intervention to do anything is verboten.
Tuesday, February 15, 2005
Some guy here wrote one some years back and we use that. They say it only took him a couple days.
Sergio Espinoza
Tuesday, February 15, 2005
See the "MMGR" tool by Paul Nettle here:

This was discussed quite alot @ also when it was first released.
Wednesday, February 16, 2005

Linux x86 only, but pure software magic.
Tom Payne Send private email
Wednesday, February 16, 2005
Another vote for Valgrind (there's an older version I didn't try that can check Windows code effectively, so long as it runs under Wine)

Also DIOTA looks interesting [ ] though I haven't tried it yet.

On the windows front, you have BoundChecker and Purify. There's also Parasoft Insure, which gives the same kind of output using source transformations, so it should be os neutral.

And there's the Bound Checking GCC extension, as well as TCC's bound checking extension, which can be helpful to you.
Ori Berger Send private email
Wednesday, February 16, 2005
Also look for "Electric Fence", "MemPatrol". both are good.
Ori Berger Send private email
Wednesday, February 16, 2005
For leak detection (but not bounds checking), try the Boehm-Demers-Weiser conservative garbage collector in leak-detect mode.
David Jones Send private email
Thursday, February 17, 2005

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz