I just thought I'd share my thoughts on trying to trouble shoot this.
If you can run the camera with a "do nothing but shoot" script, as suggested above and sill see the issue, it is probably an environmental or hardware issue.
If the camera and "do nothing" script is then run in a different location, away from the potential trouble sources, and it still crashes, it may be a hardware problem.
If you have access to a 2nd camera that runs CHDK try that in the original location. This would help eliminate the hardware as the source. You can pick up an Ixus 40,50,60, 70 or similar which will run CHDK for a few bucks on ebay to test this theory.