Tim,
A segfault error could be anything to do with memory management - check your code that involves allocating and freeing memory.
In addition, consider an alternative language - PHP is great to run CGI pages but if you are running your scripts from cron, chances are you are better off using the shell, perl, or python (python is easy - I recommend it.).