vlingvo has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I am writing fairly large program using ActiveState Perl 5.8 build 806 Win2k, and when i am trying to use threads i got this error : Free to wrong pool 15dda38 not 15d4240 during global destruction
Threads created o.k but it happens when i try to join them
i have this error and it just dies .
I have scaled down my program to provide test case to test problem.please remember this is a test case so there no much sence in it :)
Thanks
use strict; use threads; mxu_install(); sub mxu_install { my $count=0; my $kit_temp=$ARGV[0]; if(!opendir(MXU_DIR,"$kit_temp/MXU")) { print "Can't open $kit_temp/MXU: $!"; } while( defined (my $file = readdir MXU_DIR) ) { next if $file =~ /^\.\.?$/; install_mxu_comp(); return; } closedir(MXU_DIR); } sub install_mxu_comp { my $count=0; $|=1; my $thread1 = threads->new(\&blah); my $thread2=threads->new(\&blah); $thread1->join(); $thread2->join(); print "Father exiting\n"; return 0; } sub blah { print "inthread\n"; sleep(5); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: threads problem
by nite_man (Deacon) on Jul 23, 2003 at 13:53 UTC | |
by Anonymous Monk on Jul 23, 2003 at 14:26 UTC | |
|
Re: threads problem
by Anonymous Monk on Jul 23, 2003 at 14:53 UTC |