UUGRN

Re: Bounds-checker

From
Thimo Neubauer <tneubaue@...>
Date
On Tue, Jan 16, 2001 at 04:00:07PM +0100, Mathias Waack wrote:
> Was ich suche ist ein Tool, das
> - Zugriffe auf nichtinitialisierten Speicher,
> - Arraygrenzen,
> - Pointeroperation in Objekten auf dem Heap
> ueberwacht. Halt die Stellen, wo es zumeist schief geht.
> Ach ja, und Knackpunkt ist: es sollte plattformneutral sein. Also
> zumindest unter Solaris/Sparc sollte es laufen.

Ich habe selber noch keinen malloc-Debugger verwendet, habe aber kurz
mal mit apt-cache gesucht, was es denn da so alles gibt:

Package: fda
Description: C malloc debug library
Provides routines that can be plugged in to replace malloc(),
realloc(), calloc(), and free().
.
If you're not debugging, and an allocation fails, FDA will call user
supplied callbacks to allow you to free up some memory or shut down
the program cleanly -- this means you don't have to check the
return values from malloc if you don't want to.
.
For debugging FDA provides a nice toolkit for validating pointers,
checking for leaks, gathering memory statistics, bounds checking and
other nice things. FDA uses shredding, prefix and postfix signatures,
and a liberal amount of predicate asserts.

Package: ccmalloc
Description: A memory profiler/debugger
This is a memory profiling package. It can be used to debug various
memory allocation problems, including:
o memory leaks
o multiple deallocation of the same data
o under writes and over writes
o writes to already deallocated data

Package: electric-fence
Description: A malloc(3) debugger
Use virtual memory hardware to detect illegal memory accesses.

Package: debauch
Description: A malloc debugger
Debauch is a malloc debugger. It is based on code from "memleak" from
the XFree86 distribution, but has been significantly altered such that
a name change seemed appropriate.

Davon sollte doch einer auch unter Solaris kompilierbar sein :) Ich
hoffe, das hilft Dir irgendwie weiter.

Bis die Tage denn
Thimo

P.S.: Installier doch Linux auf der SPARC, laeuft prima, solange man
kein Coda verwendet...

--
Thimo Neubauer <thimo@...>
Debian GNU/Linux 2.2r2 released! See http://www.debian.org/ for details

Thread

In reply to: Bounds-checker Mathias Waack <mathias@...>

Follow-ups: