Skip to content
ADHDecode
  1. Home
  2. Articles
  3. Strace

Strace Articles

46 articles

strace Java JVM Syscall Trace: Find Native Bottlenecks

strace on a Java JVM is usually about figuring out why the JVM itself, not your Java code, is misbehaving at the operating system level.

3 min read

strace in Kubernetes: Debug Pod Syscalls

strace inside a Kubernetes pod is often a last resort, but when you’re staring down a mysterious process hang or a bizarre I/O error, it’s your best fri.

4 min read

strace Library Loading: Trace dlopen and ld.so

The most surprising thing about dynamic library loading is that it's not a magical, instantaneous event; it's a series of explicit requests and response.

1 min read

strace Malware Analysis: Trace Suspicious Process Syscalls

strace is your forensic microscope for Linux, revealing the syscalls a process makes. The surprising truth is that strace itself is often part of the ma.

3 min read

strace Debug Node.js: Trace Syscalls in V8 Apps

strace Debug Node.js: Trace Syscalls in V8 Apps — strace is your last resort when a Node.js app is misbehaving in ways that aren't obvious from its lo.

3 min read

strace Output Format: Read and Parse Trace Lines

The strace output format is a detailed, line-by-line log of system calls and signals a process makes or receives, and understanding it is key to debuggi.

3 min read

strace Output Parsing: Automate Analysis with Scripts

Parsing strace output manually is like trying to find a needle in a haystack while blindfolded. You're drowning in thousands of lines of system call inf.

3 min read

strace Performance Overhead: Minimize Impact in Production

strace is a debugging tool that intercepts and records system calls made by a process. Here's how to observe strace in action and understand its impact

4 min read

strace in Production: Safe Tracing Without Disruption

The most surprising thing about strace is that it’s not inherently dangerous in production, provided you understand its impact and use it judiciously.

3 min read

strace Debug Python Apps: Trace Syscalls in CPython

strace is your debugger for when Python itself seems like a black box, letting you see exactly how your Python code is talking to the operating system.

3 min read

strace Raw Output and Hex Dump: Decode Binary Data

strace output often looks like a jumbled mess of numbers and seemingly random characters, especially when dealing with binary data.

4 min read

strace Redirect Output to File: Capture Long Traces

strace Redirect Output to File: Capture Long Traces — practical guide covering strace setup, configuration, and troubleshooting with real-world examples.

3 min read

strace seccomp Filter Debug: Trace Policy Violations

The seccomp filter in Linux, designed to restrict system calls a process can make, is silently dropping or blocking system calls without telling you why.

5 min read

strace String Length: Set -s to Capture Full Strings

strace truncates strings by default, hiding crucial details in system call arguments. This is the problem: strace is your best friend for debugging syst.

3 min read

strace Timestamps and Timing: Measure Syscall Duration

strace timestamps aren't just about when a syscall happened; they're a window into how long the kernel spent fulfilling it.

2 min read

strace Trace Exit Codes: Capture Process Return Values

strace doesn't directly "capture" exit codes in the way you might think; it shows you the system calls a process makes, and the exit code is the result .

1 min read

strace Trace File Syscalls: open, read, write, close

strace is showing you that your process is failing to interact with files because the underlying system calls are not behaving as expected.

3 min read

strace Trace IPC Syscalls: Pipes, Sockets, Shared Memory

You've likely hit a wall trying to understand how processes are talking to each other in Linux. strace is your ultimate debugger for this, showing you t.

5 min read

strace Trace Multiple PIDs: Monitor Process Groups

The strace command, typically used to trace system calls and signals for a single process, can actually be used to monitor an entire group of processes .

2 min read

strace Trace Network Syscalls: connect, bind, recv, send

connect is failing because the target service isn't listening on the specified IP address and port, or a firewall is actively blocking the connection.

3 min read

strace Trace Process Startup: exec() to First Syscall

The exec system call is the fundamental mechanism by which a new program begins its life within a running Linux process.

2 min read

strace Trace Signals: Capture SIGKILL, SIGSEGV, and More

strace can't directly trace SIGKILL because it's uncatchable and unblockable, but it can show you the system call that results in a process being killed.

4 min read

strace Trace Specific Syscalls: Filter with -e trace=

strace is fundamentally a debugger that lets you see the system calls a process makes. The -e trace= flag is your primary tool for focusing that view

2 min read

strace Trace Thread Groups: Trace All Threads with -ff

strace -ff doesn't actually trace all threads in a thread group; it forks a new strace process for each thread, which has significant implications for h.

3 min read

strace vs eBPF Tracing: When to Use Each Tool

