BSD Ports

devel/leaktracer 2.4 DragonFly

Trace and analyze memory leaks in C++ programs

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PD
Categories
devel
Package size
11.3 KiB, 34.7 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

The newest version among them is 2.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/leaktracer2.4 newestnone known-[email protected]-
FreeBSDdevel/leaktracer2.4 newestnone known-[email protected]-
HardenedBSDdevel/leaktracer2.4 newestno data-[email protected]-
GhostBSDdevel/leaktracer2.4 newestno data-[email protected]-

Install

Binary package:

pkg install leaktracer

From DPorts:

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

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

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