From: funky2step at gmail dot com Operating system: RHEL ES Rel 4 (Nahant Update 6) PHP version: 5.2.6 PHP Bug Type: Streams related Bug description: apache2 reaches max clients limit with error in php_stdiop_set_option
Description: ------------ PHP is running with apache 2.2.9 (mpm=prefork) ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --with-mysql --with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --with-xsl --with-curl=/usr/include --with-curlwrappers The server reaches the maxclients limit but does not ever kill the old processes. The server does not respond to any more requests. This is not due to heavy load. GDB output shows an error in php_stdiop_set_option (see trace in actual result section) GDB output of all httpd processes attached to sockets in CLOSE_WAIT state show the same as above. Actual result: -------------- Attaching to process 14035 Reading symbols from /usr/local/apache2/bin/httpd...done. Using host libthread_db library "/lib/tls/libthread_db.so.1". Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /usr/local/apache2/lib/libaprutil-1.so.0...done. Loaded symbols for /usr/local/apache2/lib/libaprutil-1.so.0 Reading symbols from /usr/lib/libexpat.so.0...done. Loaded symbols for /usr/lib/libexpat.so.0 Reading symbols from /usr/local/apache2/lib/libapr-1.so.0...done. Loaded symbols for /usr/local/apache2/lib/libapr-1.so.0 Reading symbols from /lib/libuuid.so.1...done. Loaded symbols for /lib/libuuid.so.1 Reading symbols from /lib/tls/librt.so.1...done. Loaded symbols for /lib/tls/librt.so.1 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/tls/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread -1208387904 (LWP 14035)] Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/tls/libc.so.6...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/local/apache2/modules/libphp5.so...done. Loaded symbols for /usr/local/apache2/modules/libphp5.so Reading symbols from /usr/lib/libexslt.so.0...done. Loaded symbols for /usr/lib/libexslt.so.0 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/lib/libpng12.so.0...done. Loaded symbols for /usr/lib/libpng12.so.0 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/local/lib/libcurl.so.4...done. Loaded symbols for /usr/local/lib/libcurl.so.4 Reading symbols from /usr/lib/libxslt.so.1...done. Loaded symbols for /usr/lib/libxslt.so.1 Reading symbols from /usr/lib/libxml2.so.2...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /usr/lib/libgcrypt.so.11...done. Loaded symbols for /usr/lib/libgcrypt.so.11 Reading symbols from /usr/lib/libgpg-error.so.0...done. Loaded symbols for /usr/lib/libgpg-error.so.0 Reading symbols from /usr/lib/libidn.so.11...done. Loaded symbols for /usr/lib/libidn.so.11 Reading symbols from /usr/lib/libldap-2.2.so.7...done. Loaded symbols for /usr/lib/libldap-2.2.so.7 Reading symbols from /lib/libssl.so.4...done. Loaded symbols for /lib/libssl.so.4 Reading symbols from /lib/libcrypto.so.4...done. Loaded symbols for /lib/libcrypto.so.4 Reading symbols from /usr/lib/libgssapi_krb5.so.2...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.2 Reading symbols from /usr/lib/libkrb5.so.3...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /lib/libcom_err.so.2...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /usr/lib/libk5crypto.so.3...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /usr/lib/liblber-2.2.so.7...done. Loaded symbols for /usr/lib/liblber-2.2.so.7 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 0x00b007a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 Thread 1 (Thread -1208387904 (LWP 14035)): #0 0x00b007a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 No symbol table info available. #1 0x00bd4596 in flock () from /lib/tls/libc.so.6 No symbol table info available. #2 0x0055d18b in php_stdiop_set_option (stream=0x13, option=6, value=2, ptrparam=0x0) at /usr/local/src/php-5.2.6/main/streams/plain_wrapper.c:609 prot = Variable "prot" is not available. -- Edit bug report at http://bugs.php.net/?id=46218&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46218&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46218&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46218&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46218&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46218&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46218&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46218&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46218&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46218&r=support Expected behavior: http://bugs.php.net/fix.php?id=46218&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46218&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46218&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46218&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46218&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46218&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46218&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46218&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46218&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46218&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46218&r=mysqlcfg
