From: schlueter at phpbar dot de Operating system: Linux PHP version: 5.0.0b4 (beta4) PHP Bug Type: Unknown/Other Function Bug description: segfault with soapclient::__getTypes()
Description: ------------ Everytime I use the soapclient::__getTypes() on a SOAP Client object I get a segfault. I've tried different WSDLs. A simple example Script is attached. Build environment: Linux 2.6.2, glibc 2.3.2, gcc 3.2.3, libxml2 2.6.3 configure line: ./configure --disable-all \ --enable-soap \ --prefix=/opt/php5/bin \ --with-config-file-path=/opt/php5/etc \ --disable-cli Reproduce code: --------------- <?php $soap = new soapclient('http://helena.europe.webmatrixhosting.net/Morse.asmx?WSDL'); $soap->__getTypes(); ?> Expected result: ---------------- no output Actual result: -------------- $ gdb /opt/php5/bin/php GNU gdb 5.3 Copyright 2002 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 "i686-pc-linux-gnu"... (gdb) run soap.php Starting program: /opt/php5/bin/php soap.php Program received signal SIGSEGV, Segmentation fault. 0x080a96db in type_to_string (type=0x40351cb4, buf=0xbfffce40, level=0) at /home/johannes/src/php-5.0.0b4/ext/soap/soap.c:3264 3264 smart_str_appendl(buf, ";\n", 2); (gdb) bt #0 0x080a96db in type_to_string (type=0x40351cb4, buf=0xbfffce40, level=0) at /home/johannes/src/php-5.0.0b4/ext/soap/soap.c:3264 #1 0x080a4535 in zif_soapclient___gettypes (ht=0, return_value=0x40351894, this_ptr=0x0, return_value_used=0) at /home/johannes/src/php-5.0.0b4/ext/soap/soap.c:2046 #2 0x081dafb0 in zend_do_fcall_common_helper (execute_data=0xbfffcfd0, opline=0x4035179c, op_array=0x4035133c) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:2642 #3 0x081db093 in zend_do_fcall_by_name_handler (execute_data=0x40354094, opline=0x0, op_array=0x0) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:2753 #4 0x081d7468 in execute (op_array=0x4035133c) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:1339 #5 0x081b937e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/johannes/src/php-5.0.0b4/Zend/zend.c:1052 #6 0x0818241e in php_execute_script (primary_file=0xbffff3a0) at /home/johannes/src/php-5.0.0b4/main/main.c:1647 #7 0x081e2c32 in main (argc=2, argv=0xbffff424) at /home/johannes/src/php-5.0.0b4/sapi/cli/php_cli.c:941 #8 0x4022bd6b in __libc_start_main () from /lib/libc.so.6 (gdb) #0 0x080a96db in type_to_string (type=0x40351cb4, buf=0xbfffce40, level=0) at /home/johannes/src/php-5.0.0b4/ext/soap/soap.c:3264 #1 0x080a4535 in zif_soapclient___gettypes (ht=0, return_value=0x40351894, this_ptr=0x0, return_value_used=0) at /home/johannes/src/php-5.0.0b4/ext/soap/soap.c:2046 #2 0x081dafb0 in zend_do_fcall_common_helper (execute_data=0xbfffcfd0, opline=0x4035179c, op_array=0x4035133c) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:2642 #3 0x081db093 in zend_do_fcall_by_name_handler (execute_data=0x40354094, opline=0x0, op_array=0x0) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:2753 #4 0x081d7468 in execute (op_array=0x4035133c) at /home/johannes/src/php-5.0.0b4/Zend/zend_execute.c:1339 #5 0x081b937e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/johannes/src/php-5.0.0b4/Zend/zend.c:1052 #6 0x0818241e in php_execute_script (primary_file=0xbffff3a0) at /home/johannes/src/php-5.0.0b4/main/main.c:1647 #7 0x081e2c32 in main (argc=2, argv=0xbffff424) at /home/johannes/src/php-5.0.0b4/sapi/cli/php_cli.c:941 #8 0x4022bd6b in __libc_start_main () from /lib/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=27264&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27264&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27264&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27264&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27264&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27264&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27264&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27264&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27264&r=support Expected behavior: http://bugs.php.net/fix.php?id=27264&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27264&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27264&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27264&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27264&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27264&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27264&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27264&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27264&r=float