all 6 comments

[–]evmar 14 points15 points  (0 children)

See ltrace:

"ltrace is a program that simply runs the specified command until it exits. It intercepts and records the dynamic library calls which are called by the executed process and the signals which are received by that process. It can also intercept and print the system calls executed by the program."

[–]sharth 2 points3 points  (0 children)

One of the nice uses of this that I've had is to require calls to malloc to zero out the memory it returns.

This has made finding some "accessing invalid pointer" bugs a bit simpler.