{"action":"created","issue":{"url":"https://api.github.com/repos/rpclib/rpclib/issues/161","repository_url":"https://api.github.com/repos/rpclib/rpclib","labels_url":"https://api.github.com/repos/rpclib/rpclib/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/rpclib/rpclib/issues/161/comments","events_url":"https://api.github.com/repos/rpclib/rpclib/issues/161/events","html_url":"https://github.com/rpclib/rpclib/issues/161","id":268936676,"number":161,"title":"rpclib crashes when client closes connection","user":{"login":"sytelus","id":2096835,"avatar_url":"https://avatars3.githubusercontent.com/u/2096835?v=4","gravatar_id":"","url":"https://api.github.com/users/sytelus","html_url":"https://github.com/sytelus","followers_url":"https://api.github.com/users/sytelus/followers","following_url":"https://api.github.com/users/sytelus/following{/other_user}","gists_url":"https://api.github.com/users/sytelus/gists{/gist_id}","starred_url":"https://api.github.com/users/sytelus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sytelus/subscriptions","organizations_url":"https://api.github.com/users/sytelus/orgs","repos_url":"https://api.github.com/users/sytelus/repos","events_url":"https://api.github.com/users/sytelus/events{/privacy}","received_events_url":"https://api.github.com/users/sytelus/received_events","type":"User","site_admin":false},"labels":[{"id":290688037,"url":"https://api.github.com/repos/rpclib/rpclib/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-26T22:52:45Z","updated_at":"2017-10-28T09:31:12Z","closed_at":null,"author_association":"NONE","body":"I updated rpclib to commit 9885c01db61c6defd412b0c08602d9af5ddf2633 and have started seeing this issue in AirSim. Whenever client closes connection (while rpc server is still executing the last request), the rpc server is crashing. I'm running rpc server in in async mode with 4 threads.\r\n\r\n**Exception message**\r\n\r\nException thrown at 0x00007FFB05EC445D (ntdll.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.\r\n\r\n**Call Stack**\r\n\r\n```\r\n \tntdll.dll!00007ffb05ec445d()\tUnknown\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::strand_service::do_post(class clmdep_asio::detail::strand_service::strand_impl * &,class clmdep_asio::detail::win_iocp_operation *,bool)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::strand_service::post<class <lambda_bf124d0559dff89781f6285bbd7a9e99> >(class clmdep_asio::detail::strand_service::strand_impl * &,class <lambda_bf124d0559dff89781f6285bbd7a9e99> &)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::io_service::strand::post<class <lambda_bf124d0559dff89781f6285bbd7a9e99> >(class <lambda_bf124d0559dff89781f6285bbd7a9e99> &&)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::win_iocp_socket_recv_op<class clmdep_asio::mutable_buffers_1,class clmdep_asio::detail::wrapped_handler<class clmdep_asio::io_service::strand,class <lambda_4abbd431c2e1df4c2e57881306415a2e>,struct clmdep_asio::detail::is_continuation_if_running> >::ptr::~ptr(void)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::completion_handler<class <lambda_3603deb27010a7192a6e634b4febe106> >::do_complete(class clmdep_asio::detail::win_iocp_io_service *,class clmdep_asio::detail::win_iocp_operation *,class std::error_code const &,unsigned __int64)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::win_iocp_io_service::do_one(bool,class std::error_code &)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!clmdep_asio::detail::win_iocp_io_service::run(class std::error_code &)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!rpc::server::operator=(class rpc::server &&)\tC++\r\n \tUE4Editor-AirSim-Win64-DebugGame.dll!std::_LaunchPad<class std::unique_ptr<class std::tuple<class std::function<void > >,struct std::default_delete<class std::tuple<class std::function<void > > > > >::_Run(class std::_LaunchPad<class std::unique_ptr<class std::tuple<class std::function<void > >,struct std::default_delete<class std::tuple<class std::function<void > > > > > *)\tC++\r\n>\tUE4Editor-AirSim-Win64-DebugGame.dll!std::_Pad::_Call_func(void * _Data) Line 210\tC++\r\n \tucrtbase.dll!00007ffb02640369()\tUnknown\r\n \tkernel32.dll!00007ffb04a82774()\tUnknown\r\n \tntdll.dll!00007ffb05f20d51()\tUnknown\r\n\r\n```\r\n\r\nRelated issue in AirSim: https://github.com/Microsoft/AirSim/issues/567"},"comment":{"url":"https://api.github.com/repos/rpclib/rpclib/issues/comments/340165108","html_url":"https://github.com/rpclib/rpclib/issues/161#issuecomment-340165108","issue_url":"https://api.github.com/repos/rpclib/rpclib/issues/161","id":340165108,"user":{"login":"sztomi","id":240594,"avatar_url":"https://avatars1.githubusercontent.com/u/240594?v=4","gravatar_id":"","url":"https://api.github.com/users/sztomi","html_url":"https://github.com/sztomi","followers_url":"https://api.github.com/users/sztomi/followers","following_url":"https://api.github.com/users/sztomi/following{/other_user}","gists_url":"https://api.github.com/users/sztomi/gists{/gist_id}","starred_url":"https://api.github.com/users/sztomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sztomi/subscriptions","organizations_url":"https://api.github.com/users/sztomi/orgs","repos_url":"https://api.github.com/users/sztomi/repos","events_url":"https://api.github.com/users/sztomi/events{/privacy}","received_events_url":"https://api.github.com/users/sztomi/received_events","type":"User","site_admin":false},"created_at":"2017-10-28T09:31:12Z","updated_at":"2017-10-28T09:31:12Z","author_association":"COLLABORATOR","body":"@sytelus I fixed the issue I mentioned above and released as [v2.2.1](https://github.com/rpclib/rpclib/releases/tag/v2.2.1). Please update to this version and let me know if the issue persists."}}
{"actor":{"display_login":"sztomi"}}