Repository navigation
Closed
Description
I didn't do anything special. Just started two servers, ran into the disconnect problem (#59), and then shut one of them down. This triggered an assertion failure:
info: Running rethinkdb 1.2.6-27-g0b8844-dirty (debug) (GCC 4.4.3)...
info: Creating directory /tmp/rethinkdb_data
info: Creating a default database for your convenience. (This is because you ran 'rethinkdb' without 'create', 'serve', or '--join', and the directory '/tmp/rethinkdb_data' did not already exist.)
info: Our machine ID is b09d350a-d75a-464c-9b88-85fd6570e92e
info: Listening for intracluster connections on port 29015.
info: Listening for client driver connections on port 28015.
info: Listening for administrative HTTP connections on port 8080.
info: Server ready
info: Connected to server "Invoker" 2078444c-3634-4c27-b514-91a2aec70a32
info: Disconnected from server "Invoker" 2078444c-3634-4c27-b514-91a2aec70a32
info: Connected to server "Invoker" 2078444c-3634-4c27-b514-91a2aec70a32
^Cinfo: Server got SIGINT; shutting down...
info: Shutting down client connections...
info: All client connections closed.
info: Shutting down storage engine... (This may take a while if you had a lot of unflushed data in the writeback cache.)
info: Storage engine shut down.
info: Disconnected from server "Invoker" 2078444c-3634-4c27-b514-91a2aec70a32
Version: rethinkdb 1.2.6-27-g0b8844-dirty (debug) (GCC 4.4.3)
error: Error in ./containers/intrusive_list.hpp at line 111:
error: Assertion failed: [value->parent_list == this]
error: Backtrace:
error: Wed Nov 14 19:35:19 2012
1: lazy_backtrace_t::lazy_backtrace_t() at backtrace.cc:251
2: format_backtrace(bool) at backtrace.cc:198
3: report_fatal_error(char const*, int, char const*, ...) at errors.cc:67
4: intrusive_list_t<perfmon_membership_t>::remove(perfmon_membership_t*) at intrusive_list.hpp:111
5: perfmon_collection_t::remove(perfmon_membership_t*) at core.cc:111
6: perfmon_membership_t::~perfmon_membership_t() at core.cc:128
7: perfmon_multi_membership_t::~perfmon_multi_membership_t() at core.cc:157
8: mc_cache_stats_t::~mc_cache_stats_t() at stats.hpp:8
9: scoped_ptr_t<mc_cache_stats_t>::reset() at scoped.hpp:32
10: scoped_ptr_t<mc_cache_stats_t>::~scoped_ptr_t() at scoped.hpp:17
11: mc_cache_t::~mc_cache_t() at mirrored.cc:1412
12: scc_cache_t<mc_cache_t>::~scc_cache_t() at types.hpp:101
13: scoped_ptr_t<scc_cache_t<mc_cache_t> >::reset() at scoped.hpp:33
14: scoped_ptr_t<scc_cache_t<mc_cache_t> >::~scoped_ptr_t() at scoped.hpp:17
15: metadata_persistence::persistent_file_t::~persistent_file_t() at persist.cc:95
16: run_rethinkdb_porcelain(extproc::spawner_t::info_t*, std::string const&, name_string_t const&, std::vector<host_and_port_t, std::allocator<host_and_port_t> > const&, service_ports_t, linux_io_backend_t, bool*, std::string, bool) at command_line.cc:309
17: void boost::_bi::list9<boost::_bi::value<extproc::spawner_t::info_t*>, boost::_bi::value<std::string>, boost::_bi::value<name_string_t>, boost::_bi::value<std::vector<host_and_port_t, std::allocator<host_and_port_t> > >, boost::_bi::value<service_ports_t>, boost::_bi::value<linux_io_backend_t>, boost::_bi::value<bool*>, boost::_bi::value<std::string>, boost::_bi::value<bool> >::operator()<void (*)(extproc::spawner_t::info_t*, std::string const&, name_string_t const&, std::vector<host_and_port_t, std::allocator<host_and_port_t> > const&, service_ports_t, linux_io_backend_t, bool*, std::string, bool), boost::_bi::list0>(boost::_bi::type<void>, void (*&)(extproc::spawner_t::info_t*, std::string const&, name_string_t const&, std::vector<host_and_port_t, std::allocator<host_and_port_t> > const&, service_ports_t, linux_io_backend_t, bool*, std::string, bool), boost::_bi::list0&, int) at bind.hpp:820
18: boost::_bi::bind_t<void, void (*)(extproc::spawner_t::info_t*, std::string const&, name_string_t const&, std::vector<host_and_port_t, std::allocator<host_and_port_t> > const&, service_ports_t, linux_io_backend_t, bool*, std::string, bool), boost::_bi::list9<boost::_bi::value<extproc::spawner_t::info_t*>, boost::_bi::value<std::string>, boost::_bi::value<name_string_t>, boost::_bi::value<std::vector<host_and_port_t, std::allocator<host_and_port_t> > >, boost::_bi::value<service_ports_t>, boost::_bi::value<linux_io_backend_t>, boost::_bi::value<bool*>, boost::_bi::value<std::string>, boost::_bi::value<bool> > >::operator()() at bind_template.hpp:21
19: boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, void (*)(extproc::spawner_t::info_t*, std::string const&, name_string_t const&, std::vector<host_and_port_t, std::allocator<host_and_port_t> > const&, service_ports_t, linux_io_backend_t, bool*, std::string, bool), boost::_bi::list9<boost::_bi::value<extproc::spawner_t::info_t*>, boost::_bi::value<std::string>, boost::_bi::value<name_string_t>, boost::_bi::value<std::vector<host_and_port_t, std::allocator<host_and_port_t> > >, boost::_bi::value<service_ports_t>, boost::_bi::value<linux_io_backend_t>, boost::_bi::value<bool*>, boost::_bi::value<std::string>, boost::_bi::value<bool> > >, void>::invoke(boost::detail::function::function_buffer&) at function_template.hpp:154
20: boost::function0<void>::operator()() const at function_template.hpp:1014
21: starter_t::run_wrapper(boost::function<void ()()> const&) at runtime.cc:54
22: boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>::operator()(starter_t*, boost::function<void ()()> const&) const at mem_fn_template.hpp:163
23: void boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > >::operator()<boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>&, boost::_bi::list0&, int) at bind.hpp:307
24: boost::_bi::bind_t<void, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > > >::operator()() at bind_template.hpp:21
25: boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf1<void, starter_t, boost::function<void ()()> const&>, boost::_bi::list2<boost::_bi::value<starter_t*>, boost::_bi::value<boost::function<void ()()> > > >, void>::invoke(boost::detail::function::function_buffer&) at function_template.hpp:154
26: boost::function0<void>::operator()() const at function_template.hpp:1014
27: callable_action_instance_t<boost::function<void ()()> >::run_action() at runtime_utils.hpp:57
28: callable_action_wrapper_t::run() at runtime_utils.cc:58
29: coro_t::run() at coroutines.cc:178
error: Exiting.
Trace/breakpoint trap (core dumped)
I'm unable to reproduce the issue.
Activity
mlucy commentedon Nov 15, 2012
This looks like memory corruption on the surface of it; I don't see any obvious code path where this could happen otherwise.
@Tryneus -- Is it possible that the uninitialized pointer at the root of #59 might have lead to some memory corruption?
Tryneus commentedon Nov 15, 2012
Good catch, I've considered this, and it's certainly possible. I think we should close this as a side-effect of #59, until it shows up again, if at all.
chore: T60 board update — 18th consecutive idle, CRON_PAUSE_REQUESTED…
chore: T60 board update — 18th consecutive idle, CRON_PAUSE_REQUESTED…