strace vs eBPF Tracing: When to Use Each Tool — eBPF tracing is the future and strace is a relic. Here's a simple eBPF program that traces open call.

4 min read

strace vs ltrace: Syscall vs Library Call Tracing

strace and ltrace are both debugging tools that let you see what's happening inside a running program, but they look at different kinds of events.

4 min read

strace vs perf trace: Choose the Right Linux Tracer

strace and perf are both invaluable Linux tracing tools, but they operate at fundamentally different levels and are suited for distinct debugging scenar.

3 min read

strace Attach to Running Process: Debug Without Restart

You're trying to see what a running process is actually doing, down to the system call level, without killing it and restarting.

3 min read

strace Cheatsheet: Essential Commands for Every Debug Task

strace Cheatsheet: Essential Commands for Every Debug Task — practical guide covering strace setup, configuration, and troubleshooting with real-world e...

4 min read

strace Complete Workflow: From Attach to Root Cause

strace is often seen as a last resort, a blunt instrument for debugging. The surprising truth is that it's a precise microscope, revealing the kernel's .

4 min read

strace Container Debugging: Trace Syscalls in Docker

strace in containers is surprisingly powerful for debugging complex interactions between your application and the kernel, especially when traditional lo.

3 min read

strace Syscall Statistics: Count Calls with -c Flag

The -c flag for strace doesn't just count syscalls; it aggregates them by type and time, giving you a performance profile of your process.

2 min read

strace Debug File Not Found: Trace open() and openat()

The strace command failed because the target file for tracing open and openat syscalls doesn't exist, preventing strace from attaching to or observing t.

4 min read

strace Debug Hanging Process: Find Blocked Syscalls

strace showing a process stuck on a read or poll is usually because the process is waiting for data that will never arrive, or it's stuck in a deadlock .

4 min read

strace Debug Slow Application: Find Expensive Syscalls

strace is your best friend when an application is slow, and you suspect it's getting bogged down making too many or too long syscalls.

4 min read

strace Debug Startup Failure: Trace from exec()

execve failed because the kernel couldn't find the executable file. This is a classic "file not found" scenario, but strace shows it at the syscall leve.

4 min read

strace Verbose Decode: Expand Structures with -v Flag

The -v flag in strace doesn't just "expand" structures; it fundamentally changes how strace interprets and displays complex data types, revealing the ra.

3 min read

strace Delay Injection: Simulate Slow Syscalls for Testing

strace's delay injection feature is a surprisingly powerful, yet often overlooked, tool for simulating real-world network and I/O latency directly at th.

3 min read

Trace Syscalls in Docker Containers with strace

strace is your best friend for understanding what your Docker containers are actually doing under the hood, beyond the application logs.

3 min read

strace Environment Variable Debug: Find What Process Reads

strace Environment Variable Debug: Find What Process Reads — practical guide covering strace setup, configuration, and troubleshooting with real-world e...

4 min read

strace Filter Syscall Groups: Trace Network, File, IPC

You can filter strace's output to focus on specific syscall groups like network, file, or IPC operations, which is crucial for debugging performance bot.

3 min read

strace Follow Forks: Trace Child Processes with -f

The strace -f flag tells the system that when a process you're tracing creates a new child process via fork or clone, you want to follow that child and .

3 min read

strace Forensics: Incident Response Syscall Analysis

strace is your digital magnifying glass for syscalls, and when an incident happens, it's your best friend for understanding exactly what a process was d.

5 min read

strace Getting Started: Trace Any Linux Process

strace Getting Started: Trace Any Linux Process — practical guide covering strace setup, configuration, and troubleshooting with real-world examples.

3 min read

strace Debug Go Binaries: Syscall Trace for Go Apps

strace Debug Go Binaries: Syscall Trace for Go Apps — practical guide covering strace setup, configuration, and troubleshooting with real-world examples.

3 min read

strace Fault Injection: Test Error Handling in Apps

strace can be weaponized to inject faults into running processes, allowing you to test how your applications handle unexpected system call failures.

3 min read
ADHDecode

Complex topics, finally made simple

Courses

  • Networking
  • Databases
  • Linux
  • Distributed Systems
  • Containers & Kubernetes
  • System Design
  • All Courses →

Resources

  • Cheatsheets
  • Debugging
  • Articles
  • About
  • Privacy
  • Sitemap

Connect

  • Twitter (opens in new tab)
  • GitHub (opens in new tab)

Built for curious minds. Free forever.

© 2026 ADHDecode. All content is free.

  • Home
  • Learn
  • Courses
Esc
Start typing to search all courses...
See all results →
↑↓ navigate Enter open Esc close