{"action":"created","issue":{"url":"https://api.github.com/repos/NICTA/stateline/issues/47","labels_url":"https://api.github.com/repos/NICTA/stateline/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/NICTA/stateline/issues/47/comments","events_url":"https://api.github.com/repos/NICTA/stateline/issues/47/events","html_url":"https://github.com/NICTA/stateline/issues/47","id":96209907,"number":47,"title":"Ungraceful termination, exemplified by cpp-demo","user":{"login":"youph","id":9361173,"avatar_url":"https://avatars.githubusercontent.com/u/9361173?v=3","gravatar_id":"","url":"https://api.github.com/users/youph","html_url":"https://github.com/youph","followers_url":"https://api.github.com/users/youph/followers","following_url":"https://api.github.com/users/youph/following{/other_user}","gists_url":"https://api.github.com/users/youph/gists{/gist_id}","starred_url":"https://api.github.com/users/youph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youph/subscriptions","organizations_url":"https://api.github.com/users/youph/orgs","repos_url":"https://api.github.com/users/youph/repos","events_url":"https://api.github.com/users/youph/events{/privacy}","received_events_url":"https://api.github.com/users/youph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NICTA/stateline/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T02:18:15Z","updated_at":"2015-08-25T13:42:10Z","closed_at":"2015-08-25T13:42:10Z","body":"When I run the cpp demo as\r\n```\r\n./stateline --config=cpp-demo-config.json\r\n```\r\nthe server works (i.e., produces the chains), but terminates with an ugly failure message:\r\n```\r\n...\r\nI0721 12:16:32.234241 12025 router.cpp:75] Router main's Poll thread has exited loop, must be shutting down\r\nF0721 12:16:32.440459 12029 thread.hpp:21] Exception thrown in child thread: Context was terminated\r\n*** Check failure stack trace: ***\r\n    @     0x7f5596d9fa0d  google::LogMessage::Fail()\r\n    @     0x7f5596da18c0  google::LogMessage::SendToLog()\r\n    @     0x7f5596d9f5d2  google::LogMessage::Flush()\r\n    @     0x7f5596da22de  google::LogMessageFatal::~LogMessageFatal()\r\n    @     0x7f559700a270  _ZZN9stateline13startInThreadINS_5comms15ServerHeartbeatEISt17reference_wrapperIN3zmq9context_tEES3_IKNS1_17HeartbeatSettingsEEEEESt6futureIbERbDpOT0_ENKUlOS6_OS9_E_clESG_SH_\r\n    @     0x7f559700906e  std::_Function_handler<>::_M_invoke()\r\n    @     0x7f5596fea7c2  std::__future_base::_State_baseV2::_M_do_set()\r\n    @     0x7f559665f36b  __pthread_once_slow\r\n    @     0x7f559700f975  _ZNSt6thread5_ImplISt12_Bind_simpleIFZNSt13__future_base17_Async_state_implIS1_IFZN9stateline13startInThreadINS4_5comms15ServerHeartbeatEJSt17reference_wrapperIN3zmq9context_tEES8_IKNS6_17HeartbeatSettingsEEEEESt6futureIbERbDpOT0_EUlOSB_OSE_E_SB_SE_EEbEC4EOSP_EUlvE_vEEE6_M_runEv\r\n    @     0x7f5596b3fe30  (unknown)\r\n    @     0x7f55966586aa  start_thread\r\n    @     0x7f559638deed  (unknown)\r\nAborted (core dumped)\r\n```\r\n\r\nAnd the worker disconnects from the server without throwing any error messages.\r\nIs this a 'normal' behaviour?"},"comment":{"url":"https://api.github.com/repos/NICTA/stateline/issues/comments/134590142","html_url":"https://github.com/NICTA/stateline/issues/47#issuecomment-134590142","issue_url":"https://api.github.com/repos/NICTA/stateline/issues/47","id":134590142,"user":{"login":"ltiao","id":1112238,"avatar_url":"https://avatars.githubusercontent.com/u/1112238?v=3","gravatar_id":"","url":"https://api.github.com/users/ltiao","html_url":"https://github.com/ltiao","followers_url":"https://api.github.com/users/ltiao/followers","following_url":"https://api.github.com/users/ltiao/following{/other_user}","gists_url":"https://api.github.com/users/ltiao/gists{/gist_id}","starred_url":"https://api.github.com/users/ltiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltiao/subscriptions","organizations_url":"https://api.github.com/users/ltiao/orgs","repos_url":"https://api.github.com/users/ltiao/repos","events_url":"https://api.github.com/users/ltiao/events{/privacy}","received_events_url":"https://api.github.com/users/ltiao/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T13:42:10Z","updated_at":"2015-08-25T13:42:10Z","body":"Duplicate of #29"}}