Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
e67686d7
Unverified
Commit
e67686d7
authored
Jul 16, 2021
by
Dominik Charousset
Committed by
GitHub
Jul 16, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1282
Properly clear the registry on shutdown
parents
76a31e23
f1d99028
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
CHANGELOG.md
CHANGELOG.md
+3
-0
libcaf_core/src/actor_registry.cpp
libcaf_core/src/actor_registry.cpp
+8
-1
libcaf_core/src/actor_system.cpp
libcaf_core/src/actor_system.cpp
+0
-2
No files found.
CHANGELOG.md
View file @
e67686d7
...
...
@@ -11,6 +11,9 @@ is based on [Keep a Changelog](https://keepachangelog.com).
encountering
`SSL_ERROR_WANT_READ`
. The crash manifested if CAF resumed a
write operation but failed to fully reset its state. The state management (and
consequently the crash) has been fixed.
-
CAF now clears the actor registry before calling the destructors of loaded
modules. This fixes undefined behavior that could occur in rare cases where
actor cleanup code could run after loaded modules had been destroyed.
## [0.18.4] - 2021-07-07
...
...
libcaf_core/src/actor_registry.cpp
View file @
e67686d7
...
...
@@ -148,7 +148,14 @@ void actor_registry::start() {
}
void
actor_registry
::
stop
()
{
// nop
{
exclusive_guard
guard
{
instances_mtx_
};
entries_
.
clear
();
}
{
exclusive_guard
guard
{
named_entries_mtx_
};
named_entries_
.
clear
();
}
}
}
// namespace caf
libcaf_core/src/actor_system.cpp
View file @
e67686d7
...
...
@@ -384,8 +384,6 @@ actor_system::~actor_system() {
};
drop
(
spawn_serv_
);
drop
(
config_serv_
);
registry_
.
erase
(
"SpawnServ"
);
registry_
.
erase
(
"ConfigServ"
);
// group module is the first one, relies on MM
groups_
.
stop
();
// stop modules in reverse order
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment