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.
Or read this on Hacker News