Hi All - seems pretty quiet in here now-a-days
I've got a problem with various processes hanging on pthread_getconcurrency. I've managed to attach to an example and do a backtrace:
0x40187a35 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
(gdb) bt
#0 0x40187a35 in pthread_getconcurrency () from /lib/i686/libpthread.so.0
#1 0x40186db8 in pthread_create () from /lib/i686/libpthread.so.0
#2 0x40188e68 in sem_unlink () from /lib/i686/libpthread.so.0
#3 0x40185d96 in pthread_mutex_lock () from /lib/i686/libpthread.so.0
#4 0x401884b4 in flockfile () from /lib/i686/libpthread.so.0
#5 0x42064c4a in puts () from /lib/i686/libc.so.6
#6 0x4018a7ce in __pthread_clock_settime () from /lib/i686/libpthread.so.0
#7 0x42028518 in killpg () from /lib/i686/libc.so.6
#8 0x40186db8 in pthread_create () from /lib/i686/libpthread.so.0
#9 0x40188e68 in sem_unlink () from /lib/i686/libpthread.so.0
#10 0x40185d96 in pthread_mutex_lock () from /lib/i686/libpthread.so.0
#11 0x401884b4 in flockfile () from /lib/i686/libpthread.so.0
#12 0x4204c001 in vfprintf () from /lib/i686/libc.so.6
#13 0x42052592 in printf () from /lib/i686/libc.so.6
#14 0x080698b8 in StartSocketServer(void*, int) ()
#15 0x08069b24 in main ()
#16 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
Umm - maybe I'm reading the backtrace wrong but why is printf sparking such a series of methods calls through the creation of a pthread to pthread_getconcurrency???
I'm thinking this is an OS issue as it's happened more than once with different processes - google isn't much help.
I'm using redhat 8.0 (I know!!) and a 2.4 kernel
Anyone seen this before
Cheers,, rotis23