|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/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
  [2005-10-20 10:56 UTC] dmitry@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
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