php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35353 Segfault on REMOVE_POINTER_FROM_LIST with Zend Optimizer enabled
Submitted: 2005-11-23 18:05 UTC Modified: 2005-11-23 18:07 UTC
From: maddog2k at maddog2k dot net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4CVS-2005-11-23 (snap) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: maddog2k at maddog2k dot net
New email:
PHP Version: OS:

 

 [2005-11-23 18:05 UTC] 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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 18:07 UTC] johannes@php.net
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  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 13:01:32 2024 UTC