Re: Re: Bug #16855 [NEW]: SolrUtils::digestxmlresponse() crashes

From: Date: Sat, 03 Oct 2009 22:35:00 +0000
Subject: Re: Re: Bug #16855 [NEW]: SolrUtils::digestxmlresponse() crashes
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6665@lists.php.net to get a copy of this message
hi! Please use the web interface to reply to bug reports. Cheers, On Sun, Oct 4, 2009 at 12:07 AM, Israel Ekpo <israelekpo@gmail.com> wrote: > Thanks Felipe, > > I am going to take care of that right away > > On Sat, Oct 3, 2009 at 6:02 PM, felipe at php dot net < > pecl-dev@lists.php.net> wrote: > >> From:             felipe at php dot net >> Operating system: Linux >> Package version: >> PHP version:      5_3 CVS-2009-10-03 (dev) >> Package:          solr >> Bug Type:         Bug >> Bug description:  SolrUtils::digestxmlresponse() crashes >> >> Description: >> ------------ >> See below. >> >> Reproduce code: >> --------------- >> Starting program: /home/felipe/dev/php5/sapi/cli/php -r >> 'solrutils::digestxmlresponse(0);' >> [Thread debugging using libthread_db enabled] >> >> Warning: SolrUtils::digestXmlResponse(): Entity: line 1: parser error : >> Start tag expected, '<' not found in Command line code on line 1 >> >> Warning: SolrUtils::digestXmlResponse(): 0 in Command line code on line 1 >> >> Warning: SolrUtils::digestXmlResponse(): ^ in Command line code on line 1 >> [New Thread 0xb78af6d0 (LWP 12964)] >> >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to Thread 0xb78af6d0 (LWP 12964)] >> 0x0827e0c3 in solr_get_node_size (data_node=0x0) at >> /home/felipe/dev/php5/ext/solr/solr_functions_helpers.c:448 >> 448             xmlNode *curr_node = data_node->children; >> (gdb) bt >> #0  0x0827e0c3 in solr_get_node_size (data_node=0x0) at >> /home/felipe/dev/php5/ext/solr/solr_functions_helpers.c:448 >> #1  0x0827e046 in solr_write_object_opener (node=0x0, buffer=0xbfd116c0, >> enc_type=SOLR_ENCODE_STANDALONE, array_index=0) >>    at /home/felipe/dev/php5/ext/solr/solr_functions_helpers.c:564 >> #2  0x0827f114 in solr_encode_object (node=0x0, buffer=0xbfd116c0, >> enc_type=SOLR_ENCODE_STANDALONE, array_index=0, parse_mode=0) >>    at /home/felipe/dev/php5/ext/solr/solr_functions_helpers.c:959 >> #3  0x0827f255 in solr_encode_generic_xml_response (buffer=0xbfd116c0, >> serialized=0x8dbb3dc "0", size=1, parse_mode=0, tsrm_ls=0x8c4d070) >>    at /home/felipe/dev/php5/ext/solr/solr_functions_helpers.c:997 >> #4  0x0827b3dc in zim_SolrUtils_digestXmlResponse (ht=1, >> return_value=0x8dbb398, return_value_ptr=0x0, this_ptr=0x0, >> return_value_used=0, >>    tsrm_ls=0x8c4d070) at >> /home/felipe/dev/php5/ext/solr/php_solr_utils.c:103 >> #5  0x0846de89 in zend_do_fcall_common_helper_SPEC >> (execute_data=0x8de961c, tsrm_ls=0x8c4d070) >>    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:313 >> #6  0x0846f050 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER >> (execute_data=0x8de961c, tsrm_ls=0x8c4d070) >>    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:418 >> #7  0x0846cb6e in execute (op_array=0x8dbb284, tsrm_ls=0x8c4d070) at >> /home/felipe/dev/php5/Zend/zend_vm_execute.h:104 >> #8  0x0842c095 in zend_eval_stringl (str=0xbfd127fc >> "solrutils::digestxmlresponse(0);", str_len=32, retval_ptr=0x0, >>    string_name=0x87e1070 "Command line code", tsrm_ls=0x8c4d070) at >> /home/felipe/dev/php5/Zend/zend_execute_API.c:1167 >> #9  0x0842c344 in zend_eval_stringl_ex (str=0xbfd127fc >> "solrutils::digestxmlresponse(0);", str_len=32, retval_ptr=0x0, >>    string_name=0x87e1070 "Command line code", handle_exceptions=1, >> tsrm_ls=0x8c4d070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1209 >> #10 0x0842c3f8 in zend_eval_string_ex (str=0xbfd127fc >> "solrutils::digestxmlresponse(0);", retval_ptr=0x0, >> ---Type <return> to continue, or q <return> to quit--- >>    string_name=0x87e1070 "Command line code", handle_exceptions=1, >> tsrm_ls=0x8c4d070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1220 >> #11 0x0851e773 in main (argc=3, argv=0xbfd11ba4) at >> /home/felipe/dev/php5/sapi/cli/php_cli.c:1229 >> >> >> >> -- >> Edit bug report at >> http://pecl.php.net/bugs/bug.php?id=16855&edit=1 >> -- >> >> > > > -- > "Good Enough" is not good enough. > To give anything less than your best is to sacrifice the gift. > Quality First. Measure Twice. Cut Once. > -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.pecl.dev (#6665) next »