Trace a Failing Linux Program with strace
Follow file, network, process, and signal system calls until a vague application error becomes a concrete errno and pathname.
7 min read
Topic
16 articles
Process creation, execution, signals, and lifecycle behavior.
Follow file, network, process, and signal system calls until a vague application error becomes a concrete errno and pathname.
7 min read
Read file and process capabilities, decode their bitmasks, and understand why a service can perform privileged work without running as full root.
5 min read
Read a running process's initial environment from procfs, handle its null separators correctly, and avoid leaking secrets into terminals and tickets.
5 min read
Use systemd-analyze, critical-chain, unit properties, and the journal to find where boot time went without mistaking duration for causation.
5 min read
Find a crashed process, review its metadata, export the core safely, and open it in a debugger without losing track of the exact executable.
5 min read
Inspect a running process's soft and hard limits, compare them with the launching shell or service, and reproduce a limit in a disposable child.
5 min read
Parse calendar expressions, validate the timer and service as a pair, understand persistence and jitter, then enable only the unit you reviewed.
7 min read
Map a process's descriptor numbers to files, pipes, and sockets, then read fdinfo without consuming data or confusing a descriptor with a path.
7 min read
Use status, show, journalctl, unit dependencies, and a disposable user service to turn a failed unit into an exact exit reason.
10 min read
Signals request process actions; a safe lab shows SIGTERM running cleanup with exit 0 while SIGKILL bypasses handlers and yields status 137.
10 min read
Namespaces change what processes can see; cgroups account for and limit resources. Inspect both without pretending a container is a tiny VM.
11 min read
Read Linux load average as a queue signal, separate runnable work from uninterruptible waits, and pair the three familiar numbers with CPU count and PSI.
15 min read