[p4perl] Leak in p4perl Tagged/annotate

Mats Nilsson mats.nilsson at xware.se
Mon Sep 19 01:16:33 PDT 2005


Hi

I experience a rather severe memory leak (on the client) while doing the
following. It seems to be dependent on the $p4->Tagged line. This simple
loop consumes all of my virtual memory.

use P4;
$p4 = new P4;
$p4->Tagged;
$p4->Init;
$files = "//depot/some/where/....c*";
for (1..100) {
	$res = $p4->Run("annotate", "-cq", $files);
	undef $res; # doesn't have any effect
}
$p4->Final;
undef $p4;

Can someone else confirm this behaviour?

I'm using Activestate Perl 5.8.0 (build 802) on a Windows 2000 Pro with
p4perl version p4perl58-setup-3.4804.exe against a 2005.1 perforce
server on a Windows 2003 Server.

Thanks

Mats



More information about the p4perl mailing list