in reply to Perl crashes linux

Another possible reason is hardware exhausting program.
If this is the problem you can limit hardware resources usage with
/etc/security/limits.conf. This is only possible if the program is not running
with effctive user root.