I´m developing a client and a server with xmlrpc++. In the client application I create one XmlRpcClient to execute multiple rpc calls.
If the server is shutdown after at least one rpc call has already succeeded, then the client will crash the next time while calling the XmlRpcClient::execute method. The crash is caused by a not dereferencable list iterator in XmlRpcDispatch::work (around line 140: thisIt->getMask() = newMask;).
The server is shutdown this way.
void RpcServer::Run
{
while( !RpcServer::_stopServer )
{
_xmlRpcServer.work( 10.0 );
}
}
Any suggestions how to avoid this crash?
Thanks in advance.
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you cannot get the cvs version (i.e. you are behind a company proxy), you can use the distributed 0.7 version and apply the patch number 1094420 (see the patch section)
José
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I´m developing a client and a server with xmlrpc++. In the client application I create one XmlRpcClient to execute multiple rpc calls.
If the server is shutdown after at least one rpc call has already succeeded, then the client will crash the next time while calling the XmlRpcClient::execute method. The crash is caused by a not dereferencable list iterator in XmlRpcDispatch::work (around line 140: thisIt->getMask() = newMask;).
The server is shutdown this way.
void RpcServer::Run
{
while( !RpcServer::_stopServer )
{
_xmlRpcServer.work( 10.0 );
}
}
Any suggestions how to avoid this crash?
Thanks in advance.
Christian
I think that is fixed in the cvs sources.
If you can try it (I haven't built the cvs on anything except windows yet), let me know if it is fixed.
OK, I will try it and post the result. This can take a few days.
Hi,
If you cannot get the cvs version (i.e. you are behind a company proxy), you can use the distributed 0.7 version and apply the patch number 1094420 (see the patch section)
José
Hello,
I`ve tried it sugestions and here are the results:
* patch 1094420 applied to version 0.7: The client still crashes.
* CVS sources: The client does not crash anymore, but now it hangs.
* patch 1094420 applied to CVS sources: This works. The client does not crash or hang; XmlRpcClient::execute returns false.
Christian
Thanks for put here what you found