Steve Hay wrote: [...]
to ithreads_io_n_tie.pl then I do get "Scalars leaked: 2" written to stderr.txt 4 times over.
I've reduced the registry case to the plain handler which leaks 2 scalars:
use threads; sub handler : method { # <== XXX: leaks scalar eval <<'EOI'; sub Foo::Bar::handler { local $0 = 'mememe'; # <== XXX: leaks scalar my $thr = threads->new(sub { return 1 }); $thr->join; # <== XXX: triggers scalar leak } EOI
Foo::Bar::handler();
return 0; }
$thr->join triggers both leaks, the first due to : method attribute, the second due to local $0. I wasn't successful so far to reproduce this outside mp though. I guess my next step is to mess around with gdb.
Actually it does leak outside mp (as a plain perl script), the missing part was as usual -T:
Scalars leaked: 1 leaked: sv=0x810078c flags=0x084046007 refcnt=0, Perl interpreter: 0x8099cf0
though I get only one leak on 'local $0;' not on ': method'.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
