From:             dmiller at sparks dot net
Operating system: FreeBSD 4.10
PHP version:      5CVS-2004-09-21 (dev)
PHP Bug Type:     Reproducible crash
Bug description:  SOAP module processing WSDL file dumps core

Description:
------------
$client = new SoapClient($wsdl); dumps core with a WSDL file 
given by a .NET server.

Core is not dumped on all wsdl's, it appears to not handle something in
this particular file.

# ./configure  --enable-versioning --enable-memory-limit --with-layout=GNU
--with-config-file-scan-dir=/usr/local/etc/php --disable-all
--enable-libxml --with-libxml-dir=/usr/local --enable-spl --with-openssl
--with-curl --with-regex=php --with-apxs=/usr/local/sbin/apxs
--enable-debug --disable-ipv6 --prefix=/usr/local i386-portbld-freebsd4.10
--enable-soap


Reproduce code:
---------------
<?php

 $wsdl_url = './x';

$wsdl = '';
$wsdl_file = fopen($wsdl_url, "r");

while (!feof($wsdl_file)) {
    $wsdl .= fread($wsdl_file, 4096);
}
fclose ($wsdl_file);

$client = new SoapClient("$wsdl");

print ("Created new soap client:\n");

?>

wsdl, phpinfo, and sample code available at
http://search.sparks.net/php-wsdl-bug/

Expected result:
----------------
I expected to have a SOAP object created

Actual result:
--------------
Segmentation fault (core dumped)

new:php$ which php
/usr/local/bin/php
new:php$ gdb /usr/local/bin/php php.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read
called at /usr/src
nu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in
elfstab_build_p
mtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gd
dbxread.c line 933 in fill_symbuf
 
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/libcurl.so.3...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/local/lib/libssl.so.3...done.
Reading symbols from /usr/local/lib/libcrypto.so.3...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/lib/libssl.so.3...done.
Reading symbols from /usr/lib/libcrypto.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x20202020 in ?? ()
(gdb) bt
#0  0x20202020 in ?? ()
Cannot access memory at address 0x20202020.
(gdb) new:php$
new:php$ 


-- 
Edit bug report at http://bugs.php.net/?id=30182&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30182&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30182&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30182&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30182&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30182&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30182&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30182&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30182&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30182&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30182&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30182&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30182&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30182&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30182&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30182&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30182&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30182&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30182&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30182&r=mysqlcfg

Reply via email to