#46087 [NEW]: DOMXPath - segfault when trying to clone object
| From: | felipe@php.net | Date: | Mon, 15 Sep 2008 19:19:30 +0000 |
| Subject: | #46087 [NEW]: DOMXPath - segfault when trying to clone object | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-128998@lists.php.net to get a copy of this message | ||
From: felipe@php.net
Operating system:
PHP version: 5.3CVS-2008-09-15 (CVS)
PHP Bug Type: DOM XML related
Bug description: DOMXPath - segfault when trying to clone object
Description:
------------
See below.
Reproduce code:
---------------
<?php
$x = new domxpath(new domdocument);
clone $x;
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1228761392 (LWP 12206)]
zend_hash_destroy (ht=0x0) at /home/felipe/dev/php5/Zend/zend_hash.c:521
521 p = ht->pListHead;
(gdb) bt
#0 zend_hash_destroy (ht=0x0) at
/home/felipe/dev/php5/Zend/zend_hash.c:521
#1 0x080c5177 in dom_xpath_objects_free_storage (object=0x8a21400,
tsrm_ls=0x8871070) at /home/felipe/dev/php5/ext/dom/php_dom.c:968
#2 0x083d6379 in zend_objects_store_del_ref_by_handle_ex (handle=2,
handlers=0x8870540, tsrm_ls=0x8871070) at
/home/felipe/dev/php5/Zend/zend_objects_API.c:215
#3 0x083d63d7 in zend_objects_store_del_ref (zobject=0x8a207ec,
tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_objects_API.c:171
#4 0x083b39c9 in _zval_dtor_func (zvalue=0x8a207ec) at
/home/felipe/dev/php5/Zend/zend_variables.c:52
#5 0x083a6b59 in _zval_ptr_dtor (zval_ptr=0x8a52d20) at
/home/felipe/dev/php5/Zend/zend_variables.h:35
#6 0x083da01e in ZEND_CLONE_SPEC_CV_HANDLER (execute_data=0x8a52c40,
tsrm_ls=0x8871070) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:22416
#7 0x083d9763 in execute (op_array=0x8a20bfc, tsrm_ls=0x8871070) at
/home/felipe/dev/php5/Zend/zend_vm_execute.h:104
#8 0x083a773d in zend_eval_string (str=0xbfdeaa51 "$x = new domxpath(new
domdocument); clone $x;", retval_ptr=0x0, string_name=0x88510af "Command
line code", tsrm_ls=0x8871070)
at /home/felipe/dev/php5/Zend/zend_execute_API.c:1110
#9 0x083a78e7 in zend_eval_string_ex (str=0xbfdeaa51 "$x = new
domxpath(new domdocument); clone $x;", retval_ptr=0x0,
string_name=0x88510af "Command line code", handle_exceptions=1,
tsrm_ls=0x8871070)
--
Edit bug report at http://bugs.php.net/?id=46087&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46087&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46087&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46087&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46087&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=46087&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46087&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46087&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46087&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46087&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46087&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46087&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46087&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46087&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46087&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46087&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46087&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46087&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46087&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46087&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46087&r=mysqlcfg