ID:               43295
 Comment by:       php at high5 dot nu
 Reported By:      pioklo at serveradmin dot pl
 Status:           Open
 Bug Type:         CGI related
 Operating System: Debian 4.0 kernel 2.6.23.1
 PHP Version:      5.2.5
 New Comment:

I am also seeing problems with FastCGI and PHP-5.2.5.
FreeBSD 6.2-p8 (jail) and Lighttpd 1.4.18. No third party extensions.

[EMAIL PROTECTED]:~ # pkg_info | grep php
php5-5.2.5          PHP Scripting Language
php5-gettext-5.2.5  The gettext shared extension for php
php5-mysql-5.2.5    The mysql shared extension for php
php5-pcre-5.2.5     The pcre shared extension for php
php5-session-5.2.5  The session shared extension for php
php5-xml-5.2.5      The xml shared extension for php
php5-zlib-5.2.5     The zlib shared extension for php

>From the log file:

[Tue Nov 27 14:35:18 2007]  Script:  
'/usr/local/www/www.<site>.com/blog/wpcontent/themes/default/images/he
ader-img.php'
---------------------------------------
/var/ports/basejail/usr/ports/lang/php5/work/php-
5.2.5/main/SAPI.c(445) : Block 0x08289e30 status:
Invalid pointer: ((size=0x00000005) != (next.prev=0x5445475f))
2007-11-27 14:35:18: (mod_fastcgi.c.2462) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 96290 socket: unix:/tmp/php-
fastcgi.socket-0
2007-11-27 14:35:18: (mod_fastcgi.c.3269) response already sent out, 
but backend returned error on socket: unix:/tmp/php-fastcgi.socket-0 
for /blog/wp-content/themes/default/images/header-img.php , 
terminating connection
[Tue Nov 27 14:40:21 2007]  Script:  
'/usr/local/www/www.<site>.com/index.php'
---------------------------------------
/var/ports/basejail/usr/ports/lang/php5/work/php-
5.2.5/main/SAPI.c(445) : Block 0x08289d10 status:
Beginning:      Freed (magic=0x00000000, expected=0x99954317)
    Start:      Overflown (magic=0x00000000 instead of 0x678FA504)
                At least 4 bytes overflown
      End:      Overflown (magic=0x0000000E instead of 0x0A184C31)
                At least 4 bytes overflown
---------------------------------------


Previous Comments:
------------------------------------------------------------------------

[2007-11-26 09:28:35] [EMAIL PROTECTED]

I can confirm the last additions to this bug.

I am also on FreeBSD/AMD64, and today I started getting "zend_mm_heap
corrupted" messages. Also, PHP started to sig11 and what I did so far
was disable all modules that I do not need - doing this I got rid off
some of the obvious crashes.

This is my extension.ini
http://pastie.caboo.se/private/ytqpr1hnn0slvjsvabt70g

php -m:
http://pastie.caboo.se/private/yscuxwtkvromili7m15w


What can we do to provide more feedback?

------------------------------------------------------------------------

[2007-11-25 02:53:11] dns dot bind9 at gmail dot com

now,more error msg "
[EMAIL PROTECTED] ~#zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted
zend_mm_heap corrupted"

display on my console!

------------------------------------------------------------------------

[2007-11-23 18:53:13] f dot fenix at gmail dot com

Additional backtrace for previous comment:
(gdb) bt
#0  0x0000000000537d09 in zend_mm_check_ptr (heap=0x7bf000,
ptr=0xb29818, silent=1, __zend_filename=0x6445d8
"/usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c", __zend_lineno=445,
__zend_orig_filename=0x0,
    __zend_orig_lineno=0) at
/usr/ports/lang/php5/work/php-5.2.5/Zend/zend_alloc.c:1276
#1  0x0000000000539451 in _zend_mm_free_int (heap=0x7bf000, p=0xb29818,
__zend_filename=0x6445d8
"/usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c", __zend_lineno=445,
__zend_orig_filename=0x0,
    __zend_orig_lineno=0) at
/usr/ports/lang/php5/work/php-5.2.5/Zend/zend_alloc.c:1909
#2  0x000000000053a64c in _efree (ptr=0xb29818,
__zend_filename=0x6445d8
"/usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c", __zend_lineno=445,
__zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend_alloc.c:2277
#3  0x000000000050b99e in sapi_deactivate () at
/usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c:445
#4  0x0000000000502397 in php_request_shutdown (dummy=0x0) at
/usr/ports/lang/php5/work/php-5.2.5/main/main.c:1494
#5  0x00000000005d8771 in main (argc=3, argv=0x7fffffffea98) at
/usr/ports/lang/php5/work/php-5.2.5/sapi/cgi/cgi_main.c:1972

PS System is AMD64

------------------------------------------------------------------------

[2007-11-21 16:41:06] f dot fenix at gmail dot com

I also have such bug appeared after update to PHP 5.2.5.
System Info: FreeBSD 6.2-RELEASE-p3, nginx/0.5.32, PHP 5.2.5
# php -m
[PHP Modules]
bcmath
bz2
ctype
curl
date
dom
gd
gettext
hash
iconv
libxml
mbstring
mhash
mysql
pcre
PDO
pgsql
posix
readline
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

#gdb /usr/local/bin/php-cgi php-cgi.core
--SKIPED--
(gdb) bt
#0  0x00000000004e79cf in _zend_mm_free_int ()
#1  0x00000000004c858a in sapi_deactivate ()
#2  0x00000000004c1eea in php_request_shutdown ()
#3  0x0000000000591943 in main ()

It crashes with such baktrace on ANY script.

------------------------------------------------------------------------

[2007-11-20 10:45:19] dns dot bind9 at gmail dot com

hi,I have same problem on my update php to 5.2.5.

My System is FreeBSD 6.1 + Lighttpd 1.4.18 + php5.2.5 + php-cgi. 

[EMAIL PROTECTED] ~#/usr/local/bin/php-cgi -m
[PHP Modules]
cgi-fcgi
date
gd
iconv
libxml
mbstring
memcache
mysql
pcre
Reflection
session
standard
xml
zlib

[Zend Modules]



In Lighttpd Logs:

2007-11-20 18:25:24: (mod_fastcgi.c.2462) unexpected end-of-file
(perhaps the fastcgi process died): pid: 4823 socket:
unix:/tmp/php-fastcgi.socket-0 
2007-11-20 18:25:24: (mod_fastcgi.c.3269) response already sent out,
but backend returned error on socket: unix:/tmp/php-fastcgi.socket-0 for
/detail.php , terminating connection

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/43295

-- 
Edit this bug report at http://bugs.php.net/?id=43295&edit=1

Reply via email to