{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4634","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4634/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4634/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4634/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4634","id":99268735,"number":4634,"title":"JS crashes server","user":{"login":"let4be","id":4147061,"avatar_url":"https://avatars.githubusercontent.com/u/4147061?v=3","gravatar_id":"","url":"https://api.github.com/users/let4be","html_url":"https://github.com/let4be","followers_url":"https://api.github.com/users/let4be/followers","following_url":"https://api.github.com/users/let4be/following{/other_user}","gists_url":"https://api.github.com/users/let4be/gists{/gist_id}","starred_url":"https://api.github.com/users/let4be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/let4be/subscriptions","organizations_url":"https://api.github.com/users/let4be/orgs","repos_url":"https://api.github.com/users/let4be/repos","events_url":"https://api.github.com/users/let4be/events{/privacy}","received_events_url":"https://api.github.com/users/let4be/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/17","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/duplicate","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/17/labels","id":299323,"number":17,"title":"duplicate","description":"The scope of this issue is covered by another issue. The closing comment should link to the other issue.","creator":{"login":"AtnNn","id":706854,"avatar_url":"https://avatars.githubusercontent.com/u/706854?v=3","gravatar_id":"","url":"https://api.github.com/users/AtnNn","html_url":"https://github.com/AtnNn","followers_url":"https://api.github.com/users/AtnNn/followers","following_url":"https://api.github.com/users/AtnNn/following{/other_user}","gists_url":"https://api.github.com/users/AtnNn/gists{/gist_id}","starred_url":"https://api.github.com/users/AtnNn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtnNn/subscriptions","organizations_url":"https://api.github.com/users/AtnNn/orgs","repos_url":"https://api.github.com/users/AtnNn/repos","events_url":"https://api.github.com/users/AtnNn/events{/privacy}","received_events_url":"https://api.github.com/users/AtnNn/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":439,"state":"closed","created_at":"2013-03-29T20:23:12Z","updated_at":"2015-08-05T22:58:50Z","due_on":null,"closed_at":"2013-06-11T02:20:11Z"},"comments":11,"created_at":"2015-08-05T18:32:28Z","updated_at":"2015-08-06T07:45:14Z","closed_at":"2015-08-05T19:08:57Z","body":"I was very surprised to see rethinkdb server crashed, when I dived into logs I saw this:\r\n\r\n```\r\n\r\n2015-08-02T15:53:19.320166650 0.255873s notice: Server ready, \"dev_af5\" 4c92ac8d-f927-4a35-804a-a10f873cb207\r\n2015-08-02T19:44:12.407482170 13853.343191s error: Error in src/extproc/js_runner.cc at line 178:\r\n2015-08-02T19:44:12.407541948 13853.343249s error: Guarantee failed: [fn_id != __null]\r\n2015-08-02T19:44:12.407555753 13853.343262s error: Backtrace:\r\n2015-08-02T19:44:12.960427980 13853.896137s error: Sun Aug  2 19:44:12 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: ql::eager_datum_stream_t::next_grouped_batch(ql::env_t*, ql::batchspec_t const&, 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> > > > >*) at ??:?\\n10: ql::eager_datum_stream_t::next_batch_impl(ql::env_t*, ql::batchspec_t const&) at ??:?\\n11: ql::datum_stream_t::next_batch(ql::env_t*, ql::batchspec_t const&) at ??:?\\n12: ql::query_cache_t::ref_t::serve(ql::env_t*, Response*) at ??:?\\n13: ql::query_cache_t::ref_t::fill_response(Response*) at ??:?\\n14: ql::run(ql::query_id_t&&, ql::protob_t<Query>, Response*, ql::query_cache_t*, signal_t*) at ??:?\\n15: rdb_query_server_t::run_query(ql::query_id_t&&, ql::protob_t<Query> const&, Response*, ql::query_cache_t*, signal_t*) at ??:?\\n16: 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(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*)#1}::operator()(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*) 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(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*)#1}::operator()(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*) const::{lambda()#1}&&) at ??:?\\n17: void query_server_t::connection_loop<json_protocol_t>(linux_tcp_conn_t*, unsigned long, ql::query_cache_t*, signal_t*)::{lambda(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*)#1}::operator()(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*) const at ??:?\\n18: std_function_callback_t<std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > > >::coro_pool_callback(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, signal_t*) at ??:?\\n19: coro_pool_t<std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > > >::worker_run(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, auto_drainer_t::lock_t) at ??:?\\n20: callable_action_instance_t<std::_Bind<std::_Mem_fn<void (coro_pool_t<std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > > >::*)(std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, auto_drainer_t::lock_t)> (coro_pool_t<std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > > >*, std::_List_iterator<std::pair<ql::query_id_t, ql::protob_t<Query> > >, auto_drainer_t::lock_t)> >::run_action() at ??:?\\n21: coro_t::run() at ??:?\r\n2015-08-02T19:44:12.960562205 13853.896269s error: Exiting.\r\n2015-08-02T19:47:26.141743199 0.084675s notice: Running rethinkdb 2.0.4~0trusty (GCC 4.8.2)...\r\n2015-08-02T19:47:26.159450259 0.102384s notice: Running on Linux 3.13.0-32-generic x86_64\r\n\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/128280287","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4634#issuecomment-128280287","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4634","id":128280287,"user":{"login":"let4be","id":4147061,"avatar_url":"https://avatars.githubusercontent.com/u/4147061?v=3","gravatar_id":"","url":"https://api.github.com/users/let4be","html_url":"https://github.com/let4be","followers_url":"https://api.github.com/users/let4be/followers","following_url":"https://api.github.com/users/let4be/following{/other_user}","gists_url":"https://api.github.com/users/let4be/gists{/gist_id}","starred_url":"https://api.github.com/users/let4be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/let4be/subscriptions","organizations_url":"https://api.github.com/users/let4be/orgs","repos_url":"https://api.github.com/users/let4be/repos","events_url":"https://api.github.com/users/let4be/events{/privacy}","received_events_url":"https://api.github.com/users/let4be/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T07:45:14Z","updated_at":"2015-08-06T07:45:14Z","body":"Thanks you very much! Totally makes sense"}}