[omniORB] OmniORB 3.0.4 omniNames problem with Solaris 8/x86 MU4 and GCC 3.0
Fazal Majid
fmajid@kefta.com
Fri, 29 Jun 2001 12:53:12 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C1009A.74BCD320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
> It probably is something related to GCC 3. Before you go off compiling
> with debugging, it may be sufficient just to know the functions which
> are blocking. Get a back-trace of the blocked threads in gdb, and see
> what the inner-most omniORB function is.
I thought you needed to compile with debugging on to get useable traces, so
I already did.
I am attaching two transcripts of my reproduction case: I start omniNames as
root, and then eg3_impl as myself. Once eg3_impl is started, omniNames will
not respond to anything, not even "nameclt list test.my_context".
Unfortunately, as I am not a C++ programmer, I didn't apply the GDB patches
to demangle C++ symbols using the new GCC 3.0 ABI.
Hope this helps,
--
Fazal Majid Chief Technology Officer
fmajid@kefta.com Kefta
Voice: +1 415 391 6881 ext 8014 153 Kearny St. Suite 209
Fax: +1 415 391 7097 San Francisco, CA 94108, USA
------=_NextPart_000_000B_01C1009A.74BCD320
Content-Type: text/plain;
name="omni1.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="omni1.txt"
Script started on Fri Jun 29 12:14:22 2001
# ./t
bayazid ~#setenv OMNINAMES_LOGDIR /var/omninames
bayazid ~#setenv LD_LIBRARY_PATH =
/usr/lib:/usr/local/lib:/usr/local/omni-gcc3.0-g/lib
bayazid ~#/usr/local/omni-gcc3.0-g/bin/omniNames
Fri Jun 29 12:15:29 2001:
Read log file successfully.
Root context is =
IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696=
e67436f6e746578744578743a312e300000010000000000000027000000010100000e0000=
003139322e3136382e312e32333800f90a0b0000004e616d6553657276696365
Checkpointing Phase 1: Prepare.
Checkpointing Phase 2: Commit.
Checkpointing completed.
^C
bayazid ~#gdb /usr/local/omni-gcc3.0-g/bin/omniNames
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you =
are
welcome to change it and/or distribute copies of it under certain =
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for =
details.
This GDB was configured as "i386-pc-solaris2.8"...
(gdb) r
Starting program: /usr/local/omni-gcc3.0-g/bin/omniNames=20
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
Fri Jun 29 12:15:56 2001:
Read log file successfully.
Root context is =
IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696=
e67436f6e746578744578743a312e300000010000000000000027000000010100000e0000=
003139322e3136382e312e32333800f90a0b0000004e616d6553657276696365
Checkpointing Phase 1: Prepare.
Checkpointing Phase 2: Commit.
Checkpointing completed.
[New LWP 6]
^C
Program received signal SIGINT, Interrupt.
[Switching to LWP 4]
0xdf81b67c in _so_accept () from /usr/lib/libc.so.1
(gdb) thread apply all bt
Thread 7 (Thread 7 (LWP 4)):
#0 0xdf81b67c in _so_accept () from /usr/lib/libc.so.1
#1 0xdfa08e98 in accept () from /usr/lib/libsocket.so.1
#2 0xdfb41c8d in _ZN21tcpSocketRendezvouser14run_undetachedEPv (
this=3D0x808dca8, arg=3D0x808d988) at ../tcpSocketMTfactory.cc:1420
#3 0xdfa72bc4 in omni_thread_wrapper (ptr=3D0x808dca8) at =
../posix.cc:424
Thread 6 (LWP 6 ):
#0 0xdf818a5f in _door_return_restart () from /usr/lib/libc.so.1
#1 0xdf754352 in _sc_door_func () from /usr/lib/libthread.so.1
#2 0xdf749dc0 in _lwp_start () from /usr/lib/libthread.so.1
Thread 5 (LWP 5 ):
#0 0xdf81af82 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xdf7489f4 in _co_timerset () from /usr/lib/libthread.so.1
Thread 4 (LWP 4 ):
#0 0xdf81b67c in _so_accept () from /usr/lib/libc.so.1
#1 0xdfa08e98 in accept () from /usr/lib/libsocket.so.1
#2 0xdfb41c8d in _ZN21tcpSocketRendezvouser14run_undetachedEPv (
this=3D0x808dca8, arg=3D0x808d988) at ../tcpSocketMTfactory.cc:1420
#3 0xdfa72bc4 in omni_thread_wrapper (ptr=3D0x808dca8) at =
../posix.cc:424
---Type <return> to continue, or q <return> to quit---
Thread 3 (LWP 3 ):
#0 0xdf81af82 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xdf74939d in _park () from /usr/lib/libthread.so.1
#2 0xdf7491c3 in _swtch () from /usr/lib/libthread.so.1
#3 0xdf747d83 in cond_timedwait () from /usr/lib/libthread.so.1
#4 0xdf747bae in pthread_cond_timedwait () from /usr/lib/libthread.so.1
#5 0xdfa7245c in _ZN14omni_condition9timedwaitEmm (this=3D0x808d8c4,=20
secs=3D993843289, nanosecs=3D88696049) at ../posix.cc:156
#6 0xdfb352cf in _ZN17omniORB_Scavenger14run_undetachedEPv =
(this=3D0x808d870)
at ../scavenger.cc:338
#7 0xdfa72bc4 in omni_thread_wrapper (ptr=3D0x808d870) at =
../posix.cc:424
Thread 2 (LWP 2 ):
#0 0xdf81afe7 in _lwp_sigredirect () from /usr/lib/libc.so.1
#1 0xdf74e03e in _sigredirect_thread () from /usr/lib/libthread.so.1
#2 0xdf74d61a in _sigredirect () from /usr/lib/libthread.so.1
#3 0xdf74d9a5 in _dynamiclwps () from /usr/lib/libthread.so.1
Thread 1 (LWP 1 ):
#0 0xdf81af82 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xdf74939d in _park () from /usr/lib/libthread.so.1
#2 0xdf7491c3 in _swtch () from /usr/lib/libthread.so.1
---Type <return> to continue, or q <return> to quit---
#3 0xdf74cb41 in _reap_wait () from /usr/lib/libthread.so.1
#4 0xdf74c918 in _reaper () from /usr/lib/libthread.so.1
#0 0xdf81b67c in _so_accept () from /usr/lib/libc.so.1
(gdb) q
The program is running. Exit anyway? (y or n) q
Please answer y or n.
The program is running. Exit anyway? (y or n) y
script done on Fri Jun 29 12:35:19 2001
script done on Fri Jun 29 12:35:19 2001
------=_NextPart_000_000B_01C1009A.74BCD320
Content-Type: text/plain;
name="omni2.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="omni2.txt"
Script started on Fri 29 Jun 2001 12:30:17 PM PDT
bayazid ~/src/omni/src/examples/echo>setenv LD_LIBRARY_PATH =
/usr/lib:/usr/local/lib:/usr/local/omni-gcc3.0-g/lib
bayazid ~/src/omni/src/examples/echo>gdb eg3_impl
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you =
are
welcome to change it and/or distribute copies of it under certain =
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for =
details.
This GDB was configured as "i386-pc-solaris2.8"...
(gdb) r
Starting program: /home/majid/src/omni/src/examples/echo/eg3_impl=20
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
[New LWP 6]
[New LWP 7]
^C
Program received signal SIGINT, Interrupt.
0xdf81b6e2 in _so_recv () from /usr/lib/libc.so.1
(gdb) thread apply all bt
Thread 8 (Thread 1 (LWP 1)):
#0 0xdf81b6e2 in _so_recv () from /usr/lib/libc.so.1
#1 0xdfa08f11 in recv () from /usr/lib/libsocket.so.1
#2 0xdfb413d8 in _ZN15tcpSocketStrand7ll_recvEPvj (this=3D0x80705d8,=20
buf=3D0x8078e90, sz=3D8200) at ../tcpSocketMTfactory.cc:1054
#3 0xdfb3d873 in _ZN20reliableStreamStrand5fetchEm (this=3D0x80705d8, =
max=3D0)
at ../relStream.cc:269
#4 0xdfb3d6a7 in _ZN20reliableStreamStrand7receiveEjbib =
(this=3D0x80705d8,=20
size=3D8192, exactly=3Dfalse, align=3D8) at ../relStream.cc:197
#5 0xdfb3230c in _ZN17NetBufferedStream7receiveEjb (this=3D0x80467e0,=20
minimum=3D8, startMTU=3Dtrue) at ../nbufferedStream.cc:345
#6 0xdfb31d6b in =
_ZN17NetBufferedStream14get_char_arrayEPhiN4omni11alignment_tEb =
(this=3D0x80467e0, b=3D0x8046778 =
"=A8g\004\b[=C6=B4=DF=BC=DF\006\b=E0g\004\b=A8g\004\b=E6=C5=B4=DF",=20
size=3D8, align=3DALIGN_1, startMTU=3Dtrue)
at ../../../../../include/omniORB3/bufferedStream.h:520
#7 0xdfb267a7 in _ZN6GIOP_C12ReceiveReplyEv (this=3D0x80467e0)
at ../giopClient.cc:230
#8 0xdfafbe13 in _ZN18omniRemoteIdentity8dispatchER18omniCallDescriptor =
(
this=3D0x806f340, call_desc=3D@0x80468f0) at =
../remoteIdentity.cc:136
#9 0xdfafaad8 in _ZN10omniObjRef7_invokeER18omniCallDescriptorb (
this=3D0x806f7f0, call_desc=3D@0x80468f0, do_assert=3Dtrue)
at ../../../../../include/omniORB3/omniObjRef.h:211
---Type <return> to continue, or q <return> to quit---
#10 0xdfb4ca6e in =
_ZN9CosNaming21_objref_NamingContext7resolveERKNS_4NameE (
this=3D0x806f7e0, n=3D@0x80469a0) at ../../omniORB3/NamingSK.cc:973
#11 0x80564ca in _Z16bindObjectToNamePN5CORBA3ORBEPNS_6ObjectE =
(orb=3D0x806d1f0,=20
objref=3D0x806f18c) at ../../../include/omniORB3/templatedecls.h:391
#12 0x8055410 in main (argc=3D1, argv=3D0x8046a84)
at ../../../include/omniORB3/CORBA_vartypes.h:533
Thread 7 (LWP 7 ):
#0 0xdf818a5f in _door_return_restart () from /usr/lib/libc.so.1
#1 0xdf764352 in _sc_door_func () from /usr/lib/libthread.so.1
#2 0xdf759dc0 in _lwp_start () from /usr/lib/libthread.so.1
Thread 6 (LWP 6 ):
#0 0xdf81af69 in ___lwp_cond_wait () from /usr/lib/libc.so.1
#1 0xdf846ae9 in _lwp_cond_timedwait () from /usr/lib/libc.so.1
#2 0xdf758cec in _age () from /usr/lib/libthread.so.1
#3 0xdf764495 in _schedctl_start () from /usr/lib/libthread.so.1
#4 0xdf818ad2 in _door_return_restart () from /usr/lib/libc.so.1
#5 0xdf759dc0 in _lwp_start () from /usr/lib/libthread.so.1
Thread 5 (LWP 5 ):
#0 0xdf81af82 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xdf7589f4 in _co_timerset () from /usr/lib/libthread.so.1
---Type <return> to continue, or q <return> to quit---
Thread 4 (LWP 4 ):
#0 0xdf81b67c in _so_accept () from /usr/lib/libc.so.1
#1 0xdfa08e98 in accept () from /usr/lib/libsocket.so.1
#2 0xdfb41c8d in _ZN21tcpSocketRendezvouser14run_undetachedEPv (
this=3D0x806f0c0, arg=3D0x806eda0) at ../tcpSocketMTfactory.cc:1420
#3 0xdfa72bc4 in omni_thread_wrapper (ptr=3D0x806f0c0) at =
../posix.cc:424
Thread 3 (LWP 3 ):
#0 0xdf81af82 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1 0xdf75939d in _park () from /usr/lib/libthread.so.1
#2 0xdf7591c3 in _swtch () from /usr/lib/libthread.so.1
#3 0xdf757d83 in cond_timedwait () from /usr/lib/libthread.so.1
#4 0xdf757bae in pthread_cond_timedwait () from /usr/lib/libthread.so.1
#5 0xdfa7245c in _ZN14omni_condition9timedwaitEmm (this=3D0x806ecdc,=20
secs=3D993843290, nanosecs=3D648785585) at ../posix.cc:156
#6 0xdfb352cf in _ZN17omniORB_Scavenger14run_undetachedEPv =
(this=3D0x806ec88)
at ../scavenger.cc:338
#7 0xdfa72bc4 in omni_thread_wrapper (ptr=3D0x806ec88) at =
../posix.cc:424
Thread 2 (LWP 2 ):
#0 0xdf81b0be in _signotifywait () from /usr/lib/libc.so.1
#1 0xdf75d86f in _dynamiclwps () from /usr/lib/libthread.so.1
---Type <return> to continue, or q <return> to quit---
Thread 1 (LWP 1 ):
#0 0xdf81b6e2 in _so_recv () from /usr/lib/libc.so.1
#1 0xdfa08f11 in recv () from /usr/lib/libsocket.so.1
#2 0xdfb413d8 in _ZN15tcpSocketStrand7ll_recvEPvj (this=3D0x80705d8,=20
buf=3D0x8078e90, sz=3D8200) at ../tcpSocketMTfactory.cc:1054
#3 0xdfb3d873 in _ZN20reliableStreamStrand5fetchEm (this=3D0x80705d8, =
max=3D0)
at ../relStream.cc:269
#4 0xdfb3d6a7 in _ZN20reliableStreamStrand7receiveEjbib =
(this=3D0x80705d8,=20
size=3D8192, exactly=3Dfalse, align=3D8) at ../relStream.cc:197
#5 0xdfb3230c in _ZN17NetBufferedStream7receiveEjb (this=3D0x80467e0,=20
minimum=3D8, startMTU=3Dtrue) at ../nbufferedStream.cc:345
#6 0xdfb31d6b in =
_ZN17NetBufferedStream14get_char_arrayEPhiN4omni11alignment_tEb =
(this=3D0x80467e0, b=3D0x8046778 =
"=A8g\004\b[=C6=B4=DF=BC=DF\006\b=E0g\004\b=A8g\004\b=E6=C5=B4=DF",=20
size=3D8, align=3DALIGN_1, startMTU=3Dtrue)
at ../../../../../include/omniORB3/bufferedStream.h:520
#7 0xdfb267a7 in _ZN6GIOP_C12ReceiveReplyEv (this=3D0x80467e0)
at ../giopClient.cc:230
#8 0xdfafbe13 in _ZN18omniRemoteIdentity8dispatchER18omniCallDescriptor =
(
this=3D0x806f340, call_desc=3D@0x80468f0) at =
../remoteIdentity.cc:136
#9 0xdfafaad8 in _ZN10omniObjRef7_invokeER18omniCallDescriptorb (
this=3D0x806f7f0, call_desc=3D@0x80468f0, do_assert=3Dtrue)
at ../../../../../include/omniORB3/omniObjRef.h:211
---Type <return> to continue, or q <return> to quit---
#10 0xdfb4ca6e in =
_ZN9CosNaming21_objref_NamingContext7resolveERKNS_4NameE (
this=3D0x806f7e0, n=3D@0x80469a0) at ../../omniORB3/NamingSK.cc:973
#11 0x80564ca in _Z16bindObjectToNamePN5CORBA3ORBEPNS_6ObjectE =
(orb=3D0x806d1f0,=20
objref=3D0x806f18c) at ../../../include/omniORB3/templatedecls.h:391
#12 0x8055410 in main (argc=3D1, argv=3D0x8046a84)
at ../../../include/omniORB3/CORBA_vartypes.h:533
#0 0xdf81b6e2 in _so_recv () from /usr/lib/libc.so.1
(gdb) q
The program is running. Exit anyway? (y or n) y
bayazid ~/src/omni/src/examples/echo>exit
script done on Fri 29 Jun 2001 12:35:22 PM PDT
------=_NextPart_000_000B_01C1009A.74BCD320--