#35570 [Opn]: segfault when re-using soap client object
ID: 35570 User updated by: rick at revenew dot nl Reported By: rick at revenew dot nl Status: Open Bug Type: SOAP related Operating System: Debian Sarge (Linux) amd64 PHP Version: 5.1.1 New Comment: Also it doesn't matter what the second soap request is. The second one just causes a segfault. In the simplest form: webserver:~# cat login.php #!/usr/local/php-5.1.1/bin/php http://soap-server-ip-address/WQLogin/wsdl/IWQLoginService'); $foo = $wq->GetUserList(); // Soap request 1 works fine $wq = new SoapClient('http://soap-server-ip-address/WQLogin/wsdl/IWQLoginService'); $bar = $wq->GetUserList(); // Soap request 2 causes segfault, but works fine after a reconnect ?> webserver:~# ./login.php webserver:~# vim login.php webserver:~# cat login.php #!/usr/local/php-5.1.1/bin/php http://soap-server-ip-address/WQLogin/wsdl/IWQLoginService'); $foo = $wq->GetUserList(); // Soap request 1 works fine $bar = $wq->GetUserList(); // Soap request 2 causes segfault, but works fine after a reconnect ?> webserver:~# ./login.php Segmentation fault (core dumped) webserver:~# Previous Comments: [2005-12-07 11:28:14] rick at revenew dot nl and one with a php 5.1.1 cli: #0 0x in ?? () #1 0x0003 in ?? () #2 0x in ?? () #3 0x0001 in ?? () #4 0x01cf in ?? () #5 0x7fb28820 in ?? () #6 0x001d in ?? () #7 0x000100c8 in ?? () #8 0x2cc18e21 in sbrk () from /lib/libc.so.6 #9 0x00d592c0 in ?? () #10 0x0001acd88580 in ?? () #11 0x00d41018 in ?? () #12 0x00d592c0 in ?? () #13 0x00d34b28 in ?? () #14 0x00d37364 in ?? () #15 0x0005 in ?? () #16 0x00d36f10 in ?? () #17 0x in ?? () #18 0x in ?? () #19 0x2cbc3ff7 in malloc () from /lib/libc.so.6 #20 0x2c8a97c8 in xmlStrndup () from /usr/lib/libxml2.so.2 #21 0x2c8a9824 in xmlStrdup () from /usr/lib/libxml2.so.2 #22 0x2c8643a3 in xmlNewNode () from /usr/lib/libxml2.so.2 #23 0x2c8644cc in xmlNewDocNode () from /usr/lib/libxml2.so.2 #24 0x2c8e19e8 in xmlSAX2StartElementNs () from /usr/lib/libxml2.so.2 #25 0x2cbb8105 in vsprintf () from /lib/libc.so.6 #26 0x7fb28940 in ?? () #27 0x0004 in ?? () #28 0x7fb28a00 in ?? () #29 0x00cb06d0 in ?? () #30 0x0069cbca in zend_parse_parameters (num_args=-5077864, type_spec=0x1 ) at /home/rick/php-5.1.1-nodebug/Zend/zend_API.c:635 #31 0x005862cc in zif_SoapClient___doRequest (ht=-5077864, return_value=0x2c864ace, return_value_ptr=0x0, this_ptr=0x8b9bfc, return_value_used=13890840) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2722 #32 0x00690e41 in zend_call_function (fci=0x1, fci_cache=0xd34b28) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:894 #33 0x006907f6 in call_user_function_ex (function_table=0x7fb28498, object_pp=0x1, function_name=0x0, retval_ptr_ptr=0x2cc17a00, param_count=13890840, params=0xd360e8, no_separation=1, symbol_table=0x1) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:578 #34 0x006906e2 in call_user_function (function_table=0x0, object_pp=0x7fb28ad0, function_name=0x7fb28b90, retval_ptr=0x7fb28da0, param_count=4, params=0x7fb28af0) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:551 #35 0x00584822 in do_request (this_ptr=0xd34b28, request=0x7fb28498, location=0xd3c208 "http://soap-server-ipWQLogin/soap/IWQLoginService";, action=0xd41018 "urn:WQLoginServiceIntf-IWQLoginService#GetUserUID", version=1, response=0x7fb28da0) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2273 #36 0x00584e83 in do_soap_call (this_ptr=0xd34b28, function=0xd37fe8 "GetUserUID", function_len=0, arg_count=1, real_args=0xd364c8, return_value=0xe68a68, location=0xd3c208 "http://soap-server-ip/WQLogin/soap/IWQLoginService";, soap_action=0x0, call_uri=0x0, soap_headers=0x0, output_headers=0x0) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2375 #37 0x00585c8f in zif_SoapClient___call (ht=-5077864, return_value=0xe68a68, return_value_ptr=0x0, this_ptr=0xd34b28, return_value_used=13890840) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2584 #38 0x00690e41 in zend_call_function (fci=0x7fb29040, fci_cache=0x2) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:894 #39 0x006ab4cb in zend_call_method (object_pp=0x7fb29100, obj_ce=0xcb06d0, fn_proxy=0xcb08b0, function_name=0x8c8700 "__call", function_name_len=6, retval_ptr_ptr=0x7fb29108, param_count=1, arg1=0xd360a8, arg2=0xd38088) at /home/rick/php-5.1.1-nodebug/Zend/zend_interfaces.c:88 #40 0x006b16be in zend_std_call_user_call (ht=13852840, return_value=0xd37e58, return_value_ptr=0x0, this
#35570 [Opn]: segfault when re-using soap client object
ID: 35570 User updated by: rick at revenew dot nl Reported By: rick at revenew dot nl Status: Open Bug Type: SOAP related Operating System: Debian Sarge (Linux) amd64 PHP Version: 5.1.1 New Comment: and one with a php 5.1.1 cli: #0 0x in ?? () #1 0x0003 in ?? () #2 0x in ?? () #3 0x0001 in ?? () #4 0x01cf in ?? () #5 0x7fb28820 in ?? () #6 0x001d in ?? () #7 0x000100c8 in ?? () #8 0x2cc18e21 in sbrk () from /lib/libc.so.6 #9 0x00d592c0 in ?? () #10 0x0001acd88580 in ?? () #11 0x00d41018 in ?? () #12 0x00d592c0 in ?? () #13 0x00d34b28 in ?? () #14 0x00d37364 in ?? () #15 0x0005 in ?? () #16 0x00d36f10 in ?? () #17 0x in ?? () #18 0x in ?? () #19 0x2cbc3ff7 in malloc () from /lib/libc.so.6 #20 0x2c8a97c8 in xmlStrndup () from /usr/lib/libxml2.so.2 #21 0x2c8a9824 in xmlStrdup () from /usr/lib/libxml2.so.2 #22 0x2c8643a3 in xmlNewNode () from /usr/lib/libxml2.so.2 #23 0x2c8644cc in xmlNewDocNode () from /usr/lib/libxml2.so.2 #24 0x2c8e19e8 in xmlSAX2StartElementNs () from /usr/lib/libxml2.so.2 #25 0x2cbb8105 in vsprintf () from /lib/libc.so.6 #26 0x7fb28940 in ?? () #27 0x0004 in ?? () #28 0x7fb28a00 in ?? () #29 0x00cb06d0 in ?? () #30 0x0069cbca in zend_parse_parameters (num_args=-5077864, type_spec=0x1 ) at /home/rick/php-5.1.1-nodebug/Zend/zend_API.c:635 #31 0x005862cc in zif_SoapClient___doRequest (ht=-5077864, return_value=0x2c864ace, return_value_ptr=0x0, this_ptr=0x8b9bfc, return_value_used=13890840) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2722 #32 0x00690e41 in zend_call_function (fci=0x1, fci_cache=0xd34b28) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:894 #33 0x006907f6 in call_user_function_ex (function_table=0x7fb28498, object_pp=0x1, function_name=0x0, retval_ptr_ptr=0x2cc17a00, param_count=13890840, params=0xd360e8, no_separation=1, symbol_table=0x1) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:578 #34 0x006906e2 in call_user_function (function_table=0x0, object_pp=0x7fb28ad0, function_name=0x7fb28b90, retval_ptr=0x7fb28da0, param_count=4, params=0x7fb28af0) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:551 #35 0x00584822 in do_request (this_ptr=0xd34b28, request=0x7fb28498, location=0xd3c208 "http://soap-server-ipWQLogin/soap/IWQLoginService";, action=0xd41018 "urn:WQLoginServiceIntf-IWQLoginService#GetUserUID", version=1, response=0x7fb28da0) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2273 #36 0x00584e83 in do_soap_call (this_ptr=0xd34b28, function=0xd37fe8 "GetUserUID", function_len=0, arg_count=1, real_args=0xd364c8, return_value=0xe68a68, location=0xd3c208 "http://soap-server-ip/WQLogin/soap/IWQLoginService";, soap_action=0x0, call_uri=0x0, soap_headers=0x0, output_headers=0x0) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2375 #37 0x00585c8f in zif_SoapClient___call (ht=-5077864, return_value=0xe68a68, return_value_ptr=0x0, this_ptr=0xd34b28, return_value_used=13890840) at /home/rick/php-5.1.1-nodebug/ext/soap/soap.c:2584 #38 0x00690e41 in zend_call_function (fci=0x7fb29040, fci_cache=0x2) at /home/rick/php-5.1.1-nodebug/Zend/zend_execute_API.c:894 #39 0x006ab4cb in zend_call_method (object_pp=0x7fb29100, obj_ce=0xcb06d0, fn_proxy=0xcb08b0, function_name=0x8c8700 "__call", function_name_len=6, retval_ptr_ptr=0x7fb29108, param_count=1, arg1=0xd360a8, arg2=0xd38088) at /home/rick/php-5.1.1-nodebug/Zend/zend_interfaces.c:88 #40 0x006b16be in zend_std_call_user_call (ht=13852840, return_value=0xd37e58, return_value_ptr=0x0, this_ptr=0xd34b28, return_value_used=13890840) at /home/rick/php-5.1.1-nodebug/Zend/zend_object_handlers.c:634 #41 0x006bfc09 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fb29bc0) at zend_vm_execute.h:188 #42 0x006bf4d4 in execute (op_array=0xd356a8) at zend_vm_execute.h:88 #43 0x0069b579 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/rick/php-5.1.1-nodebug/Zend/zend.c:1090 Previous Comments: [2005-12-07 11:20:47] rick at revenew dot nl This is the gdb backtrace without --enable-debug. This one is made with cli php, but that acts identical to the apache module. #0 0x in ?? () #1 0x0003 in ?? () #2 0x in ?? () #3 0x0004 in ?? () #4 0x7fe1b440 in ?? () #5 0x001d in ?? () #6 0x00c8 in ?? () #7 0x in ?? () #8 0x in ?? () #9 0x00bbd418