#24881 [NEW]: Apache hangs when mod_php5 is active

From: Date: Thu, 31 Jul 2003 12:27:54 +0000
Subject: #24881 [NEW]: Apache hangs when mod_php5 is active
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45104@lists.php.net to get a copy of this message
From: mitchel at sahertian dot com Operating system: Linux 2.4.21 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Apache related Bug description: Apache hangs when mod_php5 is active 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 bug report at http://bugs.php.net/?id=24881&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24881&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24881&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24881&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24881&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24881&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24881&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24881&r=support Expected behavior: http://bugs.php.net/fix.php?id=24881&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24881&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24881&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24881&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24881&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24881&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24881&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24881&r=gnused

« previous php.bugs (#45104) next »