-
Notifications
You must be signed in to change notification settings - Fork 104
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 'double free or corruption' error on yarpdev --list #900
Conversation
Detailed analysis reported in: |
Are this variables used anywhere? If they are not used, perhaps an easier fix is just to remove them? |
I may be wrong, but it seems that |
Hi @traversaro, |
We could keep this PR open waiting for @marcoaccame feedback (I think he's the author of this code) and then we decide how to fix this issue |
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.
Hi @martinaxgloria, your change compiles and solves the problem. So it is fine by me.
Only comment (to myself, as I wrote this code): variable defaultnames
is not used so it may be removed. But for now, let's go for the quick fix.
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.
Fine with me
This PR should fix #840.
Together with @sgiraz, we found out that the
double free or corruption
error that was retrieved when runningyarpdev --list
may occur ineth::EthBoards
class. In particular, it seems that the destructor of this class is responsible for destroying some members of this class, but then another function is trying to free memory that was already freed.@marcoaccame what do you think about it? Could you please have a look?