strace: pid 0 exited with 0

Stringfellow, Justin justin.stringfellow at
Tue Sep 6 09:49:23 UTC 2011

Hi there.

I'm trying to use strace on rhel to get some info on what a process is spending it's time doing. The first problem I'm getting is that strace -c alone is just hanging without executing anything. When I use the debug flag, things seem to proceed, but fail before exiting:

$ strace -cfd java -jar QPIDTester-0.0.1-SNAPSHOT-jar-with-dependencies.jar

<snip loads of stuff>

pid 20834 exited with 0
pid 20833 exited with 0
pid 20832 exited with 0
pid 20831 exited with 0
pid 20830 exited with 0
pid 20829 exited with 0
pid 20828 exited with 0
pid 20827 exited with 0
pid 20826 exited with 0
pid 20825 exited with 0
 [wait(0) = 20901]
 [wait(0) = 20823]
pid 20901 exited with 0
pid 0 exited with 0
Memory fault

Pid zero exiting? Sounds suspicious.

$ yum list | grep -i strace
strace.x86_64                              4.5.18-5.el5_5.5       installed

$ ldd `which strace` => /lib64/ (0x00002ab93d962000)
        /lib64/ (0x00002ab93d745000)

Both those libs are coming from "glibc-2.5-49.el5_5.7.x86_64 : The GNU libc libraries."

$ uname -a
Linux xxxx 2.6.18-194.32.1.el5 #1 SMP Mon Dec 20 10:52:42 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

Our corporate environment currently doesn't have anything newer than the version we have installed on this machine. Does the 4.6 release fix an issue like this? I don't want to spend time leaning on our engineering guys to provide 4.6 if it's not going to solve the problem. Apologies if it's an faq, I'm having trouble reading the mailing list archives.


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at  

More information about the Strace-devel mailing list