Skip to content

Dead processes accumulation causes system resource exhaustion #56

@EzraCerpac

Description

@EzraCerpac

Description

svim accumulates zombie (defunct) processes over time, eventually exhausting the system's process limit. In my case, ~1982 zombie child processes accumulated, hitting the macOS default maxproc limit of 2666 and causing fork() failures across the system.

Observed behavior

$ ps -eo ppid,pid,state,comm | awk '$3 == "Z" {print $1}' | sort | uniq -c | sort -rn | head -5
   1982 1095
$ ps -p 1095 -o pid,ppid,comm,command
  PID  PPID COMM             COMMAND
 1095     1 /opt/homebrew/op /opt/homebrew/opt/svim/bin/svim

Killing svim immediately reaps all zombies:

# Before: 2808 processes
$ kill 1095 && sleep 1 && ps aux | wc -l
818

Environment

  • svim version: 1.0.11
  • Installation: Homebrew (brew install felixkratz/formulae/svim)
  • macOS: 26.1 (Build 25B78)
  • Architecture: Apple Silicon (arm64)

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