r67245 - in /trunk/libtext-template-perl/debian: changelog patches/ patches/memory_leak.patch patches/series

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Mon Jan 10 16:11:56 UTC 2011


Author: gregoa
Date: Mon Jan 10 16:11:38 2011
New Revision: 67245

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67245
Log:
Fix "Slow memory leak in _scrubpkg": add patch from CPAN RT#22031; thanks
to Dean Hamstead for the bug report (closes: #609528).

Added:
    trunk/libtext-template-perl/debian/patches/
    trunk/libtext-template-perl/debian/patches/memory_leak.patch
    trunk/libtext-template-perl/debian/patches/series
Modified:
    trunk/libtext-template-perl/debian/changelog

Modified: trunk/libtext-template-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-template-perl/debian/changelog?rev=67245&op=diff
==============================================================================
--- trunk/libtext-template-perl/debian/changelog (original)
+++ trunk/libtext-template-perl/debian/changelog Mon Jan 10 16:11:38 2011
@@ -10,6 +10,10 @@
 
   [ Ryan Niebur ]
   * Update ryan52's email address
+
+  [ gregor herrmann ]
+  * Fix "Slow memory leak in _scrubpkg": add patch from CPAN RT#22031; thanks
+    to Dean Hamstead for the bug report (closes: #609528).
 
  -- Ryan Niebur <ryan at debian.org>  Fri, 25 Sep 2009 00:26:47 -0700
 

Added: trunk/libtext-template-perl/debian/patches/memory_leak.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-template-perl/debian/patches/memory_leak.patch?rev=67245&op=file
==============================================================================
--- trunk/libtext-template-perl/debian/patches/memory_leak.patch (added)
+++ trunk/libtext-template-perl/debian/patches/memory_leak.patch Mon Jan 10 16:11:38 2011
@@ -1,0 +1,35 @@
+Description: In Text::Template 0.44 _scrubpkg is still causing memory leaks
+ in long running processes. The generated package is not cleared and the
+ package is not removed from the symbol table of Text::Template.
+Origin: https://rt.cpan.org/Public/Bug/Display.html?id=22031
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=22031
+Bug-Debian: http://bugs.debian.org/609528
+Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=22031
+Author: Radu Greab <radu [...] yx.ro>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2011-01-10
+
+--- a/lib/Text/Template.pm
++++ b/lib/Text/Template.pm
+@@ -428,6 +428,8 @@
+     foreach my $key (keys %$hash) {
+       undef $hash->{$key};
+     }
++    %$hash = ();
++    delete $Text::Template::{$s."::"};
+   }
+ }
+   
+--- a/t/01-basic.t
++++ b/t/01-basic.t
+@@ -245,7 +245,9 @@
+ # (31) Test _scrubpkg for leakiness
+ $Text::Template::GEN0::test = 1;
+ Text::Template::_scrubpkg('Text::Template::GEN0');
+-if ($Text::Template::GEN0::test) {
++if ($Text::Template::GEN0::test
++    || exists $Text::Template::GEN0::{test}
++    || exists $Text::Template::{'GEN0::'}) {
+   print "not ok $n\n";
+ } else {
+   print "ok $n\n";

Added: trunk/libtext-template-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-template-perl/debian/patches/series?rev=67245&op=file
==============================================================================
--- trunk/libtext-template-perl/debian/patches/series (added)
+++ trunk/libtext-template-perl/debian/patches/series Mon Jan 10 16:11:38 2011
@@ -1,0 +1,1 @@
+memory_leak.patch




More information about the Pkg-perl-cvs-commits mailing list