develooper Front page | perl.perl5.porters | Postings from October 2003

RE: [perl #24255] shared hash ref memory leak in 5.8.1

Thread Previous
Elizabeth Mattijsen
October 24, 2003 05:49
RE: [perl #24255] shared hash ref memory leak in 5.8.1
Message ID:
At 13:39 -0400 10/23/03, Jack Steadman wrote:
>  > No, _does_ support the shared attribute since September 27
>>  (version  0.06 then, at 0.08 now).  So you wouldn't need to change
>  > any code at all to try it...  At least it shouldn't  ;-)
>gave forks a try (perl -Mforks -Mforks::shared) and got this:
>lock can only be used on shared values at

Argh.  The problem is that it didn't handle blessed shared references 
correctly (ref versus Scalar::Util::reftype).  This is now fixed and 
tests for excercising for Thread::Queue are now added.

>i don't know if this is an obvious problem without looking at my code,

It was not a problem with your code.

>though it seems to be choking on Thread::Queue anyway.  you mentioned that
>the latest version of forks is .08, and while the module was installed from
>CPAN about five minutes ago, i noticed that the one i got is version .07.
>could that be the problem?

0.08 was a version that was sitting in the wings still and wasn't yet 
uploaded.  It is uploaded now, with the above fixes allowing 
Thread::Queue (and any other blessed shared references) to work 
correctly.  If you can't find it on CPAN yet, you can get it here 

Sorry for the confusion.  I was under the impression that I had 
tested Thread::Queue with forks, but just hadn't gotten around to 
write a test for it.  I should've.  I've done it now.  It works   ;-)


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About