Menu

Client crash after server shutdown

Help
chd
2008-06-10
2013-04-24
  • chd

    chd - 2008-06-10

    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

     
    • Chris Morley

      Chris Morley - 2008-06-10

      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.

       
      • chd

        chd - 2008-06-12

        OK, I will try it and post the result. This can take a few days.

         
    • quique123

      quique123 - 2008-06-17

      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é

       
    • chd

      chd - 2008-06-17

      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

       
    • quique123

      quique123 - 2008-06-19

      Thanks for put here what you found

       

Log in to post a comment.