#43437 [Com]: Second SOAP call causes segfault
| From: | bartosz dot kubek at google dot com | Date: | Tue, 22 Dec 2009 11:03:30 +0000 |
| Subject: | #43437 [Com]: Second SOAP call causes segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146030@lists.php.net to get a copy of this message | ||
ID: 43437
Comment by: bartosz dot kubek at google dot com
Reported By: denis dot arh at gmail dot com
Status: No Feedback
Bug Type: SOAP related
Operating System: CentOS 5
PHP Version: 5.2.5
New Comment:
PHP 5.2.6; CentoOS5 and Ubuntu 8.04
I have exactly the same problem on both machines.
I can send ~300 SoapClient requests, and when one of it results false
(null) the followup one causes segFault (script crashes and stops)
Any news here?
Previous Comments:
------------------------------------------------------------------------
[2009-02-21 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-02-13 22:18:57] felipe@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-06-06 21:10:39] john dot navratil at sbcglobal dot net
OS: Solaris 8
PHP: 5.2.4 and 5.2.6
SOAP Server Example -------:
<?
function myMethod($user, $pwd)
{
$rslt = str_repeat('x', 7444);
return $rslt;
}
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$server = new SoapServer("http://myURL/my.wsdl");
$server->addFunction("myMethod");
?>
SOAP Client test code -------:
<?php
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache --
remove after testing
$client = new SoapClient("http://myURL/my.wsdl");
try
{
print($client->myMethod("asdf", "asdf"));
print($client->myMethod("asdf", "asdf"));
}
catch (SoapFault $exception)
{
echo $exception;
}
?>
Attempting to return a string 7443 X's succeeds. 7444 fails with
message: PHP Warning: SoapClient::__doRequest(): 1 bytes of buffered
data lost during stream conversion!. After failure, a second SOAP
invocation results in a segmentation fault.
FWIW: Hitting the same SOAP server with a VBScript test script doesn't
exhibit the error.
------------------------------------------------------------------------
[2007-11-29 12:12:16] denis dot arh at gmail dot com
Tried with the latest PHP (from the link you gave me) - still no luck
#0 0x0021f333 in strlen () from /lib/libc.so.6
#1 0x0817a9b6 in get_http_header_value (headers=0x0, type=0x83b8fec
"HTTP/") at /usr/src/php/php5.2-200711290930/ext/soap/php_http.c:1144
#2 0x0817caef in make_http_soap_request (this_ptr=0x9fd5290,
buf=0xa00c740 "<?xml version=\"1.0\"
.....
------------------------------------------------------------------------
[2007-11-28 12:45:22] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
I think it was fixed already, so please try the snapshot to verify.
------------------------------------------------------------------------
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/43437
--
Edit this bug report at http://bugs.php.net/?id=43437&edit=1