Skip to content
Latchkey

Exit Code 128 in CI: What It Means and How to Fix It

Exit code 128 is a boundary value - "invalid exit argument", and the base for signal codes (128 + N).

Code 128 is overloaded: git uses it for many fatal errors, and 128 + N encodes signal terminations.

What it means

Often a git fatal error, or the marker that signal-based codes (129-159) start here.

Common causes

  • A git fatal error (auth, bad ref, network).
  • An exit called with an out-of-range argument.

How to fix it

If from git, read the fatal message. Codes just above 128 mean the process was killed by signal (code − 128 = signal).

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →