fix: Fixed possible memory violation after remove_node#2767
fix: Fixed possible memory violation after remove_node#2767jmachowinski wants to merge 1 commit intoros2:rollingfrom
Conversation
fujitatomoya
left a comment
There was a problem hiding this comment.
lgtm with one comment.
|
@jmachowinski do we want to backport the similar fix to jazzy and humble without changing function signature? |
This would be a behavior change, so I think we can't backport |
|
Pulls: #2767 |
|
@ahcorde I think rerunning the CI won't change the result. I need to investigate whats going on, but did not find time yet... |
Up until this change, after the call to remove node, entities of a node might still be in the use by the executor. Therefore direct deletion of the node after the call might result in a memory violation if an entity would do a callback into the node itself. From now on, by default the remove_node will be blocking until all entities are released by the executor, which should be the expected behavior for most users. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
1e40f42 to
9a481a1
Compare
|
Pulls: #2767 |
|
rerunning CI to get the failing tests, old logs seems to have been deleted |
ahcorde
left a comment
There was a problem hiding this comment.
Do you mind to merge with rolling ?
|
This patch causes unwanted side effects, and I did not find time to rework it yet |
Up until this change, after the call to remove node, entities of a node might still be in the use by the executor. Therefore direct deletion of the node after the call might result in a memory violation if an entity would do a callback into the node itself. From now on, by default the remove_node will be blocking until all entities are released by the executor, which should be the expected behavior for most users.
This commit fixes #2749