Download Run-time Error Detecting Systems

Transcript
C.8 ZeroFault, by The Kernel Group
http://www.zerofault.com/
General Information
ZeroFault is a commercial product from The Kernel Group that finds memory errors in Fortran, C
and C++ programs. However, this product currently only runs on IBM’s AIX machines. It detects
the following run-time errors:
• memory leaks
• reads or writes of unallocated stack, heap, and static memory
• reads of uninitialized stack, heap, and static memory
• reads or writes of freed heap memory
• attempts to free or realloc unallocated memory
• invalid arguments passed to system calls and common functions
Languages Supported: Fortran, C, and C++.
Platforms supported: AIX
III.2 Non-Commercial Software
NC.1 Ccmalloc, by Armin Biere
http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/
General Information
This non-commerial software has been developed to detect memory leaks for C and C++ programs.
The documentation on its web site states: “It does not replace more sophisticated tools such as
purify or valgrind, since it can not detect illegal memory reads, at least not all type of memory
reads.” Ccmalloc does not require recompiling since it links with the executable. The generated
log files can be very large. Distributed with a GPL (General Public License –
http://www.gnu.org/licenses/gpl.txt) so source code is freely available. Ccmalloc finds the
following run-time errors:
• memory leaks
• multiple deallocation of the same data
• under writes and over writes
• writes to already deallocated data
Languages Supported: C and C++
Platforms supported: Linux, Solaris, FreeBSD
NC.2 CSRI UToronto Malloc, by Mark Moraes
ftp://ftp.cs.toronto.edu/pub/moraes/malloc.tar.gz, Mark Moraes, moraes@deshaw.com.
General Information
This is free software to detect the run-time errors listed below for C programs. It is written in
ANSI C so it should run on any platform with a C compiler that supports ANSI C. For more
information, see http://www.cs.colorado.edu/~zorn/Malloc.html#csrimalloc . The following errors
are detected:
• memory leaks
• heap corruption
Languages Supported: C
10