Skip to content

Fix bug when mixing shared_ptr and bind. - #470

Merged
mjcarroll merged 1 commit into
masterfrom
bugfix/hanging_lifecycle_test
May 4, 2018
Merged

mjcarroll merged 1 commit into
masterfrom
bugfix/hanging_lifecycle_test

Conversation

@mjcarroll

@mjcarroll mjcarroll commented May 4, 2018 •

Copy link
Copy Markdown
Member

It looks like using the std::shared_ptr in the std::bind was causing the refcount to get incremented, so you end up with a dependency loop, and the object never gets properly cleaned up.

Fixes #469

@mjcarroll
mjcarroll requested a review from Karsten1987 May 4, 2018 03:13
@mjcarroll mjcarroll added the in progress Actively being worked on (Kanban column) label May 4, 2018
@mjcarroll

mjcarroll commented May 4, 2018 •

Copy link
Copy Markdown
Member Author
  • Linux (bionic) Build Status

(mikaelarguedas) Other platforms just in case:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll mjcarroll self-assigned this May 4, 2018
@mjcarroll mjcarroll added bug Something isn't working in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels May 4, 2018
@mikaelarguedas

Copy link
Copy Markdown
Member

lgtm, I'll leave it up to @Karsten1987 provide the final review/approval

@Karsten1987 Karsten1987 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

feel free to merge. I still can't really explain why this was the cause that only fastrtps tests were hanging, but it seems to fix it. So lgtm.

@mjcarroll
mjcarroll merged commit 1be4d2d into master May 4, 2018
@mjcarroll
mjcarroll deleted the bugfix/hanging_lifecycle_test branch May 4, 2018 18:10
@mjcarroll mjcarroll removed the in review Waiting for review (Kanban column) label May 4, 2018
@mikaelarguedas mikaelarguedas mentioned this pull request May 4, 2018
25 of 31 tasks
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
* Make rcl_yaml_param_parser depend on rcutils only.

Signed-off-by: Michel Hidalgo <[email protected]>

* Address peer review comments.

Signed-off-by: Michel Hidalgo <[email protected]>
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Aug 5, 2022
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants