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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/p5-Test-Weaken | 3.022000nb14 newest | none known | - | [email protected] | 2026-07-16 |
| FreeBSD | devel/p5-Test-Weaken | 3.022000_1 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Test-Weaken | 3.022000p0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| DragonFly | devel/p5-Test-Weaken | 3.022000_1 newest | none known | - | [email protected] | - |
| MidnightBSD | devel/p5-Test-Weaken | 3.022000_1 newest | no data | - | [email protected] | - |
| HardenedBSD | devel/p5-Test-Weaken | 3.022000_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Test-Weaken | 3.022000_1 newest | no data | - | [email protected] | - |
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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 3.022000nb14 |
| NetBSD 10.1 aarch64 | 3.022000nb14 |
| SmartOS / illumos x86_64 | 3.022000nb14 |
| macOS 15 arm64 | 3.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.