All my threads are stuck at one point, the trace at this point is as below:
(gdb) info threads
9 Thread 0x7fa872994700 (LWP 10301) 0x000000327b60e264 in __lll_lock_wait () from /lib64/libpthread.so.0
8 Thread 0x7fa87379c700 (LWP 10302) 0x000000327b2accdd in nanosleep () from /lib64/libc.so.6
7 Thread 0x7fa871b7c700 (LWP 10303) 0x000000327b2db74d in read () from /lib64/libc.so.6
6 Thread 0x7fa87117b700 (LWP 10306) 0x000000327b60e264 in __lll_lock_wait () from /lib64/libpthread.so.0
5 Thread 0x7fa864e14700 (LWP 10307) 0x000000327b60e264 in __lll_lock_wait () from /lib64/libpthread.so.0
4 Thread 0x7fa85ffff700 (LWP 10308) 0x000000327b2db7ad in write () from /lib64/libc.so.6
3 Thread 0x7fa85f5fe700 (LWP 10309) 0x000000327b60e264 in __lll_lock_wait () from /lib64/libpthread.so.0
2 Thread 0x7fa85ebfd700 (LWP 10311) 0x000000327b2accdd in nanosleep () from /lib64/libc.so.6
* 1 Thread 0x7fa87379e720 (LWP 10300) 0x000000327b60822d in pthread_join () from /lib64/libpthread.so.0
I am trying to find if this is related to my code or any issue with system configuration. It is working on all other machines. The issue is happening on one machine only on every run. The configuration details of this machine is as below:
bash-4.1$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago)
bash-4.1$ uname -a Linux localhost 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
bash-4.1$ rpm -qa |grep glibc glibc-devel-2.12-1.132.el6.x86_64 glibc-2.12-1.132.el6.x86_64 glibc-common-2.12-1.132.el6.x86_64 glibc-headers-2.12-1.132.el6.x86_64
Also for reference, Below is the config of the machine where threads are not getting stuck(working fine):
> cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
> uname -a
Linux localhost 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
> rpm -qa |grep glibc
glibc-headers-2.12-1.80.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
compat-glibc-2.5-46.2.x86_64
glibc-devel-2.12-1.80.el6.x86_64
glibc-common-2.12-1.80.el6.x86_64
glibc-2.12-1.80.el6.i686
glibc-devel-2.12-1.80.el6.i686
glibc-2.12-1.80.el6.x86_64