REPRODUCIBILITY: Variable, happens almost daily, don’t know how to reliably reproduce
OS VERSION: 4.5.0.24
HARDWARE: Xperia XA2 - Dual SIM
UI LANGUAGE: Finnish
REGRESSION: n/a
DESCRIPTION:
Sometimes, firejail gets stuck. When I close the child process from the GUI, or if the child process dies because of something else, the parent firejail process hangs around. If I try to restart the application from the GUI, it tries for a while, and then gives up. If I try to run just the application from the CLI, outside firejail, it will start, but its permissions won’t work. If I try to run the application in firejail from the CLI, it says “Error: can’t chdir to privileged” and will get as stuck as the other stuck firejail process: I cannot kill it by ctrl-C, nor by sending SIGKILL or SIGTERM from another terminal. It’s just stuck. The only way to unstuck it is to reboot the whole phone.
PRECONDITIONS:
I really don’t know. I try to restart a program - e.g. jolla-calendar, jolla-messages, etc - that has stopped before, either by me stopping it or by it crashing. It does not start. But this doesn’t happen always; sometimes, there’s no stuck firejail process, and the program will start.
STEPS TO REPRODUCE:
- Stop a program, eg. jolla-messages, jolla-calendar
- Try to restart it
- Repeat until you get the behaviour described (will sometimes happen on the first time, will sometimes take days)
EXPECTED RESULT:
Firejail process dies when the child dies. A new firejail and child is started.
ACTUAL RESULT:
Firejail process does not die when the child dies and cannot be killed by any means short of restarting the phone. Trying to start the program anew fails.
MODIFICATIONS:
ADDITIONAL INFORMATION:
I think this appeared at some point during Sailfish 4 but not sure when. Earlier, if a program was stuck, I could always kill it from the CLI. But these firejail processes won’t die anymore.