Skip to content
systemcoding.dev

Tag

strace

7 posts

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