PHP 4.0 Bug #6175 Updated: XML functions no longer work in objects
| From: | Bug Database | Date: | Thu, 31 Aug 2000 19:00:35 +0000 |
| Subject: | PHP 4.0 Bug #6175 Updated: XML functions no longer work in objects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31485@lists.php.net to get a copy of this message | ||
ID: 6175
User Update by: jon@csh.rit.edu
Status: Open
Bug Type: Scripting Engine problem
Description: XML functions no longer work in objects
With today's CVS, including Andrei's latest change to xml.c (rev. 1.61), I can generate a
backtrace for the segfault that occurs when calling the xml_* routines from the constructor:
Starting program: /usr/local/src/apache_1.3.12/src/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x80e3a0e in _efree (ptr=0x5a5a5a5a,
__zend_filename=0x81bb1a9 "zend_variables.c", __zend_lineno=98,
__zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:196
196 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
(gdb) bt
#0 0x80e3a0e in _efree (ptr=0x5a5a5a5a,
__zend_filename=0x81bb1a9 "zend_variables.c", __zend_lineno=98,
__zend_orig_filename=0x0, __zend_orig_lineno=0) at zend_alloc.c:196
#1 0x80eea7e in zval_del_ref (p=0x8263b3c) at zend_variables.c:98
#2 0x80dc0cd in xml_parser_dtor (parser=0x8263b24) at xml.c:302
#3 0x80f3dc1 in list_entry_destructor (ptr=0x82d3be4) at zend_list.c:253
#4 0x80f2b1d in zend_hash_apply_deleter (ht=0x824b880, p=0x82b70a4)
at zend_hash.c:619
#5 0x80f2c3e in zend_hash_graceful_destroy (ht=0x824b880) at zend_hash.c:670
#6 0x80f3e97 in zend_destroy_rsrc_list () at zend_list.c:298
#7 0x80e9490 in shutdown_executor () at zend_execute_API.c:179
#8 0x80ef604 in zend_deactivate () at zend.c:520
#9 0x808070b in php_request_shutdown (dummy=0x0) at main.c:659
#10 0x807e887 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:291
#11 0x8124ee5 in run_cleanups (c=0x82b30f4) at alloc.c:1706
#12 0x812359b in ap_clear_pool (a=0x82b200c) at alloc.c:531
#13 0x812361b in ap_destroy_pool (a=0x82b200c) at alloc.c:561
#14 0x8123587 in ap_clear_pool (a=0x826600c) at alloc.c:528
#15 0x8133165 in child_main (child_num_arg=0) at http_main.c:3900
#16 0x81337a5 in make_child (s=0x8252034, slot=0, now=967748297)
at http_main.c:4281
#17 0x813391e in startup_children (number_to_start=3) at http_main.c:4363
#18 0x8133f28 in standalone_main (argc=2, argv=0xbfbffa48) at http_main.c:4651
#19 0x8134740 in main (argc=2, argv=0xbfbffa48) at http_main.c:4978
From Apache's error log:
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
httpd in free(): warning: chunk is already free.
[Thu Aug 31 08:57:05 2000] [notice] child pid 57954 exit signal Segmentation fault (11)
Full Bug description available at: http://bugs.php.net/?id=6175