8000 Zombies that don't have a parent-process are not shown · Issue #930 · hishamhm/htop · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Zombies that don't have a parent-process are not shown #930

Open

Description

@UlrichEckhardt

Zombies without a parent process occur when running without an init process that reaps the orphaned child processes. Normally, this shouldn't occur, because orphaned children are adopted by init (PID 1) which reaps those orphans on termination. However, there are two scenarios where this can happen:

  • Inside of a Docker container: It is not usual that containers are started without an init process. This is also the place where I stumbled across this problem.
  • rescue mode: Instead of running init on boot, you boot into a shell in order to repair a broken system. Actually I haven't verified this part, but it's likely affected, too.

Note that I'm guessing what's causing the differences between the ps auxf output and that of htop, but I'd say it's a reasonable explanation of what I can observe.

Activity

  1. joder commented on Dec 10, 2019

    @joder

    I just encountered a similar problem on linux. However, in my case the zombie process is shown when showing kernel threads, but not otherwise. When digging into it with a debugger, I noticed that the cmdline file for the process is empty. However, if this file is empty then in the function LinuxProcessList_readCmdlineFile in line 695 the process is redefined as a kernel thread.

    I hope this helps.

  2. added a commit that references this issue on Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0