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

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

Thread Next
From:
Jack Steadman
Date:
October 24, 2003 03:34
Subject:
RE: [perl #24255] shared hash ref memory leak in 5.8.1
Message ID:
DKENINFNLHPJPCELKLPAMEEBCJAA.perlbug@wallofcuriosities.com

> No, forks.pm _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
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/forks/shared.pm
line 352
        threads::shared::_remote('_lock','Thread::Queue=ARRAY(0x860316c)')
called at /usr/local/lib/perl5/5.8.1/Thread/Queue.pm line 89
        Thread::Queue::enqueue('Thread::Queue=ARRAY(0x860316c)','Starting SL
mail sender on mx2-out...') called at slmailsenderd.pl line 113
lock can only be used on shared values at
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/forks/shared.pm
line 352
        threads::shared::_remote('_lock','Thread::Queue=ARRAY(0x860316c)')
called at /usr/local/lib/perl5/5.8.1/Thread/Queue.pm line 75
        Thread::Queue::dequeue('Thread::Queue=ARRAY(0x860316c)') called at
threads/thread_Logging.pl line 72

main::thread_Logging('mailer-client-messages.log','Thread::Queue=ARRAY(0x860
316c)') called at
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/forks.pm line
214

threads::new('threads','thread_Logging','mailer-client-messages.log','Thread
::Queue=ARRAY(0x860316c)') called at slmailsenderd.pl line 103
lock can only be used on shared values at
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/forks/shared.pm
line 352
        threads::shared::_remote('_lock','Thread::Queue=ARRAY(0x838d684)')
called at /usr/local/lib/perl5/5.8.1/Thread/Queue.pm line 75
        Thread::Queue::dequeue('Thread::Queue=ARRAY(0x838d684)') called at
threads/thread_Logging.pl line 72

main::thread_Logging('mailer-client-mailsent.log','Thread::Queue=ARRAY(0x838
d684)',1) called at
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/forks.pm line
214

threads::new('threads','thread_Logging','mailer-client-mailsent.log','Thread
::Queue=ARRAY(0x838d684)',1) called at slmailsenderd.pl line 110

i don't know if this is an obvious problem without looking at my 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?

thanks,
jack



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About