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

Weird problem with pads and perl_clone

Thread Next
From:
Arthur Bergman
Date:
April 17, 2003 09:05
Subject:
Weird problem with pads and perl_clone
Message ID:
673E12BC-70EE-11D7-8B5A-000393CB5BC4@nanisky.com
Hi,

I have been battlning two days now with this simple statement.

use threads;
async
{ sub { $foo->bar() }->();};

sleep 10;


which dumps core because bar() somehow in the cloned interpreter is 
empty, no leads on what is happening here :(, it just seems like "bar" 
is removed from the pad while other things like C<print "hi"> will work 
so the pad is cloned correctly

Arthur


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