php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32740 signal 11 on make install-pear-installer, xml_parse
Submitted: 2005-04-18 05:36 UTC Modified: 2005-06-03 01:00 UTC
Votes:8
Avg. Score:4.1 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:5 (71.4%)
From: dev at stalkerbox dot net Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.0.4 OS: cygwin/xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 16 = ?
Subscribe to this entry?

 
 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-18 08:28 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
 [2005-04-21 22:28 UTC] dev at stalkerbox dot net
this crash occurs in the stock packages of php in the versions php5-200504180030, php5-STABLE-200504180037, and php-5.0.4, which were the latest of each at the time of this bug post.

the steps needed to reproduce:   =P

tar -xvjf php5-*
cd php5-<tab>
./configure #i normally use only --enable-maintainer-zts
make && make install
 [2005-04-23 19:19 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


 [2005-04-25 23:16 UTC] dev at stalkerbox dot net
exact same problem persists using php5-STABLE-200504251833:

$ ./configure --enable-maintainer-zts --disable-cgi --with-readline --with-ssh2
$ make && make install
(...)
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PEAR environment:      /usr/local/lib/php/
Signal 11
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2
 [2005-04-28 00:32 UTC] tony2001@php.net
Works fine here.
Please try latest snapshot once more.
 [2005-05-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-05-26 14:08 UTC] thild at silicom dot fr
I have the same behavior with the following snapshot:
php5-STABLE-200505260839

$ ./configure --prefix=/usr/local/stow/php5-STABLE-200505260839 --enable-discard-path --enable-fastcgi

... everything is fine ...

$ make

... everything is fine ...

$ make install
Installing PHP SAPI module:       cgi
Installing PHP CGI into: /usr/local/stow/php5-STABLE-200505260839/bin/
Installing PEAR environment:      /usr/local/stow/php5-STABLE-200505260839/lib/php/
Signal 11
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2

I can add an strace if asked for.
 [2005-05-26 15:28 UTC] tony2001@php.net
Still can't reproduce.
Try to run this command (in the sources root):
./sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 ./pear/install-pear.php -d /tmp -b "/usr/local/stow/php5-STABLE-200505260839/bin/" ./pear/package-*.xml 
And if it fails - generate GDB backtrace.
 [2005-05-26 16:14 UTC] thild at silicom dot fr
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
 [2005-06-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-06-08 23:11 UTC] ben dot peter at gmx dot net
Just confirming that this happens for php5-STABLE-200506082034 on cygwin / xp-sp2.
 [2005-10-13 00:05 UTC] techy987 at yahoo dot com
still exists in php5-STABLE-200510121840
cygwin DLL version: 1.5.18
libxml2             2.6.20-3
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 15:05:53 2022 UTC