Michael Fesser wrote:
.oO(Rutger Claes)
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?
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
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
rg*@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