server side segfaults.
| From: | Alan Knowles | Date: | Sat, 17 Aug 2002 15:20:37 +0000 |
| Subject: | server side segfaults. | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-233@lists.php.net to get a copy of this message | ||
ok, slowly getting somewhere debugging the server side, this is the respose from a simple request,
looks like I'll have to build it statically to debug it :(
(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x42605594 in get_binding_from_type () from /usr/lib/php4/20020429/soap.so (gdb) bt #0 0x42605594 in get_binding_from_type () from /usr/lib/php4/20020429/soap.so #1 0x42602abb in deseralize_function_call () from /usr/lib/php4/20020429/soap.so #2 0x42600674 in zif_handle () from /usr/lib/php4/20020429/soap.so #3 0x40273867 in execute () from /usr/lib/apache/1.3/libphp4.so #4 0x4028162e in zend_execute_scripts () from /usr/lib/apache/1.3/libphp4.so #5 0x4028ed86 in php_execute_script () from /usr/lib/apache/1.3/libphp4.so #6 0x4028a8ee in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #7 0x4028b3ee in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #8 0x4028b455 in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #9 0x08053a94 in ap_invoke_handler () This is the client request 'raw' data.POST /akbkhome/soap.php HTTP/1.1 Connection: close Accept: text/html; text/xml; text/plain User-Agent: PHP SOAP 0.1 Host: devel.akbkhome.com Content-Type: text/xml Content-Length: 497 SOAPAction: "urn:HelloWorld#hello_soap" <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body xmlns:ns1="urn:HelloWorld"><ns1:hello_soap><param0 xsi:type="xsd:string">xxxx</param0></ns1:hello_soap></SOAP-ENV:Body></SOAP-ENV:Envelope> and source.. (client side) <?php //simple example to check soap extension client is working.. dl('soap.so'); print "create client\n"; $soapclient = new SoapObject("http://devel.akbkhome.com/akbkhome/soap.php", "urn:HelloWorld "); print_r($soapclient); echo "sending getquote\n"; $ret = $soapclient->hello_soap("xxxx"); print_r($ret); print "\ndone\n\n"; ?> and server (side) .... <? // server test. dl('soap.so'); $server = new SoapServer("urn:HelloWorld"); $server->addFunction("hello_soap"); $server->handle(); function hello_soap($message) { return "PHP-SOAP says ($message)"; } ?>