a pair of typo's in ORBit2
- From: Paco Moya <fmoya inf-cr uclm es>
- To: orbit-list gnome org
- Subject: a pair of typo's in ORBit2
- Date: Mon, 8 Jan 2001 23:55:27 +0100
CORBA 2.3, section 13.6.2 states:
Null object references are indicated by an empty set of profiles, and by
a "Null" type ID (a string which contains only a single terminating
character).
Therefore there is no choice in the NULL typeid...
Index: corba-object.c
===================================================================
RCS file: /cvs/gnome/ORBit2/src/orb/orb-core/corba-object.c,v
retrieving revision 1.16
diff -u -r1.16 corba-object.c
--- corba-object.c 2001/01/01 23:19:58 1.16
+++ corba-object.c 2001/01/08 20:40:51
@@ -774,7 +774,7 @@
if(obj)
typeid = obj->type_id;
else
- typeid = "nil";
+ typeid = "";
type_len = strlen(typeid) + 1;
giop_send_buffer_append_indirect(buf, &type_len, 4);
giop_send_buffer_append(buf, typeid, type_len);
And I guess there is also a small typo in giop-send-buffer.c:
Index: giop-send-buffer.c
===================================================================
RCS file: /cvs/gnome/ORBit2/src/orb/GIOP/giop-send-buffer.c,v
retrieving revision 1.10
diff -u -r1.10 giop-send-buffer.c
--- giop-send-buffer.c 2001/01/01 23:19:57 1.10
+++ giop-send-buffer.c 2001/01/08 22:48:40
@@ -134,7 +134,7 @@
if(!principal_vec)
{
zerovec.iov_base = giop_zero_buf;
- zerovec.iov_len = sizeof(GIOP_unsigned_long);
+ zerovec.iov_len = sizeof(CORBA_unsigned_long);
principal_vec = &zerovec;
}
I cannot get the name-server to work yet...
Using the ORBit2 name-client against the ORBit2 name-server you will get a
MARSHAL system exception.
Using nsadmin from MICO against orbit-name-server seems to work at first but
a simple mkdir (bind_new_context) will generate a segfault. Here is the
backtrace:
#0 ORBit_free (mem=0x1) at allocators.c:56
#1 0x4003320e in CORBA_free (mem=0x1) at allocators.c:9
#2 0x400336ba in ORBit_freekids_via_TypeCode (tc=0x40046fc0, mem=0x8057dc0)
at allocators.c:236
#3 0x40033729 in ORBit_freekids_via_TypeCode (tc=0x40104400, mem=0x8057dc0)
at allocators.c:257
#4 0x400335a0 in ORBit_freekids_via_TypeCode (tc=0x40104460, mem=0x8057dc0)
at allocators.c:211
#5 0x400332ef in ORBit_free (mem=0x8057dc0) at allocators.c:78
#6 0x4003320e in CORBA_free (mem=0x8057dc0) at allocators.c:9
#7 0x400355d8 in CORBA_sequence__freekids (mem=0xbffff5bc, dat=0x0)
at corba-types.c:11
#8 0x804bc1f in _ORBIT_skel_CosNaming_NamingContext_bind_new_context (
_ORBIT_servant=0x8056350, _ORBIT_recv_buffer=0x8058af0, ev=0xbffff63c,
_impl_bind_new_context=0x804acd0 <impl_NamingContext_bind_new_context>)
at CosNaming-skels.c:762
#9 0x4003bc9f in ORBit_handle_request (orb=0x8053858, recv_buffer=0x8058af0)
at poa.c:1944
#10 0x4002f68c in CORBA_ORB_run (_obj=0x8053858, ev=0xbffff7f8)
at corba-orb.c:790
#11 0x804a3f1 in main (argc=1, argv=0xbffff874) at boot.c:108
#12 0x4013ee6c in __libc_start_main () from /lib/libc.so.6
Any hint?
Paco
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]