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

deadlock fix #766

Merged
merged 1 commit into from
Oct 8, 2021
Merged

deadlock fix #766

merged 1 commit into from
Oct 8, 2021

Conversation

randaz81
Copy link
Member

@randaz81 randaz81 commented Oct 8, 2021

Fixed a deadlock issue caused by a non-recursive mutex used by recursive function calls.

The bug was affecting several multi-joint methods, e.g. getControlModesRaw(const int n_joints, const int *joints, int *modes). If those methods are called once, the robot gets frozen.

The std::mutex has been changed to std::rescursive_mutex.

Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

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

Nice catch 👍🏻
Just awaiting the CI to complete and then merging.

@pattacini pattacini merged commit 5a47946 into robotology:master Oct 8, 2021
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