BSD Ports

devel/p5-Test-Weaken 3.022000nb14 NetBSD

Test that freed memory objects were, indeed, freed

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
25.4 KiB, 107.2 KiB installed

Description

Test::Weaken helps detect unfreed Perl data in arrays, hashes, scalars, objects, etc, by descending recursively through structures and watching that everything is freed. Unfreed data is a useless overhead and may cause an application to abend due to lack of memory.

Normally if the last reference to something is discarded then it and anything in it is freed automatically. But this might not occur due to circular references, unexpected global variables or closures, or reference counting mistakes in XSUBs.

Test::Weaken is named for the strategy used to detect leaks. References are taken to the test objects and all their contents, then those references are weakened and expected to be then freed.

There's options to ignore intentional globals, or include extra associated data held elsewhere, or invoke an explicit destructor. Unfreed parts are reported and can be passed to other modules such as Devel::FindRef to try to discover why they weren't freed.

Test::Weaken examines structures to an unlimited depth and is safe on circular structures.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/p5-Test-Weaken3.022000nb14 newestnone known-[email protected]2026-07-16
FreeBSDdevel/p5-Test-Weaken3.022000_1 newestnone known-[email protected]-
OpenBSDdevel/p5-Test-Weaken3.022000p0 newestno data-The OpenBSD ports mailing-list <[email protected]>-
DragonFlydevel/p5-Test-Weaken3.022000_1 newestnone known-[email protected]-
MidnightBSDdevel/p5-Test-Weaken3.022000_1 newestno data-[email protected]-
HardenedBSDdevel/p5-Test-Weaken3.022000_1 newestno data-[email protected]-
GhostBSDdevel/p5-Test-Weaken3.022000_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkgin install p5-Test-Weaken

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Test-Weaken && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_643.022000nb14
NetBSD 10.1 aarch643.022000nb14
SmartOS / illumos x86_643.022000nb14
macOS 15 arm643.022000nb14

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0