PHP :: Bug #34712 :: zend.ze1_compatibility_mode = on segfault
| Bug #34712 | zend.ze1_compatibility_mode = on segfault | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-10-03 10:05 UTC | Modified: | 2005-10-20 10:56 UTC | ||
| From: | jason at jasonjustman dot com | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Reproducible crash | ||
| PHP Version: | 5CVS-2005-10-03 (snap) | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2005-10-03 10:05 UTC] jason at jasonjustman dot com
Description:
------------
segfault in solaris 10, using php-5.0.6-dev - php5-STABLE-200510030637
Program received signal SIGSEGV, Segmentation fault.
0xff019b38 in zend_objects_clone_obj (zobject=0xff3fffd8) at /export/apache/php5-STABLE-200510030637/Zend/zend_objects.c:181
181 new_obj_val = zend_objects_new(&new_object, old_object->ce TSRMLS_CC);
(gdb) backtrace
#0 0xff019b38 in zend_objects_clone_obj (zobject=0xff3fffd8) at /export/apache/php5-STABLE-200510030637/Zend/zend_objects.c:181
#1 0xff019970 in zval_add_ref_or_clone (p=0x0) at /export/apache/php5-STABLE-200510030637/Zend/zend_objects.c:127
Reproduce code:
---------------
can't exactly pin down reproduceable code, but it seems to be something similar to the following:
class aggrevator {
function aggrevator(&$obj) {
$this->obj = &$obj;
$this->_call();
}
function _call()
{
$this->obj->callback();
}
}
class helper {
function helper(&$obj)
{
$this->obj_ref = &$obj;
}
}
class parent { }
class child extends parent {
function callback() {
$this->_helper = new helper($this);
}
}
$c = new child;
$h = new helper($c);
Expected result:
----------------
not to crash...
Actual result:
--------------
f'd in the a, segfault
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-10-03 10:29 UTC] jason at jasonjustman dot com
[2005-10-03 12:13 UTC] dmitry@php.net
[2005-10-03 18:02 UTC] jason at jasonjustman dot com
[2005-10-03 22:23 UTC] sniper@php.net
[2005-10-04 08:44 UTC] jason at jasonjustman dot com
[2005-10-04 09:18 UTC] sniper@php.net
[2005-10-18 22:16 UTC] jason at jasonjustman dot com