I'm using PHP to write a backup script using FTP. The script connects to a server via FTP, downloads some files and tars them up. I'm getting an intermittent segmentation fault during the download process. I've never experienced a seg fault before, so I know very little about them. What's the best approach to figuring out where the problem lies? Can I trace through the code some how?