BSD Ports

devel/p5-Devel-Leak 0.03 MidnightBSD

Utility for looking for perl objects that are not reclaimed

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
2551097df1
License
artistic, gpl+
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.

CheckSV is passed argument which holds a pointer to a table created by NoteSV. It re-walks the perl-internals and calls sv_dump() for any "things" which did not exist when NoteSV was called. It returns a count of the number of "things" now allocated.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Devel-Leak0.03no data-[email protected]2026-11-13
FreeBSDdevel/p5-Devel-Leak0.03_2none known-[email protected]-
OpenBSDdevel/p5-Devel-Leak0.04 newestno data-The OpenBSD ports mailing-list <[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

Version history 1

  1. 0.03 2551097df1

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install p5-Devel-Leak

From mports:

cd /usr/mports/devel/p5-Devel-Leak && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Devel-Leak>0:devel/p5-Devel-Leak

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_ARCH%%/Devel/Leak.pm
  • %%SITE_ARCH%%/auto/Devel/Leak/Leak.so
  • %%PERL5_MAN3%%/Devel::Leak.3.gz
distinfo 1
FileSizeSHA256
Devel-Leak-0.03.tar.gz32336f42c34f11e2b4e3ea2e0e6b9416a88a685add447910caf4d91dd2c178177252
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
2551097df1 Lucas Holt devel/p5-Devel-Leak: new port
Devel::Leak provides NoteSV and CheckSV, which snapshot perl's table of allocated SVs and report the ones that were not reclaimed, to help track down memory leaks in perl code and XS modules. The port was left untracked in the x11-toolkits/p5-Tk update worktree and never committed. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>