$RodHat_/search
exit code reference

Exit 136 SIGFPE (128 + 8)

Killed by SIGFPE, usually an integer divide by zero.

Value
136
Convention
Killed by a signal (128 + N)
Signal
SIGFPE (Linux 8, FreeBSD 8)

On x86 an integer division by zero or the INT_MIN / -1 overflow raises SIGFPE even though no floating point is involved. Floating-point division by zero returns infinity by default and does not signal.

What to check

gdb -batch -ex run -ex bt --args ./prog

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.