
System Abends vs User Abends on z/OS Explained
A system abend is a three-digit hex code from z/OS, a user abend a four-digit decimal code from a program. Learn to tell them apart and where to look each up.
GDB and LLDB, JTAG and SWD with OpenOCD, Valgrind and sanitizers, core dumps, tracing and logic analysers: finding the bug instead of the symptom.

A system abend is a three-digit hex code from z/OS, a user abend a four-digit decimal code from a program. Learn to tell them apart and where to look each up.

Install perf from your distribution, check it matches the kernel, then run perf stat and perf record on a small C program to see where time goes.

Build a C program with gcc -g, start it under GDB, stop at main, run it to the end and quit cleanly. The smallest complete session, with every output shown.

Name threads with pthread_setname_np so gdb, top -H and /proc show readable names. Covers the 15-character limit, ERANGE, prctl and C++ and Rust.

Run Valgrind Memcheck on your unit tests in CI with exit codes, suppressions and XML output so a new leak or invalid access fails the build before it merges.

Initialize C structs, arrays and malloc buffers so Valgrind reports no uninitialised reads, including the padding bytes that surprise you when data is written.

Write and maintain a Valgrind suppression file with --gen-suppressions, wildcards and match-leak-kinds so known library noise stops hiding real bugs.

Use valgrind --track-origins=yes to find where an uninitialised value was created, so the Memcheck report points at the real bug and not just the branch.

Learn the Memcheck leak categories, definitely, indirectly, possibly lost and still reachable, with a sample program for each and a fix-first order.

Run a C program under Valgrind Memcheck with --leak-check=full to find memory that was allocated and never freed, and read the report down to the source line.

Bridge sync and async Rust with a Tokio Runtime and Handle::block_on, and avoid the nested-runtime panic from calling block_on inside a task.

Use strace 6.8 on Linux to list every file a program opens, find its real config path from the ENOENT search order, and spot unexpected reads and writes.
We send one email when a new post is published. No spam.