Page 1 of 1

piped log program failed unexpectedly

Posted: Tue Jan 25, 2005 6:43 pm
by NoS.
Hi guys, I am currently running apache piped log to pipe to a php page,
which records data into MySQL

However, my httpd daemon sometimes stops functioning and users could not access to my pages; and i have to run apachctl start manually myself =\

The following are the only errors I notice on my error_log, hope it helps:

piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:21 2005] [notice] child pid 8748 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:22 2005] [notice] child pid 8749 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:23 2005] [notice] child pid 8750 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:24 2005] [notice] child pid 8751 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:25 2005] [notice] child pid 8752 exit signal Segmentation fault (11)


These error kept showing in error_log over and over again if I enabled piped log.


This is what I have in httpd.conf:
LogFormat "%{Referer}i" referrers
CustomLog "|/scripts/record_page.php" referrers

The php script would do the trick, records everything to MySQL nicely and stuff, but the server do crashes after couple hours. (sometimes 2 hr sometimes 20)

Can Anyone PLEASE help me on this one?

THANKS!
8O

Posted: Tue Jan 25, 2005 6:45 pm
by feyd
sounds like a large memory leak.. what modules do you have installed?

Posted: Tue Jan 25, 2005 6:47 pm
by NoS.
I done another test,

I suspect that maybe my script was not well written which caused the server to crash or something. Therefore, I commented out EVERYTHING

Code: Select all

#!/usr/local/bin/php
<?php
/*
  blah blah blah
*/
?>
My server still crashed after an hour or two.
so I don't think it's because of my script over loading the server =\

Posted: Tue Jan 25, 2005 6:51 pm
by NoS.
I didn't install lots modules
all i have installed myself is php4_module, mod_rewrite,

Posted: Tue Jan 25, 2005 8:26 pm
by NoS.
Memory leak?
What's that? what is normally the cause of that?
what would happen if i had memory leak? =\

I'm sorry but i am new to this.

your reply will be VERY appreciated

Posted: Fri Jan 28, 2005 1:19 pm
by NoS.
I've got rid of the Error message:

piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:25 2005] [notice] child pid 8752 exit signal Segmentation fault (11)

However, my httpd daemon still stops functioning after a while, Does anyone know what would be the reason? =\