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

Race condition in 'PoshRuntime' during shutdown #2192

Closed
elBoberido opened this issue Feb 14, 2024 · 0 comments · Fixed by #2191
Closed

Race condition in 'PoshRuntime' during shutdown #2192

elBoberido opened this issue Feb 14, 2024 · 0 comments · Fixed by #2191
Assignees
Labels
bug Something isn't working

Comments

@elBoberido
Copy link
Member

Required information

Operating system:
all

Compiler version:
all

Eclipse iceoryx version:
master

Observed result or behaviour:
The keep alive and shutdown preparation thread accesses the m_ipcChannelInterface without locking the corresponding mutex during shutdown.

Expected result or behaviour:
m_ipcChannelInterface locks the corresponding mutex on access.

Conditions where it occurred / Performed steps:
Happens every time on shutdown.

Solution

Use smart_lock!

@elBoberido elBoberido added the bug Something isn't working label Feb 14, 2024
@elBoberido elBoberido self-assigned this Feb 14, 2024
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Feb 14, 2024
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant