{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5438","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5438/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5438/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5438/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5438","id":135731805,"number":5438,"title":"Error in src/rdb_protocol/datum.cc at line 1470: Unreachable code","user":{"login":"tatsujin1","id":6277212,"avatar_url":"https://avatars.githubusercontent.com/u/6277212?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsujin1","html_url":"https://github.com/tatsujin1","followers_url":"https://api.github.com/users/tatsujin1/followers","following_url":"https://api.github.com/users/tatsujin1/following{/other_user}","gists_url":"https://api.github.com/users/tatsujin1/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsujin1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsujin1/subscriptions","organizations_url":"https://api.github.com/users/tatsujin1/orgs","repos_url":"https://api.github.com/users/tatsujin1/repos","events_url":"https://api.github.com/users/tatsujin1/events{/privacy}","received_events_url":"https://api.github.com/users/tatsujin1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/pr:high","name":"pr:high","color":"e10c02"},{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/tp:bug","name":"tp:bug","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"mlucy","id":1777134,"avatar_url":"https://avatars.githubusercontent.com/u/1777134?v=3","gravatar_id":"","url":"https://api.github.com/users/mlucy","html_url":"https://github.com/mlucy","followers_url":"https://api.github.com/users/mlucy/followers","following_url":"https://api.github.com/users/mlucy/following{/other_user}","gists_url":"https://api.github.com/users/mlucy/gists{/gist_id}","starred_url":"https://api.github.com/users/mlucy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlucy/subscriptions","organizations_url":"https://api.github.com/users/mlucy/orgs","repos_url":"https://api.github.com/users/mlucy/repos","events_url":"https://api.github.com/users/mlucy/events{/privacy}","received_events_url":"https://api.github.com/users/mlucy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/104","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.2.x","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/104/labels","id":1249551,"number":104,"title":"2.2.x","description":"","creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":4,"state":"open","created_at":"2015-08-11T07:18:11Z","updated_at":"2016-02-29T22:39:31Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2016-02-23T13:06:01Z","updated_at":"2016-03-01T00:18:53Z","closed_at":null,"body":"v2.2.3 on debian 8.2\r\n\r\nAfter it was automatically restarted (by systemd) it seems to work fine.\r\n\r\nIf the crash was caused by some specific data in the db I unfortunately have no way to find what that could've been.\r\n\r\n```\r\n2016-02-23T12:38:00.750202800 3470395.004338s error: Error in src/rdb_protocol/datum.cc at line 1470:\r\n2016-02-23T12:38:00.750480828 3470395.004616s error: Unreachable code:\r\n2016-02-23T12:38:00.750521538 3470395.004656s error: Backtrace:\r\n2016-02-23T12:38:01.079540958 3470395.333680s error: Tue Feb 23 12:38:00 2016\r\n\r\n1 [0xa8b5f0]: backtrace_t::backtrace_t() at ??:?\r\n2 [0xa8b969]: format_backtrace(bool) at ??:?\r\n3 [0xd00a9d]: report_fatal_error(char const*, int, char const*, ...) at ??:?\r\n4 [0x8e26be]: void ql::datum_t::write_json_unchecked_stack<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const at ??:?\r\n5 [0x8e3845]: int call_with_enough_stack<int, void call_with_enough_stack<void ql::datum_t::write_json<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const::{lambda()#1}>(void ql::datum_t::write_json<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const::{lambda()#1}&&, unsigned long)::{lambda()#1}>(void call_with_enough_stack<void ql::datum_t::write_json<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const::{lambda()#1}>(void ql::datum_t::write_json<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const::{lambda()#1}&&, unsigned long)::{lambda()#1}&&, unsigned long) at ??:?\r\n6 [0x8e38d1]: void ql::datum_t::write_json<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator> >(rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::RAllocator>*) const at ??:?\r\n7 [0xa806b8]: write_response_internal(ql::response_t*, rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::RAllocator>*, bool) at ??:?\r\n8 [0xa8253d]: json_protocol_t::send_response(ql::response_t*, long, linux_tcp_conn_t*, signal_t*) at ??:?\r\n9 [0xa882d9]: void save_exception<void query_server_t::connection_loop<json_protocol_t>(linux_tcp_conn_t*, unsigned long, ql::query_cache_t*, signal_t*)::{lambda()#1}::operator()() const::{lambda()#1}>(std::__exception_ptr::exception_ptr*, std::string*, cond_t*, void query_server_t::connection_loop<json_protocol_t>(linux_tcp_conn_t*, unsigned long, ql::query_cache_t*, signal_t*)::{lambda()#1}::operator()() const::{lambda()#1}&&) at ??:?\r\n10 [0xa8884a]: void query_server_t::connection_loop<json_protocol_t>(linux_tcp_conn_t*, unsigned long, ql::query_cache_t*, signal_t*)::{lambda()#1}::operator()() const at ??:?\r\n11 [0x99c518]: coro_t::run() at ??:?\r\n2016-02-23T12:38:01.079807642 3470395.333942s error: Exiting.\r\n```\r\n\r\nedit: grammar"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/190464131","html_url":"https://github.com/rethinkdb/rethinkdb/issues/5438#issuecomment-190464131","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5438","id":190464131,"user":{"login":"mlucy","id":1777134,"avatar_url":"https://avatars.githubusercontent.com/u/1777134?v=3","gravatar_id":"","url":"https://api.github.com/users/mlucy","html_url":"https://github.com/mlucy","followers_url":"https://api.github.com/users/mlucy/followers","following_url":"https://api.github.com/users/mlucy/following{/other_user}","gists_url":"https://api.github.com/users/mlucy/gists{/gist_id}","starred_url":"https://api.github.com/users/mlucy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlucy/subscriptions","organizations_url":"https://api.github.com/users/mlucy/orgs","repos_url":"https://api.github.com/users/mlucy/repos","events_url":"https://api.github.com/users/mlucy/events{/privacy}","received_events_url":"https://api.github.com/users/mlucy/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T00:18:53Z","updated_at":"2016-03-01T00:18:53Z","body":"Thanks for the great test cases @tatsujin1 !\r\n\r\nI have a fix for this in branch `mlucy_5483`, CR 3508 by @danielmewes ."}}