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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/leaktracer | 2.4 |
| DragonFly | devel/leaktracer | 2.4 |
| HardenedBSD | devel/leaktracer | 2.4 |
| GhostBSD | devel/leaktracer | 2.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 |
| FreeBSD:14:quarterly | 2.4 | 2.4 | n/a | 2.4 | 2.4 |
| FreeBSD:15:latest | 2.4 | 2.4 | n/a | 2.4 | 2.4 |
| FreeBSD:15:quarterly | 2.4 | 2.4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.4 | 2.4 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- gmake perl5 shebangfix
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| LeakTracer.tar.gz | 10557 | 68df69e7c080f04d3c89279ad99de1e91d3584cc7365cf3987096a3bcbd32dc9 |
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.