#21685 [Opn->Fbk]: xmlrpc_decode() causes segfault
| From: | iliaa@php.net | Date: | Fri, 17 Jan 2003 15:13:39 +0000 |
| Subject: | #21685 [Opn->Fbk]: xmlrpc_decode() causes segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30358@lists.php.net to get a copy of this message | ||
ID: 21685
Updated by: iliaa@php.net
Reported By: mfladischer@abis.co.at
-Status: Open
+Status: Feedback
Bug Type: XMLRPC-EPI related
Operating System: Redhat Linux 7.3
PHP Version: 4CVS-2003-01-16 (stable)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Cannot replicate with latest snapshot.
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 06:02:42] mfladischer@abis.co.at
Backtrace:
#0 0x081caea6 in zif_xmlrpc_decode (ht=1, return_value=0x84f0774,
this_ptr=0x0, return_value_used=1) at
/usr/src/cvs/php4/ext/xmlrpc/xmlrpc-epi-php.c:776
#1 0x0822e22b in execute (op_array=0x84f1314) at
/usr/src/cvs/php4/Zend/zend_execute.c:1596
#2 0x0821be34 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/cvs/php4/Zend/zend.c:925
#3 0x081e3dd7 in php_execute_script (primary_file=0xbffffab0) at
/usr/src/cvs/php4/main/main.c:1691
#4 0x08235dde in main (argc=2, argv=0xbffffb54) at
/usr/src/cvs/php4/sapi/cli/php_cli.c:753
#5 0x401524ce in __libc_start_main () from /lib/libc.so.6
------------------------------------------------------------------------
[2003-01-16 04:53:51] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2003-01-16 04:52:46] mfladischer@abis.co.at
When using the xmlrpc_decode() function, the Apache2 (latest cvs)
reports a segfault in the error-log.
I've tested it with various xmlrpc-responses like:
<?php
xmlrpc_decode("
<?xml version=\"1.0\"?>
<methodResponse>
<params>
<param>
<value><string>South Dakota</string></value>
</param>
</params>
</methodResponse>
");
?>
Here is my ./configure :
'./configure' '--prefix=/usr' '--with-config-file-path=/etc/server'
'--with-apxs2=/usr/bin/apxs' '--with-pear=/home/httpd/include'
'--with-openssl' '--with-zlib' '--enable-bcmath'
'--with-bz2'
'--enable-calendar' '--enable-dio' '--enable-dbase'
'--enable-dx'
'--enable-exif' '--enable-ftp' '--enable-mime_magic=/etc/server/mime'
'--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--enable-shmop' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-wddx' '--enable-yp'
'--with-xmlrpc'
'--with-mnogosearch=/usr' '--with-curl' '--with-dom'
'--with-dom-xslt'
'--with-dom-exslt' '--with-imap' '--with-ldap'
'--enable-cli=yes'
'--with-gettext' '--with-gd' '--enable-gd-native-ttf'
'--with-freetype-dir' '--enable-dbase' '--with-pspell'
'--with-pdflib'
'--with-iconv' '--with-zlib-dir' '--with-jpeg-dir'
'--with-expat-dir=/usr' '--with-readline' '--with-mcrypt=/usr'
'--with-unixodbc' '--enable-dba' '--with-db4' '--with-gdbm'
'--with-gmp' '--with-curlwrappers'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21685&edit=1