From: erno dot kovacs at freemail dot hu Operating system: Debian etch, Linux 2.6 PHP version: 5.2.5 PHP Bug Type: Reproducible crash Bug description: 5.2.5 keeps crashing while 5.2.4 works fine
Description: ------------ I have used PHP 5.2.4 for a long while without any problems. Recently I upgraded to 5.2.5, and it segfaults like 15-20 times a day. Configuration is exactly the same with the two versions, no extensions loaded. I run PHP in FastCGI mode binding to a TCP socket (-b), webserver is Apache2/mod_fastcgi. I moved back to 5.2.4 so problem is gone... Reproduce code: --------------- ./configure --disable-all --prefix=/usr/local/php5 --enable-fastcgi --enable-discard-path --with-jpeg-dir --with-png-dir --with-freetype-dir --with-gd --with-mysql=/usr --with-mm --with-zlib-dir --enable-mbstring=all --with-mcrypt --with-iconv --enable-mbregex --with-gettext --enable-ctype --with-imap --with-imap-ssl --with-openssl --with-kerberos --with-mime-magic=/usr/share/file/magic.mime --with-pcre-regex --enable-mbregex --enable-xml --enable-libxml --enable-simplexml --enable-dom --enable-calendar --enable-tokenizer --enable-session --with-pear --with-tsrm-pthreads --enable-inline-optimization --enable-json --enable-short-tags Expected result: ---------------- Dec 1 16:37:07 foobar kernel: php-cgi[17725]: segfault at b514e338 eip 08214865 esp bfb7c940 error 4 Dec 1 16:37:09 foobar kernel: php-cgi[17728]: segfault at 0000000c eip 08214c27 esp bfb7c940 error 4 Dec 1 16:37:14 foobar kernel: php-cgi[17726]: segfault at b4fdc234 eip 08214865 esp bfb7c940 error 4 Dec 1 16:37:17 foobar kernel: php-cgi[28333]: segfault at b521d6c4 eip 08214865 esp bfb7c940 error 4 Actual result: -------------- I have many core files and the backtrace is the same in them: (gdb) bt #0 _zend_mm_free_int (heap=0x84fb178, p=0xb521d744) at /home/rsctm/php-5.2.5/Zend/zend_alloc.c:1914 #1 0x081f6d3b in sapi_deactivate () at /home/rsctm/php-5.2.5/main/SAPI.c:445 #2 0x081eedd5 in php_request_shutdown (dummy=0x0) at /home/rsctm/php-5.2.5/main/main.c:1494 #3 0x082a92c6 in main (argc=6, argv=0xbfb7fdc4) at /home/rsctm/php-5.2.5/sapi/cgi/cgi_main.c:1972 Unfortunately -e didnt generate any more debugging information. -- Edit bug report at http://bugs.php.net/?id=43476&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43476&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43476&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43476&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43476&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43476&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43476&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43476&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43476&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43476&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43476&r=support Expected behavior: http://bugs.php.net/fix.php?id=43476&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43476&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43476&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43476&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43476&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43476&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43476&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43476&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43476&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43476&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43476&r=mysqlcfg
