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

Random seg fault with rtosim_ik_id #7

Open
mitkof6 opened this issue Feb 1, 2019 · 1 comment
Open

Random seg fault with rtosim_ik_id #7

mitkof6 opened this issue Feb 1, 2019 · 1 comment

Comments

@mitkof6
Copy link
Contributor

mitkof6 commented Feb 1, 2019

Hi,

Thank you for the nice work!

I was able to test rtosim ik and id on Arch Linux, however, I have encountered a random seg fault when executing rtosim_ik_id. It seems that there is some thread synchronization problem that can manifest randomly. Please see the attached file, which depicts one correct execution and 2 seg faults at different places.

I will look into the problem and if you have some clue where the problem may reside please let me know.

Regards,
Dimitar

seg_fault.txt

@cpizzolato
Copy link
Contributor

Hi Dimitar,

this problem has been lingering around for a while. I have some ideas but I haven't been able to completely solve it. My impression is that it only happens at initialisation and it is not deterministic, so it has to deal with thread synchronisation, as you have suggested. Also, it seems to only happen when running ID and not when running IK only. I think the problem could be due to the change of working directory in OpenSIm, which may result in other threads to be unable to open various configuration files.

I could try to add an extra mutex around the block of code I think it's the problem, but I'm happy to take suggestions.

Cheers
Claudio

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

No branches or pull requests

2 participants