ID: 11676
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: linux 2.4.5 i386
PHP Version: 4.0 Latest CVS (2001-06-25)
Description: A few apache children consume all memory and CPU.

Here it is:
CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro 
-march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
./configure \
--with-apache=../apache_1.3.20 \
--with-mysql \
--disable-debug \
--with-gnu-ld \
--enable-memory-limit \
--enable-inline-optimization

I don't remember exactly, but i think i had tried removing ALL gcc optimization 
options, with the same results...
During another crash (pre-crash actually :) i managed to backtrace a httpd which had 
this stack:

#0  0x4012c238 in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fb8f2 in _efree ()

The other httpd i backtraced had all the stack like this:

#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()

Hope this helps...

Previous Comments:
---------------------------------------------------------------------------

[2001-06-27 11:57:34] [EMAIL PROTECTED]
what was the configure line used to configure PHP ?


---------------------------------------------------------------------------

[2001-06-26 14:32:38] [EMAIL PROTECTED]
Ignore the last comment, wrong bug report :)

---------------------------------------------------------------------------

[2001-06-26 14:31:52] [EMAIL PROTECTED]
Output buffering indeed cannot be used inside output handler functions.  However, the 
code that handled that error situation contained a bug that caused PHP to enter an 
infinite loop.  This bug is now fixed (although the limitation of not being able to 
use output buffering inside output handlers still applies)

---------------------------------------------------------------------------

[2001-06-26 07:32:26] [EMAIL PROTECTED]
Well, the problem is that we have many virtual hosts on that server, each using it's 
own log file...
I can confirm that the gdb trace for ALL the many dead process, which are in running 
state, gives the three lines:
#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()
(it happened this morning too)

Is there some way to know which script was executing just before the child died, 
please tell me! 

---------------------------------------------------------------------------

[2001-06-26 07:04:06] [EMAIL PROTECTED]
It would help a lot to track this down if you could find
out if this happens by running some script.


---------------------------------------------------------------------------

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11676


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to