Skip to content

zrok does not handle SIGCHLD producing zombie processes in container mode #1016

@vgrebenschikov

Description

@vgrebenschikov

Just use quichstark and connect to zrok-zrok-frontend-1 as docker exec -u root zrok-zrok-frontend-1 bash and install procps then run ps ax:
you will find here a number of zombie processes
as zrok runs as init in the container, and did not listen for SIGCHLD notifications from children

These are related to my attempts to manage the container, but as zrok runs as init, it is up to him to take care of all possible SIGCHLD signals.

bash-5.1# ps ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ssl    0:26 zrok access public /etc/zrok-frontend/config.yml --verbose
     65 pts/1    Ss     0:00 bash
     74 pts/1    Z      0:00 [gpgconf] <defunct>
     76 pts/1    Z      0:00 [gpgconf] <defunct>
     78 pts/1    Z      0:00 [gpg] <defunct>
     80 pts/1    Z      0:00 [microdnf] <defunct>
     82 pts/1    Z      0:00 [gpgconf] <defunct>
     84 pts/1    Z      0:00 [gpg] <defunct>
     86 pts/1    Z      0:00 [gpg] <defunct>
     88 ?        Ssl    0:00 gpg-agent --homedir /var/cache/yum/metadata/ubi-9-baseos-rpms-9-x86_64.tmp/gpgdir --use-standard-socket --daemon
     90 ?        SLl    0:00 scdaemon --multi-server --homedir /var/cache/yum/metadata/ubi-9-baseos-rpms-9-x86_64.tmp/gpgdir
     98 pts/1    Z      0:00 [gpg] <defunct>
    100 pts/1    Z      0:00 [gpg] <defunct>
    102 ?        Ssl    0:00 gpg-agent --homedir /var/cache/yum/metadata/ubi-9-appstream-rpms-9-x86_64.tmp/gpgdir --use-standard-socket --daemon
    104 ?        SLl    0:00 scdaemon --multi-server --homedir /var/cache/yum/metadata/ubi-9-appstream-rpms-9-x86_64.tmp/gpgdir
    112 pts/1    Z      0:00 [gpg] <defunct>
    114 pts/1    Z      0:00 [gpg] <defunct>
    116 ?        Ssl    0:00 gpg-agent --homedir /var/cache/yum/metadata/ubi-9-codeready-builder-rpms-9-x86_64.tmp/gpgdir --use-standard-socket --daemon
    118 ?        SLl    0:00 scdaemon --multi-server --homedir /var/cache/yum/metadata/ubi-9-codeready-builder-rpms-9-x86_64.tmp/gpgdir
    129 pts/1    R+     0:00 ps ax
bash-5.1#

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions