[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some memory tools and functions categorized by license.



Kan vi ikke bruge dette til programmeringsbogen?
Det er en stor samling af værktøjer til at finde fejl i
C/C++ kode.


1. OPEN-SOURCE MEMORY TOOLS
	Ref. LINUX JOURNAL ISSUE 87 JULY 2001 page 84.

1.1 LGPL
1.1.1 Libsafe
	Libsafe: Protecting Critical Elements of Stacks
	http://www.bell-labs.com/org/11356/libsafe.html
	http://www.avayalabs.com/project/libsafe/index.html
	http://www.avayalabs.com/project/libsafe/src/libsafe-2.0-5.tgz
	GNU Lesser General Public License.
1.1.2 mpatrol
	http://www.cbmamiga.demon.co.uk/mpatrol/
	GNU Library General Public License.
1.1.3 MCheck
	MCheck is a C/C++ memory  usage and malloc  checker for x86/linux.
	http://www.cs.vu.nl/~rveldema/mcheck/mcheck.html
	GNU LIBRARY GENERAL PUBLIC LICENSE

1.2 Public domain
1.2.1 LeakTracer
	LeakTracer - trace and analyze memory leaks in C++ programs
	http://www.andreasen.org/LeakTracer/
	http://www.andreasen.org/LeakTracer/LeakTracer.tar.gz
	LeakTracer is public domain (i.e. do with it whatever you feel
like).

1.3 "AS IS"
1.3.1 debauch
	http://quorum.tamu.edu/jon/gnu/
	http://quorum.tamu.edu/jon/gnu/debauch-0.6.tar.gz
	Copyright (c) 1992  X Consortium
	Permission is hereby granted, free of charge, to any person
obtaining a copy
	of this software and associated documentation files (the
"Software"), to deal
	in the Software without restriction, including without limitation
the rights
	to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell
	copies of the Software, and to permit persons to whom the Software
is
	furnished to do so, subject to the following conditions:
	The above copyright notice and this permission notice shall be
included in
	all copies or substantial portions of the Software.
	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR
	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY,
	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT
SHALL THE
	X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN
	AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
	CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
	Except as contained in this notice, the name of the X Consortium
shall not be
	used in advertising or otherwise to promote the sale, use or other
dealings
	in this Software without prior written authorization from the X
Consortium.
1.3.2 Dmalloc
	Dmalloc - Debug Malloc Library:
	http://dmalloc.com/
	1 Library Copying and Licensing Conditions
	Copyright 1992 to 2001 by Gray Watson.
	Permission to use, copy, modify, and distribute this software for
any purpose
	and without fee is hereby granted, provided that the above copyright
notice
	and this permission notice appear in all copies, and that the name
of Gray
	Watson not be used in advertising or publicity pertaining to
distribution of
	the document or software without specific, written prior permission.

	Gray Watson makes no representations about the suitability of the
software
	described herein for any purpose. It is provided "as is" without
express or
	implied warranty.
1.3.3 leak
	LEAK - Quick and dirty code to find memory leaks
	http://sources.isc.org/devel/memleak/leak.txt
	This software is provided ``as is'' without express or implied
warranty.

1.4 GPL
1.4.1 mpr
	mpr finds malloc/realloc memory leaks and memory allocation
statistics by
	using a simple, brute force strategy: log all malloc/free calls to a
file
	and post-process this log file when the program terminates. mpr
keeps track
	of the entire call chain leading up to a malloc/free call. This is
superior
	to conventional methods that keep track of only the immediate caller
using
	__FILE__ and __LINE__ pre-processor tricks.
	http://freshmeat.net/projects/mpr/
	http://www.ibiblio.org/pub/Linux/devel/lang/c/mpr-2.2.lsm
	Copying-policy: GPL+LGPL
1.4.2 Electric Fence
	http://perens.com/FreeSoftware/
	ftp://ftp.perens.com/pub/ElectricFence/
	LICENSE
       Copyright 1987-1999 Bruce Perens. All rights reserved.
       This program is free software;  you  can  redistribute  it
       and/or modify it under the terms of the GNU General Public
       License, Version 2, as  published  by  the  Free  Software
       Foundation.  A  copy  of  this license is distributed with
       this software in the file "COPYING".
       This program is distributed in the hope that  it  will  be
       useful, but WITHOUT ANY WARRANTY; without even the implied
       warranty of MERCHANTABILITY or FITNESS  FOR  A  PARTICULAR
       PURPOSE. Read the file "COPYING" for more details.
1.4.3 Checker
	http://www.gnu.org/software/checker/checker.html
	Checker is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
	General Public License for more details.
1.4.4 fda
	fda (Free Debug Allocator):
	C malloc debug library
	http://packages.debian.org/stable/devel/fda.html
	http://packages.debian.org/unstable/devel/fda.html
	Copyright (C) 1998 Thomas Helvey <tomh@inxpress.net>
	FDA is free software under the GPL, so anyone can use it
	anywhere. All I ask is that the original copyright notices not
	be removed from the files. (Bragging rights :))
