Re: Attempt to free unreferenced scalar in simple script
[email protected] ("Jerry D. Hedden") Wed, 27 Jun 2007 13:57:25 -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 ?
Jerry D. Hedden wrote:
> It's a known issue, and is on the list to be looked into.
Dave Mitchell came up with a fix for this, so this
particular bug is fixed in threads 1.63 on CPAN.