You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Humble] Removing a node with more than one auto-added callback group leaves a dangling guard condition in the executor #3410
component_container_mt: segmentation fault right after the unload (3/3 runs). With extra_group:=false (timer on the default group) the container survives (3/3).
component_container (single-threaded): aborts (SIGABRT) with extra_group:=true; survives with false.
In a larger node, gdb shows the fault in __rmw_wait (rmw_fastrtps_shared_cpp) on the guard condition of one of the removed node's callback groups, already destroyed by ~NodeBase.
Additional information
Executor::remove_node calls remove_callback_group_from_map for each of the node's groups. That function removes the group's guard condition from the memory strategy, and erases it from weak_groups_to_guard_conditions_, only inside the !has_node(...) && !has_node(...) branch, which is true only for the node's last group. Every earlier group's guard condition stays in the memory strategy as a raw pointer and dangles once the node is destroyed. The expired-group cleanup in wait_for_work does not catch it, because remove_callback_group_from_map has already erased the group from weak_groups_to_nodes_. Jazzy's executor rewrite removed this code; a Humble fix would move the guard-condition removal out of that branch.
Activity
christophebedard commentedon Nov 13, 2026
How did you come across this issue?
christophebedard commentedon Nov 13, 2026
Can you check if this happens without using a component container?