Jon Rosebaugh
Cadet
- Joined
- Apr 5, 2015
- Messages
- 7
Twice now I've managed to get a process in a jail wedged in such a way that it cannot be killed. I don't have precise reproduction steps; once it happened while running mkvinfo on an avi file, and once while running a python script that should have imported os and sys and then exited. (In both cases it was in a directory mounted into the jail via the storage system.)
When this happens, I can't kill the process, even with -9. I can kill the shell that I launched it from, but all that does is make init the parent process of this unkillable process. I cannot shut down the jail; FreeNAS tries to do it, but the warden job just waits forever for something. Even shutting down the NAS is blocked by this process.
It doesn't seem to be actually a zombie process when it happens; ps shows it as runnable and using 100% of a CPU (I'm on a FreeNAS mini with eight cores). I can renice it up to 20, but I can't kill it. Each time this has happened I've resorted to powercycling the NAS to clear it, which is pretty annoying. Any tips if I manage to repro this again?
When this happens, I can't kill the process, even with -9. I can kill the shell that I launched it from, but all that does is make init the parent process of this unkillable process. I cannot shut down the jail; FreeNAS tries to do it, but the warden job just waits forever for something. Even shutting down the NAS is blocked by this process.
It doesn't seem to be actually a zombie process when it happens; ps shows it as runnable and using 100% of a CPU (I'm on a FreeNAS mini with eight cores). I can renice it up to 20, but I can't kill it. Each time this has happened I've resorted to powercycling the NAS to clear it, which is pretty annoying. Any tips if I manage to repro this again?