#43968 [Opn->Csd]: Extending internal class causes a crash
ID: 43968
Updated by: dmitry@php.net
Reported By: mkoppanen@php.net
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Debian
PHP Version: 5.2CVS-2008-01-29 (snap)
Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-01-29 20:03:14] dmitry@php.net
The crash occurs because of GCC optimizer bug.
------------------------------------------------------------------------
[2008-01-29 17:49:07] felipe@php.net
The problem isn't with classes. Just a simple "valgrind php" show the
errors.
------------------------------------------------------------------------
[2008-01-29 17:14:42] felipe@php.net
I reproduced in 5.3 (CVS), the problem is occuring with all classes.
(not only internal)
------------------------------------------------------------------------
[2008-01-29 16:53:59] mkoppanen@php.net
Description:
------------
PHP 5.2.5 and current snapshot (php5.2-200801291330) cause a crash when
extending an internal class and terminating the script with die(); or
fatal error.
This does no happen with debug build or with USE_ZEND_ALLOC=0
Reproduce code:
---------------
class a extends arrayobject
{
}
die();
Expected result:
----------------
No output
Actual result:
--------------
/opt/php5-cvs/bin/php -r 'class a extends arrayobject {} die();'
zend_mm_heap corrupted
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43968&edit=1
Thread (5 messages)