* Thus wrote Jackson Miller (jacksoncoldfeetcreative.com):[url]http://bugs.php.net/how-to-report.php[/url]> 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.
Obtain a backtrace of the program (assuming your on unix):>
> 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?
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':
To kinda understand what this all means you can read this
doentation under 'Locating which function call cases fault':
"I used to think I was indecisive, but now I'm not so sure."