FreeBSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.2_32.2.2_32.2.2_22.2.2_32.2.2_3
FreeBSD:14:quarterly2.2.2_32.2.2_3n/a2.2.2_32.2.2_3
FreeBSD:15:latest2.2.2_32.2.2_3n/a2.2.2_32.2.2_3
FreeBSD:15:quarterly2.2.2_32.2.2_3n/an/an/a
FreeBSD:16:latest2.2.2_32.2.2_3n/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.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The electricfence 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
ElectricFence-2.2.2.tar.gz28247e5be3a38a0d2b71ba558eb310a2db44ea6e7c208e16d4fd907dc6ed11c46b1a7
Master sites 1
  • PACKETSTORM/UNIX/misc

Commit history 0

No commits in the history this site was built from.