Skip to content
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

Fixed deadlock in destructor in TransformListener #752

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

heinemichael
Copy link

Updated patch of merge request #518
Related issue: #517

This is issue is still affecting Humble and causes, for example, timeouts in unit tests. The linked merge request provides an example of how to reproduce this issue.

@@ -71,6 +71,7 @@ TransformListener::TransformListener(tf2::BufferCore & buffer, bool spin_thread,
TransformListener::~TransformListener()
{
if (spin_thread_) {
running_.store(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it very surprising that this pattern is needed, as it is (essentially) the same as what executor_->cancel() should be doing under the hood. I'm going to see if I can reproduce against jammy/rolling.

@clalancette clalancette added the more-information-needed Further information is required label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed Further information is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants