develooper Front page | perl.perl5.porters | Postings from April 2007

Re: threads error: Attempt to free unreferenced scalar...

Thread Previous
From:
Rafael Garcia-Suarez
Date:
April 14, 2007 02:24
Subject:
Re: threads error: Attempt to free unreferenced scalar...
Message ID:
b77c1dce0704140224o566dd867ocb3c1c77c5a1a14f@mail.gmail.com
On 13/04/07, Jerry D. Hedden <jdhedden@cpan.org> wrote:
> The following code snippet produces the error:
>
>
>     use threads;
>
>     sub thr
>     {
>         # Causes 'Attempt to free unreferenced scalar: ...' message
>         threads->new($_[0]);

Another symptom of the argument stack not being refcounted ?

>         # Okay - no message
>         #threads->new(shift);
>     }
>
>     thr(sub { })->join;
>
>
> Is this the same problem as
>     http://rt.perl.org/rt3/Ticket/Display.html?id=41138
> and
>     http://rt.perl.org/rt3/Ticket/Display.html?id=41816
> but in the opposite direction (leaked vs unref'ed)?
>

Thread Previous


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