BSD Ports

devel/leaktracer 2.4 FreeBSD

Trace and analyze memory leaks in C++ programs

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
PD
Categories
devel
Package size
12.7 KiB, 35.8 KiB installed

Description

LeakTracer is a small tool for checking C++ programs for memory leaks. Run your program using the provided LeakCheck script. It uses the LD_PRELOAD feature to "overlay" some functions on top of your functions (no recompile needed).

LeakTracer uses gdb to print out the exact line where memory was allocated but not freed -- this means you have to free all dynamically allocated data. LeakTracer also overrides the global operator new and operator delete -- this will give problems if you override them as well.

LeakTracer traces only new/delete calls; it does not look at traditional malloc/free/realloc.

In the other systems

SystemPortVersion
FreeBSDdevel/leaktracer2.4
DragonFlydevel/leaktracer2.4
HardenedBSDdevel/leaktracer2.4
GhostBSDdevel/leaktracer2.4

Install

Binary package:

pkg install leaktracer

From the ports tree:

cd /usr/ports/devel/leaktracer/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	leaktracer>0:devel/leaktracer

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.42.42.42.42.4
FreeBSD:14:quarterly2.42.4n/a2.42.4
FreeBSD:15:latest2.42.4n/a2.42.4
FreeBSD:15:quarterly2.42.4n/an/an/a
FreeBSD:16:latest2.42.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Run dependencies 1

No port depends on this one.

Configuration

Options name: devel_leaktracer

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
gmake perl5 shebangfix
Service scripts
none

Message after installing

===>   NOTICE:

The leaktracer port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

distinfo 1
FileSizeSHA256
LeakTracer.tar.gz1055768df69e7c080f04d3c89279ad99de1e91d3584cc7365cf3987096a3bcbd32dc9
Master sites 2
  • http://www.andreasen.org/LeakTracer/
  • http://freebsd.nsu.ru/distfiles/

Commit history 0

No commits in the history this site was built from.