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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Devel-Leak | 0.03 | no data | - | [email protected] | 2026-11-13 |
| FreeBSD | devel/p5-Devel-Leak | 0.03_2 | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Devel-Leak | 0.04 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-Devel-Leak | 0.04nb9 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Devel-Leak | 0.03_2 | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Devel-Leak | 0.03_2 | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Devel-Leak | 0.03_2 | no data | - | [email protected] | - |
Version history 1
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
| File | Size | SHA256 |
|---|---|---|
| Devel-Leak-0.03.tar.gz | 3233 | 6f42c34f11e2b4e3ea2e0e6b9416a88a685add447910caf4d91dd2c178177252 |
Master sites 1
- CPAN
Commit history 1
| Date | Commit | Credits | Log 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]> |