Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two destruction order issues causing segfaults during shutdown #789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 21, 2024

  1. Fix two destruction order issues causing segfaults during shutdown

    1. `application_impl::~application_impl` calls the `plugin_manager` when
       `VSOMEIP_ENABLE_MULTIPLE_ROUTING_MANAGERS` is not defined.
       Therefore it should hold a `shared_ptr` to it instead of calling
       `plugin_manager::get()` in the destructor, in order to prevent the
       global `the_plugin_manager__` instance being destroyed before it is.
    2. `routing_manager_impl::~routing_manager_impl` calls `utility`
       functions. Therefore destroy the `routing_` instance in
       `application_impl::shutdown` to ensure that this happens before the
       `utility` global variables are destroyed.
    hefroy committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    00a206d View commit details
    Browse the repository at this point in the history