Re: Segmentation Fault

From: Date: Fri, 15 Aug 2003 21:05:44 +0000
Subject: Re: Segmentation Fault
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159758@lists.php.net to get a copy of this message
* Thus wrote Jackson Miller (jackson@coldfeetcreative.com): > I am running a PHP script from the command line that is returning > "Segmentation Fault". I run a lot of script from the command line and have > never seen this before. I don't even know where to begin. http://bugs.php.net/how-to-report.php > > I know that PHP is set up to run scripts from the command line and plent of > other scripts run. > > This particular script is not doing anything out of the ordinary. It is > opening a database connection, opening a .csv file and inserting rows into > the database. How in the world could this Seg Fault? Obtain a backtrace of the program (assuming your on unix): Run gdb with php as the program: > gdb /path/to/php when the gdb prompt somes up type the word 'run' with the options and filename you would normally would pass to php: (gdb) run [options] phpfile.php Once it finishes with your crash then type 'bt': (gdb) bt To kinda understand what this all means you can read this documentation under 'Locating which function call cases fault': http://bugs.php.net/bugs-generating-backtrace.php HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#159758) next »