[openamq-dev] porting to Ubuntu

Nick Levine ndl at ravenbrook.com
Tue Aug 21 15:34:07 CEST 2007


Jonathan,

I applied your patch (and checked that the patch had applied properly
by grepping for s_decrement_active_thread_count in libsmt.a).

But still no succeess:

  (gdb) break s_decrement_active_thread_count
  Function "s_decrement_active_thread_count" not defined.
  Make breakpoint pending on future shared library load? (y or [n]) y
  Breakpoint 1 (s_decrement_active_thread_count) pending.
  (gdb) c
  Continuing.

<<< I atempt to connect >>>

  Breakpoint 2 at 0xb7d0febc: file smt_os_thread.c, line 2753.
  Pending breakpoint "s_decrement_active_thread_count" resolved
  [New Thread -1215059056 (LWP 21616)]
  [New Thread -1223451760 (LWP 21617)]
  [Switching to Thread -1223451760 (LWP 21617)]

  Breakpoint 2, s_decrement_active_thread_count () at smt_os_thread.c:2753
  2753	    assert (s_os_thread_active_count > 0);
  (gdb) c
  Continuing.
  [New Thread -1231844464 (LWP 21618)]
  [Switching to Thread -1231844464 (LWP 21618)]

  Breakpoint 2, s_decrement_active_thread_count () at smt_os_thread.c:2753
  2753	    assert (s_os_thread_active_count > 0);
  (gdb) c
  Continuing.
  [New Thread -1240237168 (LWP 21619)]
  [Switching to Thread -1240237168 (LWP 21619)]

  Breakpoint 2, s_decrement_active_thread_count () at smt_os_thread.c:2753
  2753	    assert (s_os_thread_active_count > 0);
  (gdb) c
  Continuing.
  [New Thread -1248629872 (LWP 21620)]
  [Switching to Thread -1248629872 (LWP 21620)]

  Breakpoint 2, s_decrement_active_thread_count () at smt_os_thread.c:2753
  2753	    assert (s_os_thread_active_count > 0);
  (gdb) c
  Continuing.

<<< and my code hangs >>>

  Program received signal SIGINT, Interrupt.
  [Switching to Thread -1209776448 (LWP 21609)]
  0xffffe410 in __kernel_vsyscall ()
  (gdb) info threads
    6 Thread -1248629872 (LWP 21620)  0xffffe410 in __kernel_vsyscall ()
    5 Thread -1240237168 (LWP 21619)  0xffffe410 in __kernel_vsyscall ()
    4 Thread -1231844464 (LWP 21618)  0xffffe410 in __kernel_vsyscall ()
    3 Thread -1223451760 (LWP 21617)  0xffffe410 in __kernel_vsyscall ()
    2 Thread -1215059056 (LWP 21616)  0xffffe410 in __kernel_vsyscall ()
  * 1 Thread -1209776448 (LWP 21609)  0xffffe410 in __kernel_vsyscall ()
  (gdb) bt
  #0  0xffffe410 in __kernel_vsyscall ()
  #1  0xb7f905c6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
  #2  0xb7d11421 in smt_wait (msecs=0) at /home/nick/wiinz/openamq-src/OpenAMQ-1.2c1/base-2.2b1/_install/include/icl.h:2014
  #3  0xb7d11ff1 in smt_initialise () at smt_os_thread.c:1760
  #4  0xb7bdc3ce in amq_client_connection_new_ (file=0x805e060 "", line=0, host=0x805e030 "localhost", virtual_host=0x805e048 "/", auth_data=0x8075b38, 
      instance=0x805e050 "test", trace=3, timeout=10000) at amq_client_connection.c:1663
  #5  0x200638ed in ?? ()
  #6  0x0805e060 in ?? ()
  #7  0x00000000 in ?? ()
  (gdb) 


Any thoughts?

- nick




More information about the openamq-dev mailing list