Professional Web Applications Themes

Segmentation Fault - PHP Development

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

  1. #1

    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
    [email]jacksoncoldfeetcreative.com[/email]


    cold feet presents Emma
    the world's easiest email marketing
    Learn more [url]http://www.myemma.com[/url]
    Jackson Miller Guest

  2. #2

    Default Re: [PHP] Segmentation Fault

    * Thus wrote Jackson Miller (jacksoncoldfeetcreative.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.
    [url]http://bugs.php.net/how-to-report.php[/url]
    >
    > 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
    doentation under 'Locating which function call cases fault':

    [url]http://bugs.php.net/bugs-generating-backtrace.php[/url]


    HTH,

    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."
    Curt Zirzow Guest

  3. #3

    Default Segmentation fault

    date command doesn't give time information but returns a
    "Segmentation fault" instead...what does this mean and
    how can fix it? Thanks in advance!

    Alex
    Alex Shi Guest

Similar Threads

  1. [PHP] Segmentation Fault
    By Jay Blanchard in forum PHP Development
    Replies: 0
    Last Post: August 15th, 06:21 PM
  2. #25045 [Opn->Bgs]: Segmentation fault
    By iliaa@php.net in forum PHP Development
    Replies: 0
    Last Post: August 11th, 09:25 PM
  3. 1.8.0 Segmentation fault
    By Graham Brooks in forum Ruby
    Replies: 0
    Last Post: July 28th, 08:07 AM
  4. #24740 [Fbk->Opn]: Segmentation fault
    By rarteaga at icaro dot com dot ec in forum PHP Development
    Replies: 0
    Last Post: July 22nd, 03:18 AM
  5. #24740 [Opn]: Segmentation fault
    By rarteaga at icaro dot com dot ec in forum PHP Development
    Replies: 0
    Last Post: July 21st, 04:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139