Closed dm9pZCAq closed 3 years ago
Thank you!
That's concerning, I'll take a close look shortly.
Right, so, I opened a PR to fix this problem. Thank you again for this issue, and in particular for the MRE. It made my life significantly easier 😸
I don't like the idea of block-wait
-ing too much, I'm afraid it might freeze user code when/if there is a problem somewhere. So I ended up try_wait
-ing at 10ms intervals until either the child process is done (nominal case), or 1s has elapsed which raises an error.
This does the job on my machine (Apple M1) on your MRE, can you confirm it solves the problem on your end too?
yes, it solves the problem for me too
thank you
here is MRE
htop
shows that there is zombie process ofz3
here is process not properly waited https://github.com/kino-mc/rsmt2/blob/03236219276bebf9b5be4bf6974d781f155c1f0f/src/solver.rs#L279-L300
and here is brief explanation about
zombies
https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning(related issue https://github.com/zetzit/zz/issues/163)