#33431 [Asn->Fbk]: test ext/dom/tests/dom001.phpt fails (because of segfault)

From: Date: Fri, 24 Jun 2005 00:20:28 +0000
Subject: #33431 [Asn->Fbk]: test ext/dom/tests/dom001.phpt fails (because of segfault)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80936@lists.php.net to get a copy of this message
ID: 33431 Updated by: rrichards@php.net Reported By: sniper@php.net -Status: Assigned +Status: Feedback Bug Type: DOM XML related Operating System: Linux (FC4 x86_64) PHP Version: 5CVS-2005-06-23 Assigned To: rrichards New Comment: Was it a fresh/clean build? if so, can you try the following and add your configure? $dom = DOMDocument::loadXML('<root a="1" b="2" />'); $atts = $dom->documentElement->attributes; var_dump($atts->item(0)); var_dump($atts->item(0)->nodeName); Previous Comments: ------------------------------------------------------------------------ [2005-06-23 13:00:37] sniper@php.net Still crashes with latest CVS HEAD. ------------------------------------------------------------------------ [2005-06-22 17:10:40] rrichards@php.net Can you try this patch and see if it fixes this bug and 33432? http://www.ctindustries.net/patches/dom.diff.txt Can't reproduce this with FC 3 x86_64 (gcc 3.4.3) but think this may be the problem caught by gcc 4. ------------------------------------------------------------------------ [2005-06-22 11:44:26] sniper@php.net Related to bug #33432 ? ------------------------------------------------------------------------ [2005-06-22 11:38:48] sniper@php.net Description: ------------ Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912531672000 (LWP 19242)] 0x000000000081787a in zend_object_store_get_object (zobject=0x0) at /usr/src/php/php5/Zend/zend_objects_API.c:202 202 zend_object_handle handle = Z_OBJ_HANDLE_P(zobject); (gdb) bt #0 0x000000000081787a in zend_object_store_get_object (zobject=0x0) at /usr/src/php/php5/Zend/zend_objects_API.c:202 #1 0x00000000004d90e7 in zif_dom_namednodemap_item (ht=1, return_value=0xedf660, return_value_ptr=0x0, this_ptr=0xedfef0, return_value_used=1) at /usr/src/php/php5/ext/dom/namednodemap.c:182 #2 0x0000000000828da6 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffff9a9dc0) at /usr/src/php/php5/Zend/zend_vm_execute.h:184 #3 0x0000000000829a33 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7fffff9a9dc0) at /usr/src/php/php5/Zend/zend_vm_execute.h:299 #4 0x0000000000828921 in execute (op_array=0xed37c0) at /usr/src/php/php5/Zend/zend_vm_execute.h:87 #5 0x00000000007f6311 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php/php5/Zend/zend.c:1080 #6 0x000000000079cceb in php_execute_script (primary_file=0x7fffff9ac420) at /usr/src/php/php5/main/main.c:1671 #7 0x000000000089021a in main (argc=2, argv=0x7fffff9ac628) at /usr/src/php/php5/sapi/cli/php_cli.c:103 Reproduce code: --------------- ext/dom/tests/dom001.phpt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33431&edit=1

« previous php.bugs (#80936) next »