$RodHat_/search
exit code reference

Exit 137 SIGKILL (128 + 9)

Killed by SIGKILL: the process was not given a chance to clean up.

Value
137
Convention
Killed by a signal (128 + N)
Signal
SIGKILL (Linux 9, FreeBSD 9)

The signal cannot be caught, blocked or ignored, so there is no handler to log anything. The usual senders are the kernel OOM killer, kill -9, timeout -k, a container runtime that waited out its stop grace period, or an orchestrator evicting the process. Look for the sender: dmesg for an OOM kill, the container's memory limit, and whether a supervisor sent a TERM that was ignored first.

What to check

dmesg -T | grep -i "killed process"; journalctl -k | grep -i oom

Rod on this

Sources

  1. Exit Status, GNU Bash manual
  2. signal(7), Linux man-pages

Exit codes are conventions, not guarantees: a program can return any value from 0 to 255. Spot one that's wrong? Tell Rod.