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.

--
__________________________________________________________________
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]



Reply via email to