Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to debug why our integration tests are taking so long and it looks like they're hanging part way through.

I logged onto our test service and saw the following behaviour:

root@colossus:~# strace -p 18310
Process 18310 attached - interrupt to quit
futex(0x7f9915c609d0, FUTEX_WAIT, 18313, NULL^C <unfinished ...>
Process 18310 detached

root@colossus:~# strace -p 18313
Process 18313 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>^C <unfinished ...>
Process 18313 detached

root@colossus:~# ps -ef | grep 18313
root     19089 19034  0 09:46 pts/0    00:00:00 grep --color=auto 18313

root@colossus:~# ps -p 18313

My interpretation of these commands is that 18310 is waiting for its child 18313 to complete.

Process 18313 is trying to restart an interrupted system call.

Here's where it gets weird. Although I can attach to 18313, I cannot see it in the list of current processes, when I run ps.

Can someone help me understand what is going on here, please?

share|improve this question
That's a thread. Use ps -L. See also strace -f to strace all the threads in that process (and future children) –  Stéphane Chazelas Apr 23 '14 at 15:20
Please add that as an answer, so that I can accept it :) –  Dancrumb Apr 23 '14 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.