The program is around 10,000 lines and I don't know exactly which part of it is the culprit. Sometimes the problem happens twice a day. In other times, just once a week.
I thought it might be a stability issue when calling certain perl built-in functions. I'm running on Windows XP with ActivePerl 5.8.8 installed.