This is a discussion on Segmentation Fault within the PHP General forums, part of the PHP Programming Forums category; I am running a PHP script from the command line that is returning "Segmentation Fault". I run a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. 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? -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 jackson@coldfeetcreative.com cold feet presents Emma the world's easiest email marketing Learn more @ http://www.myemma.com |
|
|||
|
* 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." |