Bug #60536 [Ana->Csd]: Traits Segfault
| From: | laruence@php.net | Date: | Fri, 16 Dec 2011 19:03:04 +0000 |
| Subject: | Bug #60536 [Ana->Csd]: Traits Segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165923@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60536&edit=1
ID: 60536
Updated by: laruence@php.net
Reported by: scottmac@php.net
Summary: Traits Segfault
-Status: Analyzed
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: ubuntu 11.11
PHP Version: 5.4SVN-2011-12-15 (SVN)
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
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/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-12-16 19:02:31] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&revision=321073
Log: Fixed bug #60536 (Traits Segfault)
# this is a tough one, I think I should explain
# Zend use zend_object->properties_table both as zval ** and zval ***
# if a zend_object->properties is not initialized, the properties_table is zval **
# while in rebuild_object_properties, zend will store the zval ** to zend_object->properties
# then stash the zval ***(ie, zobj->properties_table[0] is zval ** now) to
zobj->properties_table[0]
# so when a zend_object inherit form multi parent and these parent have a same
property_info->offset
# properties, will result in a repeat zval **->zval ** transform, which will lead to a
segmentfault
# *may be* this fix is not the best fix, we should not use this tricky way, and rewrite this
mechanism.
------------------------------------------------------------------------
[2011-12-16 18:43:37] laruence@php.net
I hava another fix for this. I am going to ci it.
------------------------------------------------------------------------
[2011-12-16 16:47:05] gron@php.net
property008.phpt demonstrates the actual issue.
------------------------------------------------------------------------
[2011-12-16 16:46:41] gron@php.net
The following patch has been added/updated:
Patch Name: property008.phpt
Revision: 1324054001
URL: https://bugs.php.net/patch-display.php?bug=60536&patch=property008.phpt&revision=1324054001
------------------------------------------------------------------------
[2011-12-16 16:19:39] gron@php.net
The following patch has been added/updated:
Patch Name: property007.phpt
Revision: 1324052379
URL: https://bugs.php.net/patch-display.php?bug=60536&patch=property007.phpt&revision=1324052379
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=60536
--
Edit this bug report at https://bugs.php.net/bug.php?id=60536&edit=1