Skip to content
systemcoding.dev
Topic

Debugging

GDB and LLDB, JTAG and SWD with OpenOCD, Valgrind and sanitizers, core dumps, tracing and logic analysers: finding the bug instead of the symptom.

Flat illustration of a magnifier over lines of a log, with the Rust, C and C++ logos.
Debugging

Trace Shared Library Calls With ltrace

Use ltrace 0.7.3 on Linux to print the shared library calls a program makes, such as malloc and strcpy, with arguments and return values, and filter with -e.

6 min read
Flat illustration of a debugger stopped at a breakpoint beside the register values, with the LLVM, GNU and Arm logos.
Debugging

Attach strace to an Already Running Process

Attach strace -p to a process that is already running on Linux, fix the Yama ptrace_scope permission error, watch a stuck call, then detach without killing it.

7 min read
Flat illustration of a shield with a lock, a key and a password field, with the C, C++ and Rust logos.
SecurityGuide

The Complete Guide to Fuzzing C and C++ Code

Fuzz C and C++ with libFuzzer and AFL++ on Clang 19: write targets, use sanitizers, build corpora and dictionaries, triage crashes and run fuzzing in CI.

28 min read
Flat illustration of a debugger stopped at a breakpoint beside the register values, with the LLVM, C and C++ logos.
DebuggingGuide

The Complete Guide to Debugging With LLDB

A full guide to LLDB: its command grammar, breakpoints, stepping, variables, memory, watchpoints, core files, Python, remote debugging and macOS specifics.

25 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.