$RodHat_/search
exit code reference

Exit 159 SIGSYS (128 + 31)

Killed by SIGSYS: the process made a system call a filter forbids.

Value
159
Convention
Killed by a signal (128 + N)
Signal
SIGSYS (Linux 31, FreeBSD 12)

On Linux this is what a seccomp filter delivers for a blocked call. If a sandboxed program dies with "Bad system call" or exit 159, the filter does not allow a call the program tried; trace which one before you widen the allow-list.

What to check

strace -f -o trace.txt ./prog; tail trace.txt

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.