BSD Ports

devel/p5-Devel-Leak 0.04 OpenBSD

finding memory leaks in perl XS

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

Devel::Leak has two functions NoteSV and CheckSV.

NoteSV walks the perl internal table of allocated SVs (scalar values) - (which actually contains arrays and hashes too), and records their addresses in a table. It returns a count of these "things", and stores a pointer to the table (which is obtained from the heap using malloc()) in its argument.

Note that you need a perl built with -DDEBUGGING for sv_dump() to print anything, but counts are valid in any perl.

If new "things" have been created, CheckSV may (also) report additional "things" which are allocated by the sv_dump() code.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDdevel/p5-Devel-Leak0.04 newestno data-The OpenBSD ports mailing-list <[email protected]>-
FreeBSDdevel/p5-Devel-Leak0.03_2none known-[email protected]-
NetBSDdevel/p5-Devel-Leak0.04nb9 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-Devel-Leak0.03_2none known-[email protected]-
HardenedBSDdevel/p5-Devel-Leak0.03_2no data-[email protected]-
GhostBSDdevel/p5-Devel-Leak0.03_2no data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg_add p5-Devel-Leak

From the ports tree:

cd /usr/ports/devel/p5-Devel-Leak && make install

Dependencies

No port depends on this one.