devel/ElectricFence 2.2.2_3
Debugging malloc() that uses the VM hardware to detect buffer overruns
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- devel
- Package size
- 24.6 KiB, 75.2 KiB installed
Description
Electric Fence is a different kind of malloc() debugger. It uses the virtual memory hardware of your system to detect when software overruns the boundaries of a malloc() buffer. It will also detect any accesses of memory that has been released by free(). Because it uses the VM hardware for detection, Electric Fence stops your program on the first instruction that causes a bounds violation. It's then trivial to use a debugger to display the offending statement.
It will probably port to any ANSI/POSIX system that provides mmap(), and mprotect(), as long as mprotect() has the capability to turn off all access to a memory page, and mmap() can use /dev/zero or the MAP_ANONYMOUS flag to create virtual memory pages.
Complete information on the use of Electric Fence is in the manual page efence(3).
Install
As a binary package — by origin, or by package name:
pkg install devel/ElectricFence
pkg install electricfence
From the ports tree:
cd /usr/ports/devel/ElectricFence/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= electricfence>0:devel/ElectricFence
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.2.2_3 | 2.2.2_3 | 2.2.2_2 | 2.2.2_3 | 2.2.2_3 |
| FreeBSD:14:quarterly | 2.2.2_3 | 2.2.2_3 | n/a | 2.2.2_3 | 2.2.2_3 |
| FreeBSD:15:latest | 2.2.2_3 | 2.2.2_3 | n/a | 2.2.2_3 | 2.2.2_3 |
| FreeBSD:15:quarterly | 2.2.2_3 | 2.2.2_3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.2.2_3 | 2.2.2_3 | 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.
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ElectricFence-2.2.2.tar.gz | 28247 | e5be3a38a0d2b71ba558eb310a2db44ea6e7c208e16d4fd907dc6ed11c46b1a7 |
Master sites 1
- PACKETSTORM/UNIX/misc
Commit history 0
No commits in the history this site was built from.