Skip to content

Keep the introspection clock alive for the lifetime of the service/client - #3452

Open
mjcarroll wants to merge 1 commit into
ros2:rollingfrom
mjcarroll:fix-introspection-clock-lifetime
Open

mjcarroll wants to merge 1 commit into
ros2:rollingfrom
mjcarroll:fix-introspection-clock-lifetime

Conversation

@mjcarroll

Copy link
Copy Markdown
Member

Description

configure_introspection() passes the clock's rcl handle to rcl, which stores the raw pointer and dereferences it again in rcl_service_fini() / rcl_client_fini(). Service and Client didn't keep the Clock alive, so if it is destroyed first (e.g. the node's clock, when the node is destroyed before the service) the finalizer reads freed memory.

Keep the clock in ServiceBase / ClientBase, declared before the rcl handle so it is destroyed after the handle is finalized.

Found with AddressSanitizer (heap-use-after-free in rcl_clock_valid from ~Service, in test_service_introspection). Adds introspection_keeps_clock_alive, which fails under ASan without the change.

Is this user-facing behavior change?

No. The service/client now keep the introspection clock alive instead of reading freed memory.

Did you use Generative AI?

Yes, Claude Code, for diagnosing the ASan report and writing the change and the test. Built and tested with AddressSanitizer.

Additional Information

The existing fixture already hit this: TearDown() resets the node, so the clock dies before the service member does.

…ient

The introspection publisher stores a raw pointer to the clock's rcl handle and dereferences it when the service or client is finalized. Neither Service nor Client held a reference to the clock passed to configure_introspection(), so destroying the clock first (e.g. the node's clock when the node is destroyed before the service) left rcl_service_fini()/rcl_client_fini() reading freed memory. Found with AddressSanitizer.

Signed-off-by: Michael Carroll <[email protected]>
@mjcarroll mjcarroll self-assigned this Nov 28, 2026
@github-actions

Copy link
Copy Markdown

ABI Compliance Check

❌ Verdict: incompatible

Library Verdict Summary
libcomponent_manager.so ❌ incompatible ABI changed: 0 removed, 3 changed, 0 added declaration(s); removed or changed declarations break backward compatibility.
librclcpp.so ❌ incompatible ABI changed: 0 removed, 16 changed, 0 added declaration(s); removed or changed declarations break backward compatibility.
librclcpp_action.so ✅ compatible No ABI changes detected.
librclcpp_lifecycle.so ❌ incompatible ABI changed: 0 removed, 4 changed, 0 added declaration(s); removed or changed declarations break backward compatibility.
❌ libcomponent_manager.so — full abidiff report

Compared:

  • Base: lib-base/libcomponent_manager.so
  • Head: lib-pr/libcomponent_manager.so @ 9d08482
Functions changes summary: 0 Removed, 3 Changed (177 filtered out), 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

3 functions with some indirect sub-type change:

  [C] 'method void rclcpp::Service<composition_interfaces::srv::ListNodes>::Service(std::shared_ptr<rcl_node_s>, const std::string&, rclcpp::AnyServiceCallback<composition_interfaces::srv::ListNodes>, rcl_service_options_t&)' at service.hpp:260:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN22composition_interfaces3srv9ListNodesEEC2ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
     and it aliases symbol: _ZN6rclcpp7ServiceIN22composition_interfaces3srv9ListNodesEEC1ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
    implicit parameter 0 of type 'rclcpp::Service<composition_interfaces::srv::ListNodes>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<composition_interfaces::srv::ListNodes>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        1 base class changes (1 filtered):
          'class rclcpp::ServiceBase' at service.hpp:48:1 changed:
            type size changed from 1280 to 1408 (in bits)
            no member function changes (6 filtered);
            1 data member insertion:
              'rclcpp::Clock::SharedPtr introspection_clock_', at offset 192 (in bits) at service.hpp:217:1
            6 data member changes:
              'std::recursive_mutex callback_mutex_' offset changed from 192 to 320 (in bits) (by +128 bits)
              'std::function<void(longunsignedint)> on_new_request_callback_' offset changed from 512 to 640 (in bits) (by +128 bits)
              'std::shared_ptr<rcl_service_s> service_handle_' offset changed from 768 to 896 (in bits) (by +128 bits)
              'bool owns_rcl_handle_' offset changed from 896 to 1024 (in bits) (by +128 bits)
              'rclcpp::Logger node_logger_' offset changed from 960 to 1088 (in bits) (by +128 bits)
              'std::atomic<bool> in_use_by_wait_set_' offset changed from 1216 to 1344 (in bits) (by +128 bits)
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<composition_interfaces::srv::ListNodes> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Service<composition_interfaces::srv::LoadNode>::Service(std::shared_ptr<rcl_node_s>, const std::string&, rclcpp::AnyServiceCallback<composition_interfaces::srv::LoadNode>, rcl_service_options_t&)' at service.hpp:260:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN22composition_interfaces3srv8LoadNodeEEC2ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
     and it aliases symbol: _ZN6rclcpp7ServiceIN22composition_interfaces3srv8LoadNodeEEC1ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
    implicit parameter 0 of type 'rclcpp::Service<composition_interfaces::srv::LoadNode>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<composition_interfaces::srv::LoadNode>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        no base class changes (2 filtered);
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<composition_interfaces::srv::LoadNode> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Service<composition_interfaces::srv::UnloadNode>::Service(std::shared_ptr<rcl_node_s>, const std::string&, rclcpp::AnyServiceCallback<composition_interfaces::srv::UnloadNode>, rcl_service_options_t&)' at service.hpp:260:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN22composition_interfaces3srv10UnloadNodeEEC2ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
     and it aliases symbol: _ZN6rclcpp7ServiceIN22composition_interfaces3srv10UnloadNodeEEC1ESt10shared_ptrI10rcl_node_sERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_18AnyServiceCallbackIS3_EER21rcl_service_options_s
    implicit parameter 0 of type 'rclcpp::Service<composition_interfaces::srv::UnloadNode>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<composition_interfaces::srv::UnloadNode>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        no base class changes (2 filtered);
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<composition_interfaces::srv::UnloadNode> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)


❌ librclcpp.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp.so
  • Head: lib-pr/librclcpp.so @ 9d08482
Functions changes summary: 0 Removed, 16 Changed (2176 filtered out), 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

16 functions with some indirect sub-type change:

  [C] 'method void rclcpp::Client<rcl_interfaces::srv::DescribeParameters>::Client(rclcpp::node_interfaces::NodeBaseInterface*, const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr&, const std::string&, rcl_client_options_t&)' at client.hpp:425:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp6ClientIN14rcl_interfaces3srv18DescribeParametersEEC2EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
     and it aliases symbol: _ZN6rclcpp6ClientIN14rcl_interfaces3srv18DescribeParametersEEC1EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
    implicit parameter 0 of type 'rclcpp::Client<rcl_interfaces::srv::DescribeParameters>*' has sub-type changes:
      in pointed to type 'class rclcpp::Client<rcl_interfaces::srv::DescribeParameters>' at client.hpp:345:1:
        type size changed from 2304 to 2432 (in bits)
        1 base class change:
          'class rclcpp::ClientBase' at client.hpp:136:1 changed:
            type size changed from 1472 to 1600 (in bits)
            no member function changes (6 filtered);
            1 data member insertion:
              'rclcpp::Clock::SharedPtr introspection_clock_', at offset 704 (in bits) at client.hpp:330:1
            4 data member changes:
              'std::recursive_mutex callback_mutex_' offset changed from 704 to 832 (in bits) (by +128 bits)
              'std::function<void(longunsignedint)> on_new_response_callback_' offset changed from 1024 to 1152 (in bits) (by +128 bits)
              'std::shared_ptr<rcl_client_s> client_handle_' offset changed from 1280 to 1408 (in bits) (by +128 bits)
              'std::atomic<bool> in_use_by_wait_set_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
        no member function changes (6 filtered);
        3 data member changes:
          'std::unordered_map<longint,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>>>>,std::hash<longint>,std::equal_to<longint>,std::allocator<std::pair<longintconst,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::DescribeParameters_Response_<std::allocator<void>>>>>>>>>>> pending_requests_' offset changed from 1472 to 1600 (in bits) (by +128 bits)
          'std::mutex pending_requests_mutex_' offset changed from 1920 to 2048 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 2240 to 2368 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Client<rcl_interfaces::srv::GetParameterTypes>::Client(rclcpp::node_interfaces::NodeBaseInterface*, const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr&, const std::string&, rcl_client_options_t&)' at client.hpp:425:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp6ClientIN14rcl_interfaces3srv17GetParameterTypesEEC2EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
     and it aliases symbol: _ZN6rclcpp6ClientIN14rcl_interfaces3srv17GetParameterTypesEEC1EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
    implicit parameter 0 of type 'rclcpp::Client<rcl_interfaces::srv::GetParameterTypes>*' has sub-type changes:
      in pointed to type 'class rclcpp::Client<rcl_interfaces::srv::GetParameterTypes>' at client.hpp:345:1:
        type size changed from 2304 to 2432 (in bits)
        no base class change (1 filtered);
        no member function changes (6 filtered);
        3 data member changes:
          'std::unordered_map<longint,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>>>>,std::hash<longint>,std::equal_to<longint>,std::allocator<std::pair<longintconst,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameterTypes_Response_<std::allocator<void>>>>>>>>>>> pending_requests_' offset changed from 1472 to 1600 (in bits) (by +128 bits)
          'std::mutex pending_requests_mutex_' offset changed from 1920 to 2048 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 2240 to 2368 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Client<rcl_interfaces::srv::GetParameters>::Client(rclcpp::node_interfaces::NodeBaseInterface*, const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr&, const std::string&, rcl_client_options_t&)' at client.hpp:425:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp6ClientIN14rcl_interfaces3srv13GetParametersEEC2EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
     and it aliases symbol: _ZN6rclcpp6ClientIN14rcl_interfaces3srv13GetParametersEEC1EPNS_15node_interfaces17NodeBaseInterfaceERKSt10shared_ptrINS5_18NodeGraphInterfaceEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER20rcl_client_options_s
    implicit parameter 0 of type 'rclcpp::Client<rcl_interfaces::srv::GetParameters>*' has sub-type changes:
      in pointed to type 'class rclcpp::Client<rcl_interfaces::srv::GetParameters>' at client.hpp:345:1:
        type size changed from 2304 to 2432 (in bits)
        no base class change (1 filtered);
        no member function changes (6 filtered);
        3 data member changes:
          'std::unordered_map<longint,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>>>>,std::hash<longint>,std::equal_to<longint>,std::allocator<std::pair<longintconst,std::pair<std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<longint,std::ratio<1,1000000000>>>,std::variant<std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>,std::tuple<std::function<void(std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>)>,std::shared_future<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>,std::promise<std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>,std::tuple<std::function<void(std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>)>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_future<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>,std::promise<std::pair<std::shared_ptr<rcl_interfaces::srv::GetParameters_Request_<std::allocator<void>>>,std::shared_ptr<rcl_interfaces::srv::GetParameters_Response_<std::allocator<void>>>>>>>>>>> pending_requests_' offset changed from 1472 to 1600 (in bits) (by +128 bits)
          'std::mutex pending_requests_mutex_' offset changed from 1920 to 2048 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 2240 to 2368 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Client<rcl_interfaces::srv::ListParameters>::Client(rclcpp::node_interfaces::NodeBaseInterface*, const rclcpp::node_interfaces::NodeG
... (report truncated; the full report is in the check run artifacts: https://github.com/ros2/rclcpp/actions/runs/46170420455)
✅ librclcpp_action.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_action.so
  • Head: lib-pr/librclcpp_action.so @ 9d08482
(empty report — no differences printed by abidiff)
❌ librclcpp_lifecycle.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_lifecycle.so
  • Head: lib-pr/librclcpp_lifecycle.so @ 9d08482
Functions changes summary: 0 Removed, 4 Changed (300 filtered out), 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

4 functions with some indirect sub-type change:

  [C] 'method void rclcpp::Service<lifecycle_msgs::srv::ChangeState>::Service(const std::shared_ptr<rcl_node_s>&, rcl_service_t*, rclcpp::AnyServiceCallback<lifecycle_msgs::srv::ChangeState>)' at service.hpp:357:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv11ChangeStateEEC2ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
     and it aliases symbol: _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv11ChangeStateEEC1ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
    implicit parameter 0 of type 'rclcpp::Service<lifecycle_msgs::srv::ChangeState>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<lifecycle_msgs::srv::ChangeState>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        1 base class changes (1 filtered):
          'class rclcpp::ServiceBase' at service.hpp:48:1 changed:
            type size changed from 1280 to 1408 (in bits)
            no member function changes (6 filtered);
            1 data member insertion:
              'rclcpp::Clock::SharedPtr introspection_clock_', at offset 192 (in bits) at service.hpp:217:1
            6 data member changes:
              'std::recursive_mutex callback_mutex_' offset changed from 192 to 320 (in bits) (by +128 bits)
              'std::function<void(longunsignedint)> on_new_request_callback_' offset changed from 512 to 640 (in bits) (by +128 bits)
              'std::shared_ptr<rcl_service_s> service_handle_' offset changed from 768 to 896 (in bits) (by +128 bits)
              'bool owns_rcl_handle_' offset changed from 896 to 1024 (in bits) (by +128 bits)
              'rclcpp::Logger node_logger_' offset changed from 960 to 1088 (in bits) (by +128 bits)
              'std::atomic<bool> in_use_by_wait_set_' offset changed from 1216 to 1344 (in bits) (by +128 bits)
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<lifecycle_msgs::srv::ChangeState> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Service<lifecycle_msgs::srv::GetAvailableStates>::Service(const std::shared_ptr<rcl_node_s>&, rcl_service_t*, rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetAvailableStates>)' at service.hpp:357:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv18GetAvailableStatesEEC2ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
     and it aliases symbol: _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv18GetAvailableStatesEEC1ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
    implicit parameter 0 of type 'rclcpp::Service<lifecycle_msgs::srv::GetAvailableStates>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<lifecycle_msgs::srv::GetAvailableStates>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        no base class changes (2 filtered);
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetAvailableStates> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Service<lifecycle_msgs::srv::GetAvailableTransitions>::Service(const std::shared_ptr<rcl_node_s>&, rcl_service_t*, rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetAvailableTransitions>)' at service.hpp:357:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv23GetAvailableTransitionsEEC2ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
     and it aliases symbol: _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv23GetAvailableTransitionsEEC1ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
    implicit parameter 0 of type 'rclcpp::Service<lifecycle_msgs::srv::GetAvailableTransitions>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<lifecycle_msgs::srv::GetAvailableTransitions>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        no base class changes (2 filtered);
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetAvailableTransitions> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)

  [C] 'method void rclcpp::Service<lifecycle_msgs::srv::GetState>::Service(const std::shared_ptr<rcl_node_s>&, rcl_service_t*, rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetState>)' at service.hpp:357:1 has some indirect sub-type changes:
    Please note that the symbol of this function is _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv8GetStateEEC2ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
     and it aliases symbol: _ZN6rclcpp7ServiceIN14lifecycle_msgs3srv8GetStateEEC1ERKSt10shared_ptrI10rcl_node_sEP13rcl_service_sNS_18AnyServiceCallbackIS3_EE
    implicit parameter 0 of type 'rclcpp::Service<lifecycle_msgs::srv::GetState>*' has sub-type changes:
      in pointed to type 'class rclcpp::Service<lifecycle_msgs::srv::GetState>' at service.hpp:235:1:
        type size changed from 1792 to 1920 (in bits)
        no base class changes (2 filtered);
        no member function changes (6 filtered);
        2 data member changes:
          'rclcpp::AnyServiceCallback<lifecycle_msgs::srv::GetState> any_callback_' offset changed from 1408 to 1536 (in bits) (by +128 bits)
          'const rosidl_service_type_support_t* srv_type_support_handle_' offset changed from 1728 to 1856 (in bits) (by +128 bits)


Updated for commit 9d08482 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant