#49465 [NEW]: Soap Segmentation fault with ./configure --with-curlwrappers

From: Date: Fri, 04 Sep 2009 10:10:19 +0000
Subject: #49465 [NEW]: Soap Segmentation fault with ./configure --with-curlwrappers
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141959@lists.php.net to get a copy of this message
From: xavier at jvweb dot fr Operating system: ubuntu hardy amd64 PHP version: 5.3.0 PHP Bug Type: cURL related Bug description: Soap Segmentation fault with ./configure --with-curlwrappers Description: ------------ A wsdl load via the SoapClient object generate a segmentation fault with curl wrappers enabled Reproduce code: --------------- <?php ini_set("soap.wsdl_cache",0); $s = new SoapClient("http://api.zanox.com/wsdl"); print_r($s->__getFunctions()); ?> ./configure \ --prefix=/usr \ --disable-all \ --enable-soap \ --enable-libxml \ --with-curl \ --with-curlwrappers \ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4) Expected result: ---------------- Starting program: /usr/src/php/php-5.3.0/sapi/cli/php do.php [Thread debugging using libthread_db enabled] [New Thread 0x7f1f1691d700 (LWP 9050)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f1f1691d700 (LWP 9050)] 0x00007f1f15c0cb3c in ?? () from /usr/lib/libcurl.so.4 (gdb) bt #0 0x00007f1f15c0cb3c in ?? () from /usr/lib/libcurl.so.4 #1 0x00007f1f15c0d853 in ?? () from /usr/lib/libcurl.so.4 #2 0x00007f1f15c18d89 in ?? () from /usr/lib/libcurl.so.4 #3 0x00007f1f15c2a989 in ?? () from /usr/lib/libcurl.so.4 #4 0x00007f1f15c2b01b in curl_multi_perform () from /usr/lib/libcurl.so.4 #5 0x000000000048f61d in php_curl_stream_read (stream=0xb81910, buf=0xb82df0 "", count=8192) at /usr/src/php/php-5.3.0/ext/curl/streams.c:184 #6 0x00000000005e3640 in php_stream_fill_read_buffer (stream=0xb81910, size=4000) at /usr/src/php/php-5.3.0/main/streams/streams.c:562 #7 0x00000000005e3809 in _php_stream_read (stream=0xb81910, buf=0xbbc100 "", size=4000) at /usr/src/php/php-5.3.0/main/streams/streams.c:605 #8 0x00000000004605d6 in php_libxml_streams_IO_read (context=0xb81910, buffer=0xbbc100 "", len=4000) at /usr/src/php/php-5.3.0/ext/libxml/libxml.c:337 #9 0x00007f1f143d5dff in xmlParserInputBufferGrow () from /usr/lib/libxml2.so.2 #10 0x00007f1f143aeced in xmlParserInputGrow () from /usr/lib/libxml2.so.2 #11 0x00007f1f143b3392 in ?? () from /usr/lib/libxml2.so.2 #12 0x00007f1f143c59fd in xmlParseDocument () from /usr/lib/libxml2.so.2 #13 0x0000000000506093 in soap_xmlParseFile (filename=0xb80798 "http://api.zanox.com/wsdl") at /usr/src/php/php-5.3.0/ext/soap/php_xml.c:100 #14 0x00000000004ebb30 in load_wsdl_ex (this_ptr=0xb7ea80, struri=0xb80798 "http://api.zanox.com/wsdl", ctx=0x7fffffff98d0, include=0) at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:240 #15 0x00000000004eddbc in load_wsdl (this_ptr=0xb7ea80, struri=0xb80798 "http://api.zanox.com/wsdl") at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:654 #16 0x0000000000504f45 in get_sdl (this_ptr=0xb7ea80, uri=0xb80798 "http://api.zanox.com/wsdl", cache_wsdl=0) at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:3227 #17 0x00000000004aa2f8 in zim_SoapClient_SoapClient (ht=1, return_value=0xb7f8b8, return_value_ptr=0x0, this_ptr=0xb7ea80, return_value_used=0) at /usr/src/php/php-5.3.0/ext/soap/soap.c:2671 #18 0x000000000066adc4 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f1f1680c090) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:313 #19 0x000000000066bba8 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7f1f1680c090) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:422 #20 0x000000000066a018 in execute (op_array=0xb7f710) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:104 #21 0x000000000063b268 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php/php-5.3.0/Zend/zend.c:1188 #22 0x00000000005c9994 in php_execute_script (primary_file=0x7fffffffd7e0) at /usr/src/php/php-5.3.0/main/main.c:2196 #23 0x000000000071e345 in main (argc=2, argv=0x7fffffffda48) at /usr/src/php/php-5.3.0/sapi/cli/php_cli.c:1188 Actual result: -------------- Starting program: /usr/src/php/php-5.3.0/sapi/cli/php do.php [Thread debugging using libthread_db enabled] [New Thread 0x7f1f1691d700 (LWP 9050)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f1f1691d700 (LWP 9050)] 0x00007f1f15c0cb3c in ?? () from /usr/lib/libcurl.so.4 (gdb) bt #0 0x00007f1f15c0cb3c in ?? () from /usr/lib/libcurl.so.4 #1 0x00007f1f15c0d853 in ?? () from /usr/lib/libcurl.so.4 #2 0x00007f1f15c18d89 in ?? () from /usr/lib/libcurl.so.4 #3 0x00007f1f15c2a989 in ?? () from /usr/lib/libcurl.so.4 #4 0x00007f1f15c2b01b in curl_multi_perform () from /usr/lib/libcurl.so.4 #5 0x000000000048f61d in php_curl_stream_read (stream=0xb81910, buf=0xb82df0 "", count=8192) at /usr/src/php/php-5.3.0/ext/curl/streams.c:184 #6 0x00000000005e3640 in php_stream_fill_read_buffer (stream=0xb81910, size=4000) at /usr/src/php/php-5.3.0/main/streams/streams.c:562 #7 0x00000000005e3809 in _php_stream_read (stream=0xb81910, buf=0xbbc100 "", size=4000) at /usr/src/php/php-5.3.0/main/streams/streams.c:605 #8 0x00000000004605d6 in php_libxml_streams_IO_read (context=0xb81910, buffer=0xbbc100 "", len=4000) at /usr/src/php/php-5.3.0/ext/libxml/libxml.c:337 #9 0x00007f1f143d5dff in xmlParserInputBufferGrow () from /usr/lib/libxml2.so.2 #10 0x00007f1f143aeced in xmlParserInputGrow () from /usr/lib/libxml2.so.2 #11 0x00007f1f143b3392 in ?? () from /usr/lib/libxml2.so.2 #12 0x00007f1f143c59fd in xmlParseDocument () from /usr/lib/libxml2.so.2 #13 0x0000000000506093 in soap_xmlParseFile (filename=0xb80798 "http://api.zanox.com/wsdl") at /usr/src/php/php-5.3.0/ext/soap/php_xml.c:100 #14 0x00000000004ebb30 in load_wsdl_ex (this_ptr=0xb7ea80, struri=0xb80798 "http://api.zanox.com/wsdl", ctx=0x7fffffff98d0, include=0) at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:240 #15 0x00000000004eddbc in load_wsdl (this_ptr=0xb7ea80, struri=0xb80798 "http://api.zanox.com/wsdl") at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:654 #16 0x0000000000504f45 in get_sdl (this_ptr=0xb7ea80, uri=0xb80798 "http://api.zanox.com/wsdl", cache_wsdl=0) at /usr/src/php/php-5.3.0/ext/soap/php_sdl.c:3227 #17 0x00000000004aa2f8 in zim_SoapClient_SoapClient (ht=1, return_value=0xb7f8b8, return_value_ptr=0x0, this_ptr=0xb7ea80, return_value_used=0) at /usr/src/php/php-5.3.0/ext/soap/soap.c:2671 #18 0x000000000066adc4 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f1f1680c090) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:313 #19 0x000000000066bba8 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7f1f1680c090) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:422 #20 0x000000000066a018 in execute (op_array=0xb7f710) at /usr/src/php/php-5.3.0/Zend/zend_vm_execute.h:104 #21 0x000000000063b268 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php/php-5.3.0/Zend/zend.c:1188 #22 0x00000000005c9994 in php_execute_script (primary_file=0x7fffffffd7e0) at /usr/src/php/php-5.3.0/main/main.c:2196 #23 0x000000000071e345 in main (argc=2, argv=0x7fffffffda48) at /usr/src/php/php-5.3.0/sapi/cli/php_cli.c:1188 -- Edit bug report at http://bugs.php.net/?id=49465&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49465&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49465&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49465&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49465&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49465&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49465&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49465&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49465&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49465&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49465&r=support Expected behavior: http://bugs.php.net/fix.php?id=49465&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49465&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49465&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49465&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49465&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49465&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49465&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49465&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49465&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49465&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49465&r=mysqlcfg

« previous php.bugs (#141959) next »