[omniORB] Server and client block in Thread Pool model (GDB output)

Serguei Kolos Serguei.Kolos at cern.ch
Tue Jul 15 11:09:18 BST 2003


Hello

Here is gdb output for the blocked server and client.
Any help is appreciated.
Cheers
Sergei
PS: I forget to mention that I'm using omnORB 4.0.1

SERVER:
(gdb) info threads
  4 Thread 2051 (LWP 24393)  0x420b4c81 in nanosleep () from 
/lib/i686/libc.so.6
  3 Thread 1026 (LWP 24392)  0x420e19ee in select () from 
/lib/i686/libc.so.6
  2 Thread 2049 (LWP 24391)  0x420e0187 in poll () from /lib/i686/libc.so.6
  1 Thread 1024 (LWP 24390)  0x420293d5 in sigsuspend () from 
/lib/i686/libc.so.6
(gdb) thread 1
[Switching to thread 1 (Thread 1024 (LWP 24390))]#0  0x420293d5 in 
sigsuspend () from /lib/i686/libc.so.6
(gdb) bt
#0  0x420293d5 in sigsuspend () from /lib/i686/libc.so.6
#1  0x4029b609 in __pthread_wait_for_restart_signal () from 
/lib/i686/libpthread.so.0
#2  0x40297eec in pthread_cond_wait () from /lib/i686/libpthread.so.0
#3  0x401a1911 in omni_condition::wait() (this=0x4019ddc0) at 
../../../../src/lib/omnithread/posix.cc:134
#4  0x400a6f89 in omni::ORBAsyncInvoker::perform(unsigned long, unsigned 
long) (this=0x8052b38, secs=0, nanosecs=0)
    at ../../../../../src/lib/omniORB/orbcore/corbaOrb.cc:1085
#5  0x400a603b in omniOrbORB::run() (this=0x8052e50) at 
../../../../../src/lib/omniORB/orbcore/corbaOrb.cc:781
#6  0x0804bfdb in main (argc=1, argv=0xbfffcfa4) at eg2_impl.cc:88
#7  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) thread 2
[Switching to thread 2 (Thread 2049 (LWP 24391))]#0  0x420e0187 in poll 
() from /lib/i686/libc.so.6
(gdb) bt
#0  0x420e0187 in poll () from /lib/i686/libc.so.6
#1  0x40298c30 in __pthread_manager () from /lib/i686/libpthread.so.0
(gdb) thread 3
[Switching to thread 3 (Thread 1026 (LWP 24392))]#0  0x420e19ee in 
select () from /lib/i686/libc.so.6
(gdb) bt
#0  0x420e19ee in select () from /lib/i686/libc.so.6
#1  0x4019a464 in __JCR_LIST__ () from 
/afs/cern.ch/user/k/kolos/omni/lib/libomniORB4.so.0
#2  0x4012e618 in omni::SocketCollection::Select() (this=0x80530bc) at 
../../../../../src/lib/omniORB/orbcore/SocketCollection.cc:358
#3  0x4014fbc2 in omni::tcpEndpoint::AcceptAndMonitor(void (*)(void*, 
omni::giopConnection*), void*) (this=0x80530b8,
    func=0x401169cc <omni::giopRendezvouser::notifyReadable(void*, 
omni::giopConnection*)>, cookie=0x80536e0)
    at ../../../../../src/lib/omniORB/orbcore/tcp/tcpEndpoint.cc:345
#4  0x40116af3 in omni::giopRendezvouser::execute() (this=0x80536e0) at 
../../../../../src/lib/omniORB/orbcore/giopRendezvouser.cc:86
#5  0x400c3ce8 in omniAsyncWorker::real_run() (this=0x8053708) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:182
#6  0x400c2d58 in omniAsyncWorkerInfo::run() (this=0x404a7a9c) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:229
#7  0x400c4093 in omniAsyncWorker::run(void*) (this=0x8053708) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:133
#8  0x401a230c in omni_thread_wrapper (ptr=0x8053708) at 
../../../../src/lib/omnithread/posix.cc:425
#9  0x40298faf in pthread_start_thread () from /lib/i686/libpthread.so.0
(gdb) thread 4
[Switching to thread 4 (Thread 2051 (LWP 24393))]#0  0x420b4c81 in 
nanosleep () from /lib/i686/libc.so.6
(gdb) bt
#0  0x420b4c81 in nanosleep () from /lib/i686/libc.so.6
#1  0x4029b115 in __pthread_timedsuspend_new () from 
/lib/i686/libpthread.so.0
#2  0x40298120 in pthread_cond_timedwait_relative () from 
/lib/i686/libpthread.so.0
#3  0x401a199c in omni_condition::timedwait(unsigned long, unsigned 
long) (this=0x8052e28, secs=1058256222, nanosecs=52017000)
    at ../../../../src/lib/omnithread/posix.cc:143
#4  0x4010c90f in omni::Scavenger::execute() (this=0x8055b10) at 
../../../../../src/lib/omniORB/orbcore/giopStrand.cc:647
#5  0x400c3ce8 in omniAsyncWorker::real_run() (this=0x8055c70) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:182
#6  0x400c2d58 in omniAsyncWorkerInfo::run() (this=0x406a7a9c) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:229
#7  0x400c4093 in omniAsyncWorker::run(void*) (this=0x8055c70) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:133
#8  0x401a230c in omni_thread_wrapper (ptr=0x8055c70) at 
../../../../src/lib/omnithread/posix.cc:425
#9  0x40298faf in pthread_start_thread () from /lib/i686/libpthread.so.0
(gdb)


CLIENT:
(gdb) info threads
  3 Thread 1026 (LWP 366)  0x420b4c81 in nanosleep () from 
/lib/i686/libc.so.6
  2 Thread 2049 (LWP 365)  0x420e0187 in poll () from /lib/i686/libc.so.6
  1 Thread 1024 (LWP 364)  0x420e82f2 in recv () from /lib/i686/libc.so.6
(gdb) thread 1
[Switching to thread 1 (Thread 1024 (LWP 364))]#0  0x420e82f2 in recv () 
from /lib/i686/libc.so.6
(gdb) bt
#0  0x420e82f2 in recv () from /lib/i686/libc.so.6
#1  0x4029dce4 in recv () from /lib/i686/libpthread.so.0
#2  0x4014dcbf in omni::tcpConnection::Recv(void*, unsigned, unsigned 
long, unsigned long) (this=0x805842c, buf=0x80584a0,
    sz=8192, deadline_secs=0, deadline_nanosecs=0) at 
../../../../../src/lib/omniORB/orbcore/tcp/tcpConnection.cc:273
#3  0x4010fe40 in omni::giopStream::inputMessage() (this=0x80562ec)
    at ../../../../../src/lib/omniORB/orbcore/giopStream.cc:810
#4  0x4012670f in omni::giopImpl12::inputReplyBegin(omni::giopStream*, 
void (*)(omni::giopStream*)) (g=0x80562ec,
    unmarshalHeader=0x40126de8 
<omni::giopImpl12::unmarshalReplyHeader(omni::giopStream*)>)
    at ../../../../../src/lib/omniORB/orbcore/giopImpl12.cc:600
#5  0x4012687a in omni::giopImpl12::inputMessageBegin(omni::giopStream*, 
void (*)(omni::giopStream*)) (g=0x80562ec,
    unmarshalHeader=0x40126de8 
<omni::giopImpl12::unmarshalReplyHeader(omni::giopStream*)>)
    at ../../../../../src/lib/omniORB/orbcore/giopImpl12.cc:643
#6  0x4011749d in omni::GIOP_C::ReceiveReply() (this=0x80562e8) at 
../../../../../src/lib/omniORB/orbcore/GIOP_C.cc:159
#7  0x400f7b0c in omniRemoteIdentity::dispatch(omniCallDescriptor&) 
(this=0x8054230, call_desc=@0xbfffd050)
    at ../../../../../src/lib/omniORB/orbcore/remoteIdentity.cc:174
#8  0x400d8cd1 in omniObjRef::_invoke(omniCallDescriptor&, bool) 
(this=0x8054270, call_desc=@0xbfffd050, do_assert=true)
    at ../../../../../src/lib/omniORB/orbcore/omniObjRef.cc:741
#9  0x0804df24 in _objref_Echo::twoway_echo() (this=0x8054260) at 
echoSK.cc:182
#10 0x0804bbbe in test_twoway (e=0x8054260, num=100000) at eg2_clt.cc:115
#11 0x0804c868 in main (argc=4, argv=0xbfffd324) at eg2_clt.cc:268
#12 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) thread 2
[Switching to thread 2 (Thread 2049 (LWP 365))]#0  0x420e0187 in poll () 
from /lib/i686/libc.so.6
(gdb) bt
#0  0x420e0187 in poll () from /lib/i686/libc.so.6
#1  0x40298c30 in __pthread_manager () from /lib/i686/libpthread.so.0
(gdb) thread 3
[Switching to thread 3 (Thread 1026 (LWP 366))]#0  0x420b4c81 in 
nanosleep () from /lib/i686/libc.so.6
(gdb) bt
#0  0x420b4c81 in nanosleep () from /lib/i686/libc.so.6
#1  0x4029b115 in __pthread_timedsuspend_new () from 
/lib/i686/libpthread.so.0
#2  0x40298120 in pthread_cond_timedwait_relative () from 
/lib/i686/libpthread.so.0
#3  0x401a199c in omni_condition::timedwait(unsigned long, unsigned 
long) (this=0x8053a98, secs=1058256367,
    nanosecs=353519000) at ../../../../src/lib/omnithread/posix.cc:143
#4  0x4010c90f in omni::Scavenger::execute() (this=0x8053f50) at 
../../../../../src/lib/omniORB/orbcore/giopStrand.cc:647
#5  0x400c3ce8 in omniAsyncWorker::real_run() (this=0x80542a0) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:182
#6  0x400c2d58 in omniAsyncWorkerInfo::run() (this=0x404a7a9c) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:229
#7  0x400c4093 in omniAsyncWorker::run(void*) (this=0x80542a0) at 
../../../../../src/lib/omniORB/orbcore/invoker.cc:133
#8  0x401a230c in omni_thread_wrapper (ptr=0x80542a0) at 
../../../../src/lib/omnithread/posix.cc:425
#9  0x40298faf in pthread_start_thread () from /lib/i686/libpthread.so.0






More information about the omniORB-list mailing list