in reply to Re: Re: Re: Re: Threads problem.
in thread Threads problem.

Despite my best efforts, I can't locate the patch that fixed the "Free to wrong pool" error during thread cleanup. I found this reference plus some others, but not the patch. I find it pretty difficult to find anything on the myriad perl.org lists, archives, news feeds and RT system. Maybe I just go about it the wrong way?

Anyway, you can work around the problem by replacing the line

$_->join for @threads;

with

use POSIX qw[_exit]; _exit 0;

This simply bypasses the thread cleanup code in perl and leaves the OS to clean up the mess, which it does without the associated message and segfault.

You could also upgrade to 5.8.1 but that means building perl, plus Win32::OLE yourself which is non-trivial, and the _exit() "fix" is simple and effective.

HTH.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Threads problem.
by Anonymous Monk on Oct 12, 2003 at 10:26 UTC
    HHHHOOOOOO WWWWWEEEEEEE....This mother of a code is SMOKIN!

    Thanks alot BrowserUK my friend,....I try few things with this beautiful code and get back with my findings.

    :DDDDDDDDDD