develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [perl #117885] perlbug AutoReply: double free or corruption inthread->join

From:
=?iso-8859-1?b?Q/RtZQ==?= BERNIGAUD
Date:
May 6, 2013 18:41
Subject:
Re: [perl #117885] perlbug AutoReply: double free or corruption inthread->join
Message ID:
5187ACF5.2020701@opensides.be
I manage to reduce the minimal code to reproduce the error to this:

use threads;
use POE qw( Pipe::OneWay );

my ($pipe_in, $pipe_out) = POE::Pipe::OneWay->new("pipe");
die "Unable to create pipe"
unless defined $pipe_in and defined $pipe_out;

threads->create(
   sub {
     my ($pipe_fd) = @_;
     IO::Handle->new_from_fd($pipe_fd, "a") or die $!;
   },
   fileno($pipe_out)
)->join;



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