php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24881 Apache hangs when mod_php5 is active
Submitted: 2003-07-31 07:27 UTC Modified: 2003-08-18 11:44 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: mitchel at sahertian dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.0.0b1 (beta1) OS: Linux 2.4.21
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mitchel at sahertian dot com
New email:
PHP Version: OS:

 

 [2003-07-31 07:27 UTC] 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 :'(

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-18 08:27 UTC] 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-08-18 09:21 UTC] sniper@php.net
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 10:25 UTC] greenhorn at itresolved dot net
Same thing with latest build also :(
 [2003-08-18 11:44 UTC] sniper@php.net
Works fine here. Remove those CFLAGS/CXXFLAGS and it will propably work fine for you too.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 03:01:26 2025 UTC