Strace to debug processes in Linux


Strace is an awesome debugging tool.  Vhokstad has an awesome blog post about different ways to use strace.

Exactly like in his post, I used strace on Eclipse and Java by PID but I only got a futex message back.  I know for a fact that more is happening...  I found out it is a threading issue.  Strace -p PID will trace the main thread by default.  Thanks caf and stackoverflow.

I'm going to use strace while starting the process instead.

Rambling post continues...

Using  strace -t -f -ff -d -o killed my session.  I wish I knew why.  I'm going to try to go back to strace -p PID and find the correct thread.

Comments

Popular Posts