ID:               49045
 Updated by:       j...@php.net
-Summary:          Segmentation fault when connecting to different web
                   services
 Reported By:      kelvin at netbasic dot co dot uk
-Status:           Open
+Status:           Assigned
 Bug Type:         SOAP related
 Operating System: Centos 4.7 and 5.3
 PHP Version:      5.3.0
 Assigned To:      jani


Previous Comments:
------------------------------------------------------------------------

[2009-07-27 08:09:48] kelvin at netbasic dot co dot uk

Without --with-curlwrappers it now works, so the cause would appear to

lay there.

Interestingly, this also appears to be the cause of another stream 
issue, which is the following function played havoc with require_once

stream_wrapper_register('swift', 'Swift_Stream', 0);

Once this was run, require_once tried to treat all paths as a URL, this

is also working as expected.)

------------------------------------------------------------------------

[2009-07-26 23:38:18] j...@php.net

Can you try without this: --with-curlwrappers ?

------------------------------------------------------------------------

[2009-07-26 21:48:04] kelvin at netbasic dot co dot uk

I know this isn't the best config, but it does for testing. I've used 
the same config on both CentOS and Unbuntu boxes and all had the same 
problem:

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-
bcmath' '--enable-calendar' '--enable-ftp' '--enable-discard-path' '--
with-pear' '--enable-sockets' '--with-zlib' '--with-gd' '--with-curl'
'-
-enable-bcmath' '--enable-sigchild' '--enable-sockets' '--with-curl'
'--
with-curlwrappers' '--enable-soap' '--with-openssl' '--with-kerberos'
'-
-enable-mbstring' '--enable-zip' '--with-jpeg-dir=/usr/lib/' --with-ttf

--with-pdo-mysql --with-mysqli --with-mysql)

------------------------------------------------------------------------

[2009-07-26 12:15:16] j...@php.net

What is the configure line you used?

------------------------------------------------------------------------

[2009-07-26 01:16:14] kelvin at netbasic dot co dot uk

Hi Jani

Thanks for looking into this so quickly, unfortunately its still 
occuring, I've tested the last 2 snapshots on both Ubuntu and CentOS 
with the same result, I've attached another backtrace -


Program received signal SIGSEGV, Segmentation fault.
0x006f6f2d in strncasecmp () from /lib/libc.so.6
(gdb) bt
#0  0x006f6f2d in strncasecmp () from /lib/libc.so.6
#1  0x00d0505b in curl_strnequal () from /usr/lib/libcurl.so.3
#2  0x00ceb1bc in ?? () from /usr/lib/libcurl.so.3
#3  0x00cecd89 in Curl_http () from /usr/lib/libcurl.so.3
#4  0x00cf89b0 in Curl_do () from /usr/lib/libcurl.so.3
#5  0x00d07b2b in ?? () from /usr/lib/libcurl.so.3
#6  0x00d080bc in curl_multi_perform () from /usr/lib/libcurl.so.3
#7  0x081507ff in php_curl_stream_read (stream=0x99778c0, 
buf=0x997931c "\024\223\227\t\024\223\227\tìg\203\t", count=8192)
    at /root/t/php5.3-200907260030/ext/curl/streams.c:184
#8  0x08383324 in php_stream_fill_read_buffer (stream=0x99778c0, 
size=4000) at /root/t/php5.3-200907260030/main/streams/streams.c:562
#9  0x083835da in _php_stream_read (stream=0x99778c0, buf=0x99f52d8 
"", size=4000) at /root/t/php5.3-
200907260030/main/streams/streams.c:605
#10 0x0014b870 in xmlParserInputBufferGrow () from 
/usr/lib/libxml2.so.2
#11 0x00124331 in xmlParserInputGrow () from /usr/lib/libxml2.so.2
#12 0x001283fc in ?? () from /usr/lib/libxml2.so.2
#13 0x0013a0bc in xmlParseDocument () from /usr/lib/libxml2.so.2
#14 0x0828edcf in soap_xmlParseFile (filename=0x997769c 
"http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL";)
    at /root/t/php5.3-200907260030/ext/soap/php_xml.c:100
#15 0x082849eb in load_wsdl_ex (this_ptr=0x9977180, struri=0x997769c 
"http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL";, 
ctx=0xbfbfeb08, include=0)
    at /root/t/php5.3-200907260030/ext/soap/php_sdl.c:240
#16 0x08288ef6 in load_wsdl (this_ptr=0x9977180, struri=0x997769c 
"http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL";)
    at /root/t/php5.3-200907260030/ext/soap/php_sdl.c:654
#17 0x0828a76f in get_sdl (this_ptr=0x9977180, uri=0x997769c 
"http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL";, 
cache_wsdl=1)
    at /root/t/php5.3-200907260030/ext/soap/php_sdl.c:3227
#18 0x0825cc68 in zim_SoapClient_SoapClient (ht=1, 
return_value=0x9977714, return_value_ptr=0x0, this_ptr=0x9977180, 
return_value_used=0)
    at /root/t/php5.3-200907260030/ext/soap/soap.c:2671
#19 0x08406399 in zend_do_fcall_common_helper_SPEC 
(execute_data=0x99a9fc0) at /root/t/php5.3-
200907260030/Zend/zend_vm_execute.h:313
#20 0x083dddcd in execute (op_array=0x9978ec0) at /root/t/php5.3-
200907260030/Zend/zend_vm_execute.h:104
#21 0x083bcc77 in zend_execute_scripts (type=8, retval=0x0, 
file_count=3) at /root/t/php5.3-200907260030/Zend/zend.c:1188
#22 0x0836cb8e in php_execute_script (primary_file=0xbfc02568) at 
/root/t/php5.3-200907260030/main/main.c:2211
#23 0x0843c2e7 in main (argc=2, argv=0xbfc026c4) at /root/t/php5.3-
200907260030/sapi/cli/php_cli.c:1188)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/49045

-- 
Edit this bug report at http://bugs.php.net/?id=49045&edit=1

Reply via email to