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.txtSources
Exit codes are conventions, not guarantees: a program can return any value from 0 to 255. Spot one that's wrong? Tell Rod.