ID: 43476 Updated by: [EMAIL PROTECTED] Reported By: erno dot kovacs at freemail dot hu -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Debian etch, Linux 2.6 PHP Version: 5.2.5 New Comment:
Please recompile with --enable-debug and try generating a backtrace then. Previous Comments: ------------------------------------------------------------------------ [2007-12-02 13:29:43] erno dot kovacs at freemail dot hu 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 this bug report at http://bugs.php.net/?id=43476&edit=1
