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 race condition in shutdown behavior #453

Open
wants to merge 1 commit into
base: melodic-devel
Choose a base branch
from

Conversation

bochen87
Copy link

@bochen87 bochen87 commented Feb 8, 2022

The behaviour we're observing with the ThreadedSocketCANInterface is similar to what is described here: https://stackoverflow.com/questions/68787876/boostasio-server-code-causes-segfault-only-some-of-the-time-seemingly-relat

This seems to fix those segfaults happening at shutdown. Somehow it only works though if I put it into the dtor, not if I put it into the shutdown_internal function - then it's basically not possible to shut it down anymore.

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.

1 participant