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
MoveGroupMoveAction detached goal workers can race shutdown, cancellation, and overlapping goals #3837
MoveGroupMoveAction::initialize() accepts every goal and starts a detached thread that captures a raw this. The thread continues to use the capability context and shared per-action members throughout planning/execution, but the capability has no destructor or worker ownership. MoveGroupExe can therefore destroy the capability while a goal thread is still active.
The same design permits multiple accepted goals to execute concurrently while sharing goal_, move_state_, and preempt_requested_. The cancellation callback and workers access preempt_requested_ without synchronization.
ROS Distro
Jazzy
OS and version
Ubuntu 24.04
Source or binary build?
Source
If binary, which release version?
No response
If source, which branch?
No response
Which RMW are you using?
None
Steps to Reproduce
Build the commit above with AddressSanitizer.
Start move_group with trajectory execution enabled and send a MoveGroup action goal whose planning or execution remains active.
Shut down move_group while the goal is active.
Stress the timing or block the planning pipeline until MoveGroupExe::~MoveGroupExe() has begun, then release it.
Expected behavior
The capability owns all goal execution work and waits for it before destruction. Concurrent-goal behavior is explicit, and cancellation/state is scoped to and synchronized for the corresponding goal.
Actual behavior
Each accepted goal creates an untracked detached worker. Shutdown can free the capability first. Overlapping workers and cancel callbacks can concurrently overwrite or read shared state, including a plain bool preempt_requested_.
Activity