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

Fix message filter #402

Merged
merged 2 commits into from
Aug 16, 2019
Merged

Fix message filter #402

merged 2 commits into from
Aug 16, 2019

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Aug 13, 2019

This fixes a segfault of MessageFilter pointed out in ros-visualization/rviz#1372 and analyzed in detail in ros-visualization/rviz#1393.
Essentially, when destroying/clearing the filter, all pending callbacks (which store a pointer to the filter itself) should be removed. Otherwise, when called, these callbacks will access the destroyed filter pointer.
Additionally, in a destructor, only fully-qualified virtual functions may be called.

@rhaschke
Copy link
Contributor Author

Thanks for merging. I just noticed that there were similar PRs, which can be closed now:
#379, #383, #384.

@tfoote, do you plan to prepare a new melodic release anytime soon?
There are a bunch of commits since the latest release. Thanks for considering.

@rhaschke
Copy link
Contributor Author

Friedly ping: #402 (comment)

rhaschke added a commit to rhaschke/rviz that referenced this pull request Apr 16, 2020
This reverts commit 5ab445b.
This reverts commit 42eed97.
This reverts commit 371b23a partially.

As ros/geometry2#402 is released since tf2 >= 0.6.6,
we can revert these hot fixes.
rhaschke added a commit to rhaschke/rviz that referenced this pull request Jun 18, 2021
... since ros/geometry2#402 is released
rhaschke added a commit to rhaschke/rviz that referenced this pull request Sep 24, 2021
We need to wait for TF2 0.6.7 to be actually released.
This reverts commit 25d2c81.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants