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

Wait for solver process on drop #33

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmcloughlin
Copy link
Contributor

Wait for the child process when Solver is dropped.

Rust std::process::Child does not kill on drop. Without waiting on the solver process, a program that spins up many easy-smt contexts can leave zombie solver child processes.

@elliottt
Copy link
Owner

I think something funny might be going on with this PR, the tests hung for two hours. Would you mind running the test suite locally to see if you can reproduce that?

@mmcloughlin mmcloughlin marked this pull request as draft November 22, 2024 01:35
@mmcloughlin
Copy link
Contributor Author

I think something funny might be going on with this PR, the tests hung for two hours. Would you mind running the test suite locally to see if you can reproduce that?

Yeah I'll take a look. Sorry about that. I have a fork with a change similar to this mmcloughlin@2e8f636 that has mitigated the zombie child processes problem I was seeing, but that was combined with ending the session with (exit) #32.

I think we may need to add a self.handle.kill() as well for the case where the context is not explicitly (exit)'ed, but I'll need to try that out. Marked the PR draft for now.

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.

2 participants