this is the same problem that#2522 (comment)reported. this can be observed withrclcpp_lifecycle/test_lifecycle_publisher. and this is the bug in the test code.rclcpp::shutdown()(TearDown) will be called beforeLifecycleNode::~LifecycleNode, that said the context will be invalid at node dtor...
I create a client for lifecycle ROS2 service by calling rclcpp_lifecycle::LifecycleNode::create_client(..) As a result I obtain rclcpp::client::Client instance. I call some methods on this instance and when it's destructed. After a while I create a new client for the same lifecycle ROS...