Try running your script with a non-cygwin perl.
In reply to Re^3: Crahes due to threads. by BrowserUk in thread Crahes due to threads. by jasoncollins