Keep It Simple, Stupid | |
PerlMonks |
win32 threads problemby leonidlm (Pilgrim) |
on Dec 07, 2008 at 13:06 UTC ( [id://728700]=perlquestion: print w/replies, xml ) | Need Help?? |
leonidlm has asked for the wisdom of the Perl Monks concerning the following question:
Hi All. I am writing a perl program that will read a list of configuration files in a directory and open a separate thread for each file. This thread sub will open a UDP socket, send a special message, and wait TIMEOUT time for response. After opening all the threads I am waiting to all the threaded subs to finish. Here is a snippet of the code (In which I suspect I have a problem): Unfortunately my code crashes the interpreter (in the $thread->join() call) with the error: "Free to wrong pool 1825cf0 not ff during global destruction". I read some questions related to this issues here in the forum but unfortunately couldn't find a solution. Can it be that IO::Socket::INET isn't threadsafe ? If so, what is the best way to implement that ?
Back to
Seekers of Perl Wisdom
|
|