NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle0 views

What will strace output when run on a binary?

Practice

Asked at

AI answer

strace shows a process’s system calls and their results, not the program’s internal logic. For example, when running strace ./program, you’ll typically see execve, libraries and files being loaded through openat, memory mapping through mmap, input/output (read, write), signals, and process termination. Errors such as ENOENT or EACCES often help identify the cause of a failure. For easier inspection, you can use strace -f -o trace.log ./program: -f also traces child processes, and -o writes the trace to a file.