ID: 24881
Comment by: takaya at po dot ntts dot co dot jp
Reported By: mitchel at sahertian dot com
Status: Bogus
Bug Type: Apache related
Operating System: Linux 2.4.21
PHP Version: 5.0.0b1 (beta1)
New Comment:
I'm having same problem.
How can I solve this problem?
There is no logs in error_log of apache.
-- config options
./configure --prefix=/usr/local/php
--with-apxs=/usr/local/apache/bin/apxs --without-tsrm-pthreads
-- linking libraries
# ldd /usr/local/apache/libexec/libphp5.so
libcrypt.so.1 => /lib/libcrypt.so.1 (0x2ac5c000)
libresolv.so.2 => /lib/libresolv.so.2 (0x2ac89000)
libm.so.6 => /lib/libm.so.6 (0x2ac99000)
libdl.so.2 => /lib/libdl.so.2 (0x2acb8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x2acbc000)
libz.so.1 => /usr/lib/libz.so.1 (0x2acd4000)
libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x2ace3000)
libc.so.6 => /lib/libc.so.6 (0x2adc3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
libpthread.so.0 => /lib/libpthread.so.0 (0x2aeaa000)
Previous Comments:
------------------------------------------------------------------------
[2003-08-18 11:44:35] [EMAIL PROTECTED]
Works fine here. Remove those CFLAGS/CXXFLAGS and it will propably work
fine for you too.
------------------------------------------------------------------------
[2003-08-18 10:25:10] greenhorn at itresolved dot net
Same thing with latest build also :(
------------------------------------------------------------------------
[2003-08-18 09:21:22] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2003-08-18 08:27:55] greenhorn at itresovled dot net
Same here...
I tryed as module and static with apache 1.3.28
Both didn't turn out to work :(
------------------------------------------------------------------------
[2003-07-31 07:27:54] mitchel at sahertian dot com
Description:
------------
# uname -s -r -m -p
Linux 2.4.21 i586 Pentium 75 - 200
# CFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer"
./configure \
--prefix=/usr/local/php5 \
--sysconfdir=/etc/php5 \
-with-apxs=/usr/sbin/apxs \
--disable-cli --disable-cgi \
--disable-ipv6 --with-openssl \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-dio \
--enable-exif \
--with-gd \
--with-mysql \
--enable-sockets \
--without-pear \
--with-config-file-path=/etc/php5/sapi
# make
# make install
//apache.conf:
//LoadModule php5_module
//AddModule mod_php5
ltrace /usr/sbin/apache -F
<snip>
strlen("/etc/apache")
= 11
strlen("/etc/apache")
= 11
strlen("/")
= 1
strlen("modules/mod_env.so")
= 18
strcpy(0x080920a8, "/etc/apache")
= 0x080920a8
strlen("/etc/apache")
= 11
strcpy(0x080920b3, "/")
= 0x080920b3
strlen("/")
= 1
strcpy(0x080920b4, "modules/mod_env.so")
= 0x080920b4
strlen("modules/mod_env.so")
= 18
dlopen("/etc/apache/modules/mod_env.so", 258
Process(es) hang(s) here
root 5120 30.2 4.9 4572 1500 ? R 19:58 6:09
/usr/sbin/apache -F
root 5358 6.3 1.6 1648 500 pts/2 S 20:04 0:54 ltrace
/usr/sbin/apache -F
root 5359 24.7 5.1 4572 1584 ? R 20:04 3:32
/usr/sbin/apache -F
Memory usage stays the same
Same without ltrace ofcourse
As soon as the AddModule line is removed/commented out, everything goes
well.
This does not happen with PHP4.
Reproduce code:
---------------
N/A
Expected result:
----------------
Stable and Resource-unintensive process :+)
Actual result:
--------------
CPU-eating process :'(
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24881&edit=1