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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal will leave zombie processes #410

Closed
2 tasks
bingzhangdai opened this issue Apr 25, 2024 · 4 comments
Closed
2 tasks

terminal will leave zombie processes #410

bingzhangdai opened this issue Apr 25, 2024 · 4 comments

Comments

@bingzhangdai
Copy link

  • Version (cloudcmd -v): v17.4.0
  • Node Version node -v: v21.7.3
  • OS (uname -a on Linux): Debian
  • Browser name/version: chrome
  • Used Command Line Parameters:
  • Changed Config:
  • I'm ready to donate on Patreon 馃巵
  • I'm willing to work on this issue 馃挭

I am running in docker container. The host root is mounted on /mnt/fs and the terminalCommand is chroot /mnt/fs /bin/bash. Everytime exiting the terminal in browser, there leaves a zombie process.

root@nas:~# ps aux | grep bash
root     1593376  0.0  0.0   7372  2988 ?        Ss   Apr24   0:00 bash ./run svc-cron
root     1593437  0.0  0.0   7372  3016 ?        Ss   Apr24   0:00 bash ./run svc-cron
root     1973697  0.0  0.1  14840 10244 pts/1    Ss   10:58   0:00 -bash
root     2030563  0.0  0.0      0     0 ?        Z    13:10   0:00 [bash] <defunct>
root     2030795  0.0  0.0      0     0 ?        Z    13:10   0:00 [bash] <defunct>
root     2031048  0.0  0.0      0     0 ?        Z    13:10   0:00 [bash] <defunct>
root     2031275  0.0  0.0      0     0 ?        Z    13:10   0:00 [bash] <defunct>
root     2031464  0.0  0.0   8140  7584 ?        Ss+  13:12   0:00 /bin/bash
root     2031670  0.0  0.0      0     0 ?        Z    13:12   0:00 [bash] <defunct>
root     2034349  0.0  0.0   7064  1916 pts/1    S+   13:19   0:00 grep --color=auto bash
```
@coderaiser
Copy link
Owner

coderaiser commented Apr 25, 2024

When you run Cloud Commander without Docker, you see the same behaviour?

@bingzhangdai
Copy link
Author

I haven't installed the app on the host machine yet, but I found that every command I type will invoke a zombie process. However, using the following command is okay chroot /mnt/fs /bin/bash -c 'ssh my-host-ip'. Maybe this issue is related to the lib this project referencing.

I will create a virtual machine to test if this also happens without docker today night.

@coderaiser
Copy link
Owner

What other programs do you run and how you quit them?

@coderaiser
Copy link
Owner

I just run mc and quit on Mac OS in Cloud Commander terminal, no zombie process found with:

ps aux | grep defunct

@coderaiser coderaiser closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants