The strace package provides a diagnostic, debugging, and instructional userspace utility that traces all of the system calls a program makes during it's execution.
libunwind (to unwind stack traces) and valgrind (if you are running the test suite)
Install strace by running the following commands:
./configure --prefix=/usr --enable-mpers=no && make
To test the results, issue: make check
Now, as the root user:
make install
--enable-mpers=no: By
default, strace is built to support both the m32 and mx32
personalities. This parameter disables that behavior. Remove this
parameter if you are debugging programs that use either m32 or mx32
personalities.
--with-libunwind: This option builds
strace with libunwind support. This is useful for unwinding stack
traces.
Invoke ./configure
--help for a full list of options.