473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Jul 17 '05 #1
4 1518
.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
Jul 17 '05 #2

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 seesomething like:
[Tue Feb 1 21:32:40 2005] [notice] child pid 17914 exit signal Segmentationfault (11)

Is this a coding error, or is it because I use PHP 5.0.3 and it is stillbuggy?
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


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.

Jul 17 '05 #3
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

Jul 17 '05 #4
Rutger Claes wrote:
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


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

DB_Mysql_Singleton::getInstance()->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 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

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
7
by: Chad Scharf | last post by:
I have a legacy ASP application running on IIS 6.0 (Windows Server 2003 Web Edition) that is throwing an error when processesing a certain asp page that has about 200 or so include directives. ...
2
by: me.linuxadmin | last post by:
hi all ive got php-4.3.9-3 on my fedora3....tried installing phptimesheet-1.2.4.tar.gz on my system..extracted the folder to document root of apache2..all the files of the timesheet have php3...
1
by: Nurm | last post by:
We have a live webserver that is running .net 1.1 and 2.0 (mainly 1.1 websites). This morning we put a .net 2.0 test website onto the server and are getting http 404 errors. The 2 different...
7
by: michael sorens | last post by:
(1) I tried to use what seems like a standard line (from Walkthrough: Creating a Windows Service Application in the Component Designer at http://msdn2.microsoft.com/en-us/library/zt39148a.aspx): ...
0
by: prashanthdb2 | last post by:
Hi, Im new to db2. Im using db2 ese 9.1 (fix pack 1) on SLES 9.0 32 bit. I have single instance on three logical nodes 0,1,2. i have cofigured userexit - on, logretain - on, trackmod - on. ...
2
by: sareena | last post by:
There is a problem with accessing an ASP appln hosted on a dedicated Win '03 load balanced server running IIS 6.0 in worker process isolation mode. When the user types in the URl of the appln and...
1
by: srikanth raju | last post by:
Hi , Currently we are having 12 different MV's that corresponds to 5 different fact tables. out of these five tables , we have fast refresh of MV's defined for them. One of our logs for the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.