-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters