net_plugin_impl currently destroys its named_thread_pool before a number of users of it such as expire_timer. Those users can, and do, access their executor on their destruction which in this case is accessing an already destroyed executor.
Move the named_thread_pool up to the top so it's destroyed last. A nice side effect of this is being able to clean up a number of the unique_ptrs to just being a plain member.
net_plugin_impl
currently destroys itsnamed_thread_pool
before a number of users of it such asexpire_timer
. Those users can, and do, access their executor on their destruction which in this case is accessing an already destroyed executor.Move the
named_thread_pool
up to the top so it's destroyed last. A nice side effect of this is being able to clean up a number of theunique_ptr
s to just being a plain member.