Skip to content
Latchkey

SIGFPE (Signal 8): Meaning, Exit Code 136 & Fix

SIGFPE is Unix signal 8. A process terminated by it reports exit code 136 (128 + 8).

SIGFPE is raised on a fatal arithmetic error, most often integer division by zero. When it kills a process, the shell reports exit code 136 - the 128 + signal-number convention.

What it means

A deterministic arithmetic bug - integer divide-by-zero or overflow with traps enabled.

When it happens in CI

  • Integer division by zero.
  • Integer overflow with -ftrapv.

How to handle it

This reproduces every time - it is a code bug. Guard the divisor/operation and add a regression test.

Related guides

References

Run this faster and cheaper on Latchkey managed runners - self-healing included. Start free → 30-day trial · No credit card