Getting php error logs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rutger Claes

    Getting php error logs

    While developing a website, there is always a point at which I get
    "Connection to localhost is lost". If take a look at my server logs I see
    something like:
    [Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal Segmentation
    fault (11)

    Is this a coding error, or is it because I use PHP 5.0.3 and it is still
    buggy?

    How do I get more information about these Sementation faults ?

    Ruter
    --
    Rutger Claes rgc@rgc.tld
    Replace tld with top level domain of belgium to contact me pgp:0x3B7D6BD6
    Do not reply to the from address. It's read by /dev/null and sa-learn only

  • Michael Fesser

    #2
    Re: Getting php error logs

    .oO(Rutger Claes)
    [color=blue]
    >While developing a website, there is always a point at which I get
    >"Connection to localhost is lost". If take a look at my server logs I see
    >something like:
    >[Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal Segmentation
    >fault (11)
    >
    >Is this a coding error, or is it because I use PHP 5.0.3 and it is still
    >buggy?[/color]

    A segfault should never occur. It's quite possible that it's a bug in
    PHP. Did you try with another version? What code does cause the error?

    Micha

    Comment

    • gevery@gmail.com

      #3
      Re: Getting php error logs


      Michael Fesser wrote:[color=blue]
      > .oO(Rutger Claes)
      >[color=green]
      > >While developing a website, there is always a point at which I get
      > >"Connection to localhost is lost". If take a look at my server logs[/color][/color]
      I see[color=blue][color=green]
      > >something like:
      > >[Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal[/color][/color]
      Segmentation[color=blue][color=green]
      > >fault (11)
      > >
      > >Is this a coding error, or is it because I use PHP 5.0.3 and it is[/color][/color]
      still[color=blue][color=green]
      > >buggy?[/color]
      >
      > A segfault should never occur. It's quite possible that it's a bug in
      > PHP. Did you try with another version? What code does cause the[/color]
      error?[color=blue]
      >
      > Micha[/color]

      I've noticed segfaults in the command line php only. We've been using
      5.0.3 since it was released, and have seen no segfaults on the mod_php
      portion of the release.

      Comment

      • Rutger Claes

        #4
        Re: Getting php error logs

        Michael Fesser wrote:
        [color=blue]
        > .oO(Rutger Claes)
        >[color=green]
        >>While developing a website, there is always a point at which I get
        >>"Connection to localhost is lost". If take a look at my server logs I see
        >>something like:
        >>[Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal
        >>[Segmentation
        >>fault (11)
        >>
        >>Is this a coding error, or is it because I use PHP 5.0.3 and it is still
        >>buggy?[/color]
        >
        > A segfault should never occur. It's quite possible that it's a bug in
        > PHP. Did you try with another version? What code does cause the error?
        >
        > Micha[/color]

        My segfaults always occur at the end of the code excecution. I use an xsl
        transformation at the end, stop the output buffer and print the content. I
        get all my content, so it works till the print command. I've commented out
        all lines after that and still manage to get the segfault.

        This happened before, it was an error in the __destructor() of my database
        object. If you get an error/exception there things tend to go wrong...
        A recursive __destructor for a bidirectional relationship has caused it as
        well.

        I'm checking my __destructors.. .

        So I can't really give you any code, because I don't know where the error
        starts :-(

        Is there any way to get some output in a log? Setting the apache log level
        to debug doesn't help :-(

        I'm running PHP 5.0.3 as an Apache 1.3 module...

        Rutger
        --
        Rutger Claes rgc@rgc.tld
        Replace tld with top level domain of belgium to contact me pgp:0x3B7D6BD6
        Do not reply to the from address. It's read by /dev/null and sa-learn only

        Comment

        • Rutger Claes

          #5
          Re: Getting php error logs

          Rutger Claes wrote:
          [color=blue]
          > Michael Fesser wrote:
          >[color=green]
          >> .oO(Rutger Claes)
          >>[color=darkred]
          >>>While developing a website, there is always a point at which I get
          >>>"Connectio n to localhost is lost". If take a look at my server logs I
          >>>see something like:
          >>>[Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal
          >>>[Segmentation
          >>>fault (11)
          >>>
          >>>Is this a coding error, or is it because I use PHP 5.0.3 and it is still
          >>>buggy?[/color]
          >>
          >> A segfault should never occur. It's quite possible that it's a bug in
          >> PHP. Did you try with another version? What code does cause the error?
          >>
          >> Micha[/color]
          >
          > My segfaults always occur at the end of the code excecution. I use an xsl
          > transformation at the end, stop the output buffer and print the content.
          > I
          > get all my content, so it works till the print command. I've commented
          > out all lines after that and still manage to get the segfault.
          >
          > This happened before, it was an error in the __destructor() of my database
          > object. If you get an error/exception there things tend to go wrong...
          > A recursive __destructor for a bidirectional relationship has caused it as
          > well.
          >
          > I'm checking my __destructors.. .
          >
          > So I can't really give you any code, because I don't know where the error
          > starts :-(
          >
          > Is there any way to get some output in a log? Setting the apache log
          > level to debug doesn't help :-(
          >
          > I'm running PHP 5.0.3 as an Apache 1.3 module...
          >
          > Rutger[/color]

          I've found the error, Seems you can't do anything like:

          DB_Mysql_Single ton::getInstanc e()->prepare( $sql )->execute( $_SERVER['PHP_SELF'] )

          to update the log at the very and of a visit... I thought this was allowed
          in PHP5? Anyway, the query get's through. That's the reason I didn't find
          the error. I'm still thinking it has something to do with the destructor
          of any of the objects in this command...

          Rutger
          --
          Rutger Claes rgc@rgc.tld
          Replace tld with top level domain of belgium to contact me pgp:0x3B7D6BD6
          Do not reply to the from address. It's read by /dev/null and sa-learn only

          Comment

          Working...