Bluehost.com Web Hosting $6.95

Segmentation Fault

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-15-2003
Jackson Miller
 
Posts: n/a
Default Segmentation Fault

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
Reply With Quote
  #2 (permalink)  
Old 08-15-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] Segmentation Fault

* 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."
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0