473,231 Members | 1,687 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,231 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 1513
.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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.