|how does purify work? email@example.com (2000-08-04)|
|Re: how does purify work? firstname.lastname@example.org (Ben Pfaff) (2000-08-05)|
|Re: how does purify work? email@example.com (Chris F Clark) (2000-08-05)|
|Re: how does purify work? firstname.lastname@example.org (2000-08-05)|
|Re: how does purify work? Martin.Raabe@WindRiver.com (Martin Raabe) (2000-08-05)|
|Re: how does purify work? email@example.com (2000-08-05)|
|Re: how does purify work? firstname.lastname@example.org (2000-08-10)|
|Re: how does purify work? email@example.com (Venkatesha Murthy G.) (2000-08-10)|
|Re: how does purify work? firstname.lastname@example.org (Chris F Clark) (2000-08-13)|
|From:||"Venkatesha Murthy G." <email@example.com>|
|Date:||10 Aug 2000 00:07:43 -0400|
> Once upon a time Purify did work for vxworks. It would be a very nice
> tool to have and it seems very odd that there's no product with
> equivalent functionality.
Chaperon is a commercial tool that claims to do a lot of what purify
does. There are other, free, tools that provide a subset of purify
functionality, like leak detection and array bound write
detection. Check http://www.hotfeet.ch/~gemi/LDT/tools_deb.html for
what's available for Linux; they are available in source and some have
been ported to other flavors of Unix also.
Chris F Clark replied:
> There are (at least) 5 ways to implement Purify like tools
If the intent is to catch leaks, there is one more way - provide an
implementation of malloc etc that audits allocations, and fool the
program into using this version of malloc. In a shared library
scenario, preloading the library is all it takes. The library can
report the chunks of memory allocated but not free'd at program exit,
i.e leaks. No recompilation is required, no instrumentation performed.
debauch uses this approach.
ElectricFence is a malloc implementation that catches array bound
Yours truly has written a malloc implementation (libYaMa) that tracks
allocations and releases, and arranges to detect accesses to beyond
allocated memory and to free'd memory, and free and realloc to invalid
pointers; and leaktrac, a leak tracker that uses an underlying malloc
implementation to get the memory, but adds the book keeping layer on
top. Both are shared libraries that can be preloaded to hide the
"default" malloc implementation.
Venkatesha Murthy G.
Return to the
Search the comp.compilers archives again.