Fix crash in ~Executor for executors using the minimal constructor #3350
ABI Compliance Check
✅ Verdict: compatible
| Library | Verdict | Summary |
|---|---|---|
| libcomponent_manager.so | ✅ compatible | No ABI changes detected. |
| librclcpp.so | ✅ compatible | No ABI changes detected. |
| librclcpp_action.so | ✅ compatible | No ABI changes detected. |
| librclcpp_lifecycle.so | ✅ compatible | No ABI changes detected. |
<details><summary>✅ <code>libcomponent_manager.so</code> — full abidiff report</summary>
Compared:
lib-base/libcomponent_manager.solib-pr/libcomponent_manager.so @ f4def90(empty report — no differences printed by abidiff)
</details>
<details><summary>✅ <code>librclcpp.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp.solib-pr/librclcpp.so @ f4def90Functions changes summary: 0 Removed (41 filtered out), 0 Changed (79 filtered out), 0 Added (19 filtered out) functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
</details>
<details><summary>✅ <code>librclcpp_action.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp_action.solib-pr/librclcpp_action.so @ f4def90(empty report — no differences printed by abidiff)
</details>
<details><summary>✅ <code>librclcpp_lifecycle.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp_lifecycle.solib-pr/librclcpp_lifecycle.so @ f4def90(empty report — no differences printed by abidiff)
</details>
<sub>Updated for commit f4def90 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt</sub>
<!-- libabigail-action-marker:ros2-abi -->
Approved these changes.
Pulls: ros2/rclcpp#3350
Gist: https://gist.githubusercontent.com/ahcorde/64aae22178febd4e43823e795a876f90/raw/9bef69dc03eecc2de46ba1211829ee2fc72acf8a/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20773
Linux 
Linux-aarch64 
Linux-rhel 
Windows 
Approved these changes.
jmachowinski
ahcorde
Description
Executor(const std::shared_ptr<Context>&)lets derived executors skip the base implementation. It leavesnotify_waitable_null and registers no shutdown callback, but~Executordereferencednotify_waitable_unconditionally, so destroying such an executor segfaulted.This PR only removes the guard conditions and the shutdown callback when
notify_waitable_was set, and adds a test that constructs and destroys an executor through that constructor.Did you use Generative AI?
Claude Opus 5.5