#35353 [Opn->Bgs]: Segfault on REMOVE_POINTER_FROM_LIST with Zend Optimizer enabled

From: Date: Wed, 23 Nov 2005 17:07:51 +0000
Subject: #35353 [Opn->Bgs]: Segfault on REMOVE_POINTER_FROM_LIST with Zend Optimizer enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88797@lists.php.net to get a copy of this message
ID: 35353 Updated by: johannes@php.net Reported By: maddog2k at maddog2k dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4CVS-2005-11-23 (snap) New Comment: Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. ask the Zend guys, this isn't PHP's problem Previous Comments: ------------------------------------------------------------------------ [2005-11-23 18:05:25] maddog2k at maddog2k dot net Description: ------------ Not sure whether this is the right place for Zend Optimizer problems, but I think it is since it's crashing from Zend/zend_alloc.c. If not, sorry for blaming it on PHP :) The problem is that Apache2 (2.0.54) childs still segfault with PHP 4CVS and PHP 5CVS, when Zend Optimizer is turned on (2.5.10a). This does not occur with PHP 4.3.xx REMOVE_POINTER_FROM_LIST(p) is 9 out of 10 times the cause of the segmentation faults, but it happens at different line numbers according to the backtraces. It looked to me like an memory-limit issue, but I compiled w/o this and it didn't make a change. Unfortunately, I haven't been able to find specific code that causes these crashes. Configure-line is pretty big, but it's a shared hosting machine in production... Configure Command => './configure' '--prefix=/usr/local/php4' '--with-apxs2=/usr/local/apache2/bin/apxs' '--disable-cgi' '--enable-safe-mode' '--with-openss l=/usr/local/ssl' '--with-pear' '--with-zlib' '--with-gettext' '--with-iconv=/usr' '--with-iconv-dir=/usr' '--enable-bcmath' '--enable-sockets' '--enable-cal endar' '--enable-mbstring=all' '--enable-mbregex' '--with-curl=/usr/local' '--enable-dba' '--enable-dbase' '--with-dom=/usr/local' '--with-dom-xslt=/usr/loca l' '--with-dom-exslt=/usr/local' '--with-xmlrpc' '--enable-ftp' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-ttf' '--with-freetype-dir=/usr' '--ena ble-gd-native-ttf' '--with-imap=../imap-2004g' '--with-imap-ssl=/usr/local/ssl' '--with-ldap' '--with-mcrypt=/usr/local' '--with-mime-magic' '--with-mhash=/u sr/local' '--with-mysql=/usr/local/mysql' '--with-pgsql=/usr/local/pgsql' '--with-pdflib=/usr/local' '--with-swf=../swf/dist/' '--enable-wddx' '--enable-xslt ' '--with-xslt-sablot=/usr/local' '--with-expat' '--with-expat-dir=/usr/local' '--enable-exif' '--with-bz2' '--with-zip' Note that it happens both in curent 5 and 4 CVS... Also, I haven't been able to find 'Zend/' on cvs.php.net Is it hidden or so ? :) Reproduce code: --------------- Unfortunately none. Actual result: -------------- (only 1 backtrace line this time :) #0 0x407ecff6 in _efree (ptr=0x83fe0b4) at /opt/install/apache-2.0.54_apache-1.3.34_php-4.4.2-RC2-dev-WideXS-03_php-5.1.0/php-4.4.2/Zend/zend_alloc.c:259 259 REMOVE_POINTER_FROM_LIST(p); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35353&edit=1

« previous php.bugs (#88797) next »