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 segmentation fault bug in multipleanalogsensorsserver YARP device #2967

Merged
merged 1 commit into from
May 15, 2023

Conversation

traversaro
Copy link
Member

The bug occured once one of the device that was wrapped by multipleanalogsensorsserver did not resize the measure vector passed in the get<...>Measure call, for example because no sensor measurements were available.

The problem is solved by properly resizing the buffers before populating them, without relying on the wrapped device to do the necessary resizing.

The bug occured once one of the device that was wrapped by
multipleanalogsensorsserver did not resize the measure vector
passed in the get<...>Measure call, for example because no sensor
measurements were available.
@pattacini
Copy link
Member

Hi @randaz81

Would it be possible to merge this PR asap?
This would allow us to reinstate parts of the robots-configuration/CI that are now disabled.

@randaz81
Copy link
Member

master or 3.8?

@randaz81 randaz81 self-assigned this May 15, 2023
@pattacini
Copy link
Member

yarp-3.8, thanks!

@traversaro traversaro changed the base branch from master to yarp-3.8 May 15, 2023 13:56
@traversaro
Copy link
Member Author

The branch was correctly branched from yarp-3.8, but the base branch of the PR was wrong, I fixed it now, thanks!

@randaz81 randaz81 merged commit 1d9296a into robotology:yarp-3.8 May 15, 2023
@traversaro
Copy link
Member Author

Thanks @randaz81 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants