-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a test for destroy_node while spinning #663
Conversation
Signed-off-by: Scott K Logan <logans@cottsay.net>
After some digging, it appears that the exception generated by The segfault when using Here is an example of this occuring on a macOS build: #667 (comment) This doesn't appear to be a problem in The |
Signed-off-by: Scott K Logan <logans@cottsay.net>
The execption coming out of the spin thread when `rmw_fastrtps_cpp` is used is actually caused by the call to `context.shutdown()`, and is therefore expected behavior. We should make sure it happens that way. Signed-off-by: Scott K Logan <logans@cottsay.net>
As we discussed, I've converted this to a draft PR and assigned it to one of the rclpy maintainers. This is probably something that we should try to fix for Galactic, so I'm also putting it on the Galactic board. |
Now that we've merged #761, I think it is probably a good idea to rebase this one and see if it is fixed. |
Signed-off-by: Scott K Logan <logans@cottsay.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a reasonable test to have to me! Should catch these kinds of issues in the future.
I'm not sure if we ever intended to support calling
Node.destroy_node()
while another thread is spinning or not, but if you do so, the spinner will die with a segmentation fault.This PR doesn't actually address the issue, it just adds a test to demonstrate the problem.
With
rmw_cyclonedds_cpp
:With
rmw_fastrtps_cpp
: