Re: Massive PerlQt memory leakage

Gary Greene <[email protected]> Wed, 6 Jul 2005 18:11:11 -0400
Newsgroups gmane.comp.kde.devel.perl
Organization Shore Line Technologies
Message-ID <[email protected]>
On Wednesday 06 July 2005 05:54 pm, Marius Kjeldahl wrote:
> Just an update; the patch certainly slowed down leakage alot, but it is
> still there. We've just completed a more or less line-for-line port to C++,
> and there we see no leakage. I would suspect more leakage in C++
> (considering explicit memory management), but so far we have no leakage in
> the C++ version. So if you are going to create long running processes using
> PerlQt, you might want to do some benchmarking yourself first.
>
> Marius K.
>
> Gary Greene wrote:
> > On Tuesday 05 July 2005 06:00 am, Marius Kjeldahl wrote:
> >>Gary Greene wrote:
> >>>I can confirm this as Germain sent me a patch for it a little over a
> >>> year ago when I packaged it for another distribution. The patch is
> >>> attached.
> >>>
> >>>
> >>>
> >>>------------------------------------------------------------------------
> >>>
> >>>--- PerlQt/Qt.xs~       2004-06-01 10:12:35.000000000 +0100
> >>>+++ PerlQt/Qt.xs        2004-06-01 10:12:35.000000000 +0100
> >>>@@ -152,6 +152,7 @@
> >>>        SvREFCNT_dec(keysv);
> >>>        return 0;
> >>>     }
> >>>+    SvREFCNT_dec(keysv);
> >>>     return *svp;
> >>> }
> >>
> >>Patch looks golden and seems to solve memory leakage at my end. I would
> >>suggest somebody with a clue puts out a new release with it included, to
> >>save others from struggling with leakage as we had to go through.
> >>Hopefully, Google will also pick this up. Not sure why I never found any
> >>references to it when I tried (and I searched a lot).
> >>
> >>Thanks,
> >>
> >>Marius K.
> >>_______________________________________________
> >>Kde-perl mailing list
> >>[email protected]
> >>https://mail.kde.org/mailman/listinfo/kde-perl
> >
> > Agreed, this should warrant at least a 3.0009 at least.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kde-perl mailing list
> > [email protected]
> > https://mail.kde.org/mailman/listinfo/kde-perl
>
> _______________________________________________
> Kde-perl mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kde-perl

Seeing as PhoeNUX OS' administration utilities and installer are all written 
in Perl Qt, we'll need to chase down this leak since we are not interested in 
porting all the utils and installer over to a compiled language due to the 
need for rapid patching of the application should the need arise. 
Additionally, Python isn't an option for us since most of the developer team 
for PhoeNUX OS do not know it and are fluent in Perl.

-- 
Gary L. Greene, Jr.
Sent from uriel.tolharadys.net
 18:07:56 up 1 day, 22:32,  3 users,  load average: 0.78, 0.54, 0.44
 
============================================================
Developer and Project Lead for PhoeNUX OS.
 check out http://www.phoenuxos.com/ for more info.
EMAIL : [email protected]
============================================================

_______________________________________________
Kde-perl mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-perl
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCzFcE+psNrGG9CbMRAsdxAKDPCWxejP6meAvo5PWB/540Awa8SgCffABY
ju+VaSYR1m9dE42HTsxDfUQ=
=X7/j
-----END PGP SIGNATURE-----