Get the latest tech news

Finding out where syscalls are called from: Stack traces with strace


One of the great strengths of strace as a debugging tool is that it shows you what a program is doing regardless of whether it was compiled with debug info or not. The downside of this is that you …

The good news is that if your program was compiled with debug info strace can actually show a stack trace for every syscall in your binary. Most of the lines in the stack trace are function calls in the dynamically linked standard library ( libc.so.6). Unfortunately, strace doesn’t show us the source code file and the line number that this address relates to.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of stack

stack

Photo of strace

strace

Photo of syscalls

syscalls

Related news:

News photo

The "full-stack framework" fallacy

News photo

Stripe de-couples payments from the rest of its stack

News photo

Show HN: Stack, an open-source Clerk/Firebase Auth alternative