Skip to content

RSDK-10618: fixing deadlock in managedProcess when Stop is called before Start #433

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

Merged
merged 1 commit into from
May 12, 2025

Conversation

jmatth
Copy link
Member

@jmatth jmatth commented May 12, 2025

The previous PR for this ticket (#432) changed the behavior of managedProcess.Stop so that all calls to Stop would block on the management channel closing instead of just the fist one. Unfortunately this causes a deadlock if Stop is called before Start. We have a test for this but for some reason it did not cause the CI runs on the PR to fail and instead only failed when the PR was merged. I'll dig into that later but for now this hotfix adds a check to make sure the process was started before blocking on the management channel in Stop.

Copy link

For security reasons, this PR must be labeled with safe to test in order for tests to run.

@jmatth jmatth added the safe to test Mark as safe to test label May 12, 2025
@jmatth jmatth merged commit 5aae034 into viamrobotics:main May 12, 2025
6 checks passed
@jmatth jmatth deleted the RSDK-10618 branch May 12, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Mark as safe to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants