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

threads error: Attempt to free unreferenced scalar...

Thread Next
From:
Jerry D. Hedden
Date:
April 13, 2007 16:36
Subject:
threads error: Attempt to free unreferenced scalar...
Message ID:
1ff86f510704131059o6d1ab19aod8136865f454e8f0@mail.gmail.com
The following code snippet produces the error:


    use threads;

    sub thr
    {
        # Causes 'Attempt to free unreferenced scalar: ...' message
        threads->new($_[0]);

        # 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 Next


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