1.4.5 ccmalloc
	http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/
	Distributed under GPL
1.4.6 MemProf
	MemProf - Profiling and leak detection
	http://people.redhat.com/otaylor/memprof/index.html
	Memprof is Copyright Red Hat Inc, 1999-2000, and licensed
	under the terms of the GNU General Public License.
1.4.7 YAMD
	YAMD is Yet Another Malloc Debugger.
	http://www3.hmc.edu/~neldredge/yamd/
	Released under the GNU General Public License (see the file
COPYING).

1.5 MISC OR UNKNOWN
1.5.1 Memleak
	Memleak (Part of X11R6.4):
	ftp://ftp.x.org/pub/R6.4/xc/util/memleak/
	License: ??
1.5.2 NJAMD
	NJAMD (Not Just Another Malloc Debugger):
	http://fscked.org/proj/njamd.shtml
	License: ??
1.5.3 YaMa
	YaMa - Yet another Memory allocator
	http://www.geocities.com/ipsgvm/libyama/index.html
	License: ??
1.5.4 Libcwd
	Libcwd is a full-featured debugging support library for C++
developers.
	http://libcw.sourceforge.net/debugging/
	An Object Oriented C++ library for networking applications.
	By Carlo Wood, ©1999, 2000.
1.5.5 MM
	http://www.engelschall.com/sw/mm/
	Copyright © 1999-2000 Ralf S. Engelschall, All Rights Reserved.
1.5.6 DbMalloc
	http://www.cs.bris.ac.uk/~mm7323/DbMalloc/
	License: ??
1.5.7 Memdebug
	http://www.bss.lu/Memdebug/Memdebug.html
	License: ??
1.5.8 Memwatch
	http://www.link-data.com/sourcecode.html
	License: ??

###########################################################

2. ALTERNATE MEMORY FUNCTIONS
	Ref. LINUX JOURNAL ISSUE 87 JULY 2001 page 80.

2.1 LGPL
2.1.1 GNU Malloc
	ftp://ftp.cs.colorado.edu/pub/misc/malloc-implementations/
	GNU Library General Public License
2.1.2 Hoard
	http://www.cs.utexas.edu/users/emery/hoard/
	LGPL

2.2 "AS IS"
2.2.1 Ptmalloc
	Ptmalloc (GNU C Library):
	http://www.malloc.de/en/index.html
	Copyright (c) 1999 Wolfram Gloger
	Permission to use, copy, modify, distribute, and sell this software
	and its documentation for any purpose is hereby granted without fee,
	provided that (i) the above copyright notices and this permission
	notice appear in all copies of the software and related
documentation,
	and (ii) the name of Wolfram Gloger may not be used in any
advertising
	or publicity relating to the software.
	THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
	EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
	WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
	IN NO EVENT SHALL WOLFRAM GLOGER BE LIABLE FOR ANY SPECIAL,
	INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY
	DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
	WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY
THEORY
	OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
2.2.2 Boehm Garbage Collector
	http://www.hpl.hp.com/personal/Hans_Boehm/gc/
	Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
	Copyright (c) 1991-1996 by Xerox Corporation.  All rights reserved.
	Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
	Copyright (c) 1999 by Hewlett-Packard Company. All rights reserved.
	THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY
EXPRESSED
	OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
	Permission is hereby granted to use or copy this program
	for any purpose,  provided the above notices are retained on all
copies.
	Permission to modify the code and to distribute modified code is
granted,
	provided the above notices are retained, and a notice that the code
was
	modified is included with the above copyright notice.

2.3 GNU CC General Public License
2.3.1 QuickFit Malloc
	ftp://ftp.cs.colorado.edu/pub/misc/qf.c
	GNU CC General Public License

2.4 MISC
2.4.1 CSRI
	ftp://ftp.cs.toronto.edu/pub/moraes/malloc.tar.gz
	/*
	 * Copyright University of Toronto 1988, 1989, 1993.
	 * Written by Mark Moraes
	 *
	 * Permission is granted to anyone to use this software for any
purpose on
	 * any computer system, and to alter it and redistribute it freely,
subject
	 * to the following restrictions:
	 *
	 * 1. The author and the University of Toronto are not responsible
	 *    for the consequences of use of this software, no matter how
awful,
	 *    even if they arise from flaws in it.
	 *
	 * 2. The origin of this software must not be misrepresented, either
by
	 *    explicit claim or by omission.  Since few users ever read
sources,
	 *    credits must appear in the documentation.
	 *
	 * 3. Altered versions must be plainly marked as such, and must not
be
	 *    misrepresented as being the original software.  Since few
users
	 *    ever read sources, credits must appear in the documentation.
	 *
	 * 4. This notice may not be removed or altered.
	 */
	/* This COPYRIGHT does not apply to the subdirectory splay and its
contents */
2.4.2 vmalloc
	vmalloc (Part of ast):
	http://www.research.att.com/sw/tools/vmalloc/
	http://www.research.att.com/sw/download/
	Nonexclusive Source Code License
	Accepting this nonexclusive license from AT&T Corp. will permit you
to
	download a single copy of certain source code, including
documentation, and to
	use the source code solely in accordance with the following terms
and
	conditions:
	  1.You may modify the source code to make source code derivative
works and
	    may compile the source code or the source code derivative works
to make
	    object code derivative works.
	  2.You may make and use copies of the source code and the
derivative works
	    internally as follows: a single operational copy of a single
object code
	    derivative work for internal execution for any purpose together
with any
	    copy of the operational copy made as part of the process of
executing the
	    operational copy; developmental copies as required for internal
	    development of derivative works of the source code; and other
copies as
	    required for archival purposes. You may transfer derived or
modified
	    portions of the source code only to other registered licensees.
However,
	    without executing an applicable commercial license with AT&T
Corp., no
	    part of the source code (including modifications and derivatives
thereof)
	    may be sold, offered for sale, or made accessible on a computer
network
	    external to your own or your organization's; nor may commercial
services
	    utilizing the source code (including modifications and
derivatives
	    thereof) be sold or offered for sale.
	    NO OTHER LICENSES ARE GRANTED OR IMPLIED.
	  3.In return for this license, you grant AT&T Corp. a nonexclusive
perpetual
	    paid-up license to make, use, sell, have made, copy, distribute,
and make
	    derivative works of any changes which you make in the source
code. At AT&T
	    Corp.'s request, you will provide AT&T Corp. with a copy of the
source
	    code for such changes.
	  4.AT&T Corp. has no obligation to support the source code it is
providing
	    under this license. To the extent permitted under the applicable
law,
	    AT&T Corp. is LICENSING THE SOURCE CODE "AS IS", WITH NO EXPRESS
OR
	    IMPLIED WARRANTIES OF ANY KIND, INCLUDING, BUT NOT LIMITED TO,
ANY IMPLIED
	    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
PURPOSE OR
	    WARRANTIES AGAINST INFRINGEMENT OF ANY PROPRIETARY RIGHTS OF A
THIRD PARTY
	    AND WILL NOT BE LIABLE TO YOU FOR ANY CONSEQUENTIAL, INCIDENTAL,
OR
	    SPECIAL DAMAGES OR FOR ANY CLAIM BY ANY THIRD PARTY. Under this
license,
	    the source code remains the property of AT&T Corp. and is
protected by
	    copyright law. EXCEPT AS SPECIFICALLY AUTHORIZED BY THE ABOVE
LICENSING
	    AGREEMENT, YOU MAY NOT USE, COPY OR TRANSFER THIS SOURCE CODE,
IN ANY
	    FORM, OR ANY MODIFICATION OR DERIVATIVE WORK THEREOF, IN WHOLE
OR IN PART.
	  5.AT&T Corp. may at any time assign or transfer all or part of its
interests
	    in any rights to the source code, to this license, or to the
grantback
	    license from you to an affiliated or unaffiliated company or
person.