|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2005-04-18 05:36 UTC] dev at stalkerbox dot net
 Description:
------------
see #30490, closed
signal 11 on <code>make install-pear-installer</code>, in function xml_parse.  reproducible on fresh cygwin on other hosts.
i still have this problem in php5-200504180030, php5-STABLE-200504180037, and php-5.0.4; using cygwin on windows xp sp2.
this seems to be a php/xml bug.  should this be in pear bugs anyway?
signal 11 at line 802 of /pear/PEAR/Common.php:
<code>if (!xml_parse($xp, $data, 1)) {</code>
does NOT crash (but install doesnt work) if you comment out line 786 of pear/PEAR/Common.php:
<code>xml_set_element_handler($xp, '_element_start', '_element_end');</code>
however it doesnt crash within the functions _element_start or _element_end
Actual result:
--------------
$ make install-pear-installer
Signal 11
make: *** [install-pear-installer] Error 139
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Still segfault, here is the backtrace. I'll recompile with debug enabled and if the behavior is the same, I'll send you a more complete backtrace: #0 0x0c8025ff in ?? () #1 0x004d2d2a in _start_element_handler (user=0x1036ede8, name=0x1039f353 "package", attributes=0x103a1bc0) at /cygdrive/c/Temp/php5-STABLE-200505260839/ext/xml/compat.c:65 #2 0x009299d8 in xmlParseStartTag () from /usr/bin/cygxml2-2.dll #3 0x009357fb in xmlParseChunk () from /usr/bin/cygxml2-2.dll #4 0x004d368a in php_XML_Parse (parser=0x1036ede8, data=0x1036f1b0 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dtd\">\n<package version=\"1.0\">\n <name>Archive_Tar</name>\n <summary>Tar file management class</summary>\n <description>Th"..., data_len=2601, is_final=1) at /cygdrive/c/Temp/php5-STABLE-200505260839/ext/xml/compat.c:512 #5 0x004d1d84 in zif_xml_parse (ht=3, return_value=0x1039f2f8, this_ptr=0x0, return_value_used=1) at /cygdrive/c/Temp/php5-STABLE-200505260839/ext/xml/xml.c:1340 #6 0x0052f456 in zend_do_fcall_common_helper (execute_data=0x2276b0, opline=0x1019e198, op_array=0x102c7d08) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:2747 #7 0x0052c139 in execute (op_array=0x102c7d08) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:1417 #8 0x0052f24d in zend_do_fcall_common_helper (execute_data=0x227a00, opline=0x10185fa0, op_array=0x102c7c20) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:2776 #9 0x0052c139 in execute (op_array=0x102c7c20) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:1417 #10 0x0052f24d in zend_do_fcall_common_helper (execute_data=0x22b4d0, opline=0x1012c5b8, op_array=0x10104e08) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:2776 #11 0x0052c139 in execute (op_array=0x10104e08) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:1417 #12 0x0052f24d in zend_do_fcall_common_helper (execute_data=0x22d9b0, opline=0x1009dfd0, op_array=0x1008e1d0) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:2776 #13 0x0052c139 in execute (op_array=0x1008e1d0) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend_execute.c:1417 #14 0x0050d485 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /cygdrive/c/Temp/php5-STABLE-200505260839/Zend/zend.c:1084 #15 0x004d6fcd in php_execute_script (primary_file=0x22eed0) at /cygdrive/c/Temp/php5-STABLE-200505260839/main/main.c:1646 #16 0x00536a11 in main (argc=12, argv=0x10012ab0) at /cygdrive/c/Temp/php5-STABLE-200505260839/sapi/cli/php_cli.c:946