[openamq-dev] porting to Ubuntu

Nick Levine ndl at ravenbrook.com
Wed Aug 15 18:37:16 CEST 2007


Hi Martin,

   >    2. May you have a look at what are individual threads doing
   >    (backtraces would be ideal) when the app hangs?

   [...]

   Run it under gdb (you have debug build anyway, so it shouldn't be
   much work), use "info threads" to find what threads are running,
   "thread X" to switch to thread X, and "bt" to print the backtrace
   the current thread.

OK, here goes. Threads 1,2,3 belong to the application. The other five
were created when I called amq_client_connection_new_()

(gdb) continue
Continuing.
[New Thread -1232266352 (LWP 27313)]
[New Thread -1240659056 (LWP 27314)]
[New Thread -1249051760 (LWP 27315)]
[New Thread -1257444464 (LWP 27316)]
[New Thread -1265837168 (LWP 27317)]

Program received signal SIGINT, Interrupt.
0xffffe410 in __kernel_vsyscall ()
(gdb) info threads
  8 Thread -1265837168 (LWP 27317)  0xffffe410 in __kernel_vsyscall ()
  7 Thread -1257444464 (LWP 27316)  0xffffe410 in __kernel_vsyscall ()
  6 Thread -1249051760 (LWP 27315)  0xffffe410 in __kernel_vsyscall ()
  5 Thread -1240659056 (LWP 27314)  0xffffe410 in __kernel_vsyscall ()
  4 Thread -1232266352 (LWP 27313)  0xffffe410 in __kernel_vsyscall ()
  3 Thread -1210426480 (LWP 27291)  0xffffe410 in __kernel_vsyscall ()
  2 Thread -1218819184 (LWP 27292)  0xffffe410 in __kernel_vsyscall ()
* 1 Thread -1210206528 (LWP 27290)  0xffffe410 in __kernel_vsyscall ()
(gdb) help info threads
IDs of currently known threads.
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0804a8f6 in p_wait_for_stack_condition ()
#3  0x200638ed in ?? ()
#4  0x080607f8 in ?? ()
#5  0xffffffff in ?? ()
#6  0x00000004 in ?? ()
#7  0x206922c8 in ?? ()
#8  0xbfc88d68 in ?? ()
#9  0x08049d50 in main ()
(gdb) thread 2
[Switching to thread 2 (Thread -1218819184 (LWP 27292))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6ca46a7 in smt_wait (msecs=0) at /home/philip/wiinz/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
#3  0xb6ca5276 in smt_initialise () at smt_os_thread.c:1765
#4  0xb6b7093e in amq_client_connection_new_ (file=0x805e060 "", line=0, host=0x805e030 "localhost", virtual_host=0x805e048 "/", auth_data=0x8075728, 
    instance=0x805e050 "test", trace=3, timeout=10000) at amq_client_connection.c:1663
#5  0x200638ed in ?? ()
#6  0x0805e060 in ?? ()
#7  0x00000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread -1210426480 (LWP 27291))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ea43d1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x200638ed in ?? ()
#3  0x00000000 in ?? ()
(gdb) thread 4
[Switching to thread 4 (Thread -1232266352 (LWP 27313))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7ea43d1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6b8afdb in apr_sleep (t=10000) at time/unix/time.c:246
#3  0xb6ca3a4d in s_time_update (apr_thread=0x80657a0, data=0x0) at smt_os_thread.c:2759
#4  0xb6b89606 in dummy_worker (opaque=0x80657a0) at threadproc/unix/thread.c:138
#5  0xb7f2331b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb7eab57e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread 5
[Switching to thread 5 (Thread -1240659056 (LWP 27314))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6ca6442 in s_execute (apr_thread=0x8113cf8, data=0x80eb8e0) at /home/philip/wiinz/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
#3  0xb6b89606 in dummy_worker (opaque=0x8113cf8) at threadproc/unix/thread.c:138
#4  0xb7f2331b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7eab57e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread 6
[Switching to thread 6 (Thread -1249051760 (LWP 27315))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6ca6442 in s_execute (apr_thread=0x81456c8, data=0x811d2f0) at /home/philip/wiinz/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
#3  0xb6b89606 in dummy_worker (opaque=0x81456c8) at threadproc/unix/thread.c:138
#4  0xb7f2331b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7eab57e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread 7
[Switching to thread 7 (Thread -1257444464 (LWP 27316))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6ca6442 in s_execute (apr_thread=0x8177078, data=0x814eca0) at /home/philip/wiinz/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
#3  0xb6b89606 in dummy_worker (opaque=0x8177078) at threadproc/unix/thread.c:138
#4  0xb7f2331b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7eab57e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread 8
[Switching to thread 8 (Thread -1265837168 (LWP 27317))]#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7f275c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6ca6442 in s_execute (apr_thread=0x81a8a28, data=0x8180650) at /home/philip/wiinz/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
#3  0xb6b89606 in dummy_worker (opaque=0x81a8a28) at threadproc/unix/thread.c:138
#4  0xb7f2331b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb7eab57e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) 





More information about the openamq-dev mailing list