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.
Install strace by running the following commands:
./configure --prefix=/usr \
--enable-mpers=no &&
make
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 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.