Re: Attempt to free unreferenced scalar in simple script

[email protected] ("Jerry D. Hedden") Tue, 26 Jun 2007 09:41:23 -0400
Newsgroups perl.ithreads
Message-ID <[email protected]>
Thomas Busch wrote:
> I'm using perl 5.8.8 and threads 1.62. The following script:
>
> #!/usr/bin/perl
>
> use threads;
> use strict;
>
> my $test = sub {
>    print("Hello, world\n");
> };
>
> my $thr = threads->create($test);
> $thr->join();
>
> produces a quite unexpected output:
>
> Hello, world
> Attempt to free unreferenced scalar: SV 0x8d3a700, Perl interpreter: 0x8c943c8
>
> Is this a bug or am I doing something wrong ?

It's a known issue, and is on the list to be looked into.