{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4611","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4611/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4611/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4611/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4611","id":98533529,"number":4611,"title":"DB crashed after routine operation due to guarantee failed","user":{"login":"qusiax","id":13167999,"avatar_url":"https://avatars.githubusercontent.com/u/13167999?v=3","gravatar_id":"","url":"https://api.github.com/users/qusiax","html_url":"https://github.com/qusiax","followers_url":"https://api.github.com/users/qusiax/followers","following_url":"https://api.github.com/users/qusiax/following{/other_user}","gists_url":"https://api.github.com/users/qusiax/gists{/gist_id}","starred_url":"https://api.github.com/users/qusiax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qusiax/subscriptions","organizations_url":"https://api.github.com/users/qusiax/orgs","repos_url":"https://api.github.com/users/qusiax/repos","events_url":"https://api.github.com/users/qusiax/events{/privacy}","received_events_url":"https://api.github.com/users/qusiax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-01T12:23:12Z","updated_at":"2015-08-03T18:01:40Z","closed_at":null,"body":"    2015-08-01T06:32:48.436125013 462060.834928s error: Error in src/extproc/js_runner.cc at line 178:\r\n    2015-08-01T06:32:48.450451318 462060.848512s error: Guarantee failed: [fn_id != __null] \r\n    2015-08-01T06:32:48.450466521 462060.848527s error: Backtrace:\r\n    2015-08-01T06:32:48.993639350 462061.391702s error: Sat Aug  1 06:32:48 2015\\n\\n1: backtrace_t::backtrace_t() at ??:?\\n2: format_backtrace(bool) at ??:?\\n3: report_fatal_error(char const*, int, char const*, ...) at ??:?\\n4: js_runner_t::call(std::string const&, std::vector<ql::datum_t, std::allocator<ql::datum_t> > const&, js_runner_t::req_config_t const&) at ??:?\\n5: ql::js_func_t::call(ql::env_t*, std::vector<ql::datum_t, std::allocator<ql::datum_t> > const&, ql::eval_flags_t) const at ??:?\\n6: ql::func_t::call(ql::env_t*, ql::datum_t, ql::eval_flags_t) const at ??:?\\n7: ql::map_trans_t::lst_transform(ql::env_t*, std::vector<ql::datum_t, std::allocator<ql::datum_t> >*, ql::datum_t const&) at ??:?\\n8: ql::ungrouped_op_t::operator()(ql::env_t*, std::map<ql::datum_t, std::vector<ql::datum_t, std::allocator<ql::datum_t> >, optional_datum_less_t, std::allocator<std::pair<ql::datum_t const, std::vector<ql::datum_t, std::allocator<ql::datum_t> > > > >*, ql::datum_t const&) at ??:?\\n9: rget_cb_t::handle_pair(scoped_key_value_t&&, concurrent_traversal_fifo_enforcer_signal_t) at ??:?\\n10: concurrent_traversal_adapter_t::handle_pair_coro(scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t) at ??:?\\n11: callable_action_instance_t<std::_Bind<std::_Mem_fn<void (concurrent_traversal_adapter_t::*)(scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t)> (concurrent_traversal_adapter_t*, scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t)> >::run_action() at ??:?\\n12: coro_t::run() at ??:?\r\n    2015-08-01T06:32:48.993715075 462061.391775s error: Exiting.\r\n\r\nThis happened after 4 days of uptime with all commands having been tested. the error log doesn't look to have enough information for me to debug on the application level. Any tips?"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/127352934","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4611#issuecomment-127352934","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4611","id":127352934,"user":{"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},"created_at":"2015-08-03T18:01:40Z","updated_at":"2015-08-03T18:01:40Z","body":"Hi @qusiax, thank you for reporting this.\r\nFrom the looks of it, this is related to the execution of an `r.js` statement. It definitely looks like a server bug.\r\n\r\nHere's the reformatted version of the backtrace:\r\n```\r\nError in src/extproc/js_runner.cc at line 178:\r\nGuarantee failed: [fn_id != __null] \r\nBacktrace:\r\nSat Aug  1 06:32:48 2015\r\n\r\n1: backtrace_t::backtrace_t() at ??:?\r\n2: format_backtrace(bool) at ??:?\r\n3: report_fatal_error(char const*, int, char const*, ...) at ??:?\r\n4: js_runner_t::call(std::string const&, std::vector<ql::datum_t, std::allocator<ql::datum_t> > const&, js_runner_t::req_config_t const&) at ??:?\r\n5: ql::js_func_t::call(ql::env_t*, std::vector<ql::datum_t, std::allocator<ql::datum_t> > const&, ql::eval_flags_t) const at ??:?\r\n6: ql::func_t::call(ql::env_t*, ql::datum_t, ql::eval_flags_t) const at ??:?\r\n7: ql::map_trans_t::lst_transform(ql::env_t*, std::vector<ql::datum_t, std::allocator<ql::datum_t> >*, ql::datum_t const&) at ??:?\r\n8: ql::ungrouped_op_t::operator()(ql::env_t*, std::map<ql::datum_t, std::vector<ql::datum_t, std::allocator<ql::datum_t> >, optional_datum_less_t, std::allocator<std::pair<ql::datum_t const, std::vector<ql::datum_t, std::allocator<ql::datum_t> > > > >*, ql::datum_t const&) at ??:?\r\n9: rget_cb_t::handle_pair(scoped_key_value_t&&, concurrent_traversal_fifo_enforcer_signal_t) at ??:?\r\n10: concurrent_traversal_adapter_t::handle_pair_coro(scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t) at ??:?\r\n11: callable_action_instance_t<std::_Bind<std::_Mem_fn<void (concurrent_traversal_adapter_t::*)(scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t)> (concurrent_traversal_adapter_t*, scoped_key_value_t*, semaphore_acq_t*, fifo_enforcer_write_token_t, auto_drainer_t::lock_t)> >::run_action() at ??:?\r\n12: coro_t::run() at ??:?\r\n```\r\n\r\n@Tryneus any ideas about this one?"}}