Re: Problem with ORBit2 Client connecting to Jacorb Name Server



Thanks for the help so far. I have done as you asked an the data I get 
back from gdb follows

[greg@Morpheus interface_server]$ gdb interface
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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-redhat-linux-gnu"...
(gdb) set args 
-ORBDebugFlags=traces:types:timings:errors:messages:objects:giop:refs 
-ORBIIOPIPv4=1 -ORBInitRef 
NameService=IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000074000102000000000E3139322E3136382E312E31303100815B0000001F5374616E646172644E532F4E616D655365727665722D504F412F5F726F6F7400000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001
(gdb) run
Starting program: /home/greg/C/interface_server/interface 
-ORBDebugFlags=traces:types:timings:errors:messages:objects:giop:refs 
-ORBIIOPIPv4=1 -ORBInitRef 
NameService=IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000074000102000000000E3139322E3136382E312E31303100815B0000001F5374616E646172644E532F4E616D655365727665722D504F412F5F726F6F7400000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001
[New Thread 1078821728 (LWP 5816)]
Starting Server
Successfully setup Corba Exceptions Environment
Have safe dir '/tmp/orbit-greg'
** WARNING **: Ignoring incoming code_sets component
Lookup 'IDL:omg.org/CosNaming/NamingContextExt:1.0' (0x8050998) == (nil)
Profiles: (null)(null)
Successfully inited Corba
Successfully got the nameserver
About to try getting a user manager
Initiated a connection to 'IPv4' '192.168.1.101' '33115'
p 5816 1074380058.419324 : ([0x8057258])->resolve_str (Align = 16
Marshal: id 0xbfffe410
 'n' : kind - 18, i 'UserManager')Outgoing IIOP data:
0x0000:   47 49 4f 50  01 02 01 00  6c 00 00 00  XX XX XX XX | 
GIOP....l...****
 ---
0x000c:   10 e4 ff bf  03 00 00 00  00 00 00 00  1f 00 00 00 | 
................
0x001c:   53 74 61 6e  64 61 72 64  4e 53 2f 4e  61 6d 65 53 | 
StandardNS/NameS
0x002c:   65 72 76 65  72 2d 50 4f  41 2f 5f 72  6f 6f 74 00 | 
erver-POA/_root.
0x003c:   0c 00 00 00  72 65 73 6f  6c 76 65 5f  73 74 72 00 | 
....resolve_str.
0x004c:   01 00 00 00  01 00 00 00  0c 00 00 00  01 01 01 01 | 
................
0x005c:   01 00 01 05  09 01 01 00  00 00 00 00  0c 00 00 00 | 
................
0x006c:   55 73 65 72  4d 61 6e 61  67 65 72 00  XX XX XX XX | 
UserManager.****
 ---
Incoming IIOP header:
0x0000:   47 49 4f 50  01 02 00 01  00 00 00 ec  XX XX XX XX | 
GIOP........****
 ---
Incoming IIOP body:
0x000c:   bf ff e4 10  00 00 00 00  00 00 00 00  00 00 00 29 | 
...............)
0x001c:   49 44 4c 3a  55 73 65 72  4d 61 6e 61  67 65 6d 65 | 
IDL:UserManageme
0x002c:   6e 74 53 79  73 74 65 6d  2f 55 73 65  72 4d 61 6e | 
ntSystem/UserMan
0x003c:   61 67 65 72  3a 31 2e 30  00 00 00 00  00 00 00 02 | 
ager:1.0........
0x004c:   00 00 00 00  00 00 00 70  00 01 02 00  00 00 00 0e | 
.......p........
0x005c:   31 39 32 2e  31 36 38 2e  31 2e 31 30  31 00 81 64 | 
192.168.1.101..d
0x006c:   00 00 00 1b  53 74 61 6e  64 61 72 64  49 6d 70 6c | 
....StandardImpl
0x007c:   4e 61 6d 65  2f 00 11 32  0e 1b 25 1e  40 46 49 00 | 
Name/..2..%.@FI.
0x008c:   00 00 00 02  00 00 00 00  00 00 00 08  00 00 00 00 | 
................
0x009c:   4a 41 43 00  00 00 00 01  00 00 00 1c  00 00 00 00 | 
JAC.............
0x00ac:   00 01 00 01  00 00 00 01  05 01 00 01  00 01 01 09 | 
................
0x00bc:   00 00 00 01  05 01 00 01  00 00 00 01  00 00 00 2c | 
...............,
0x00cc:   00 00 00 00  00 00 00 01  00 00 00 01  00 00 00 1c | 
................
0x00dc:   00 00 00 00  00 01 00 01  00 00 00 01  05 01 00 01 | 
................
0x00ec:   00 01 01 09  00 00 00 01  05 01 00 01  XX XX XX XX | 
............****
 ---
handling reply

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078821728 (LWP 5816)]
0x40231803 in g_list_delete_link () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0x40231803 in g_list_delete_link () from /usr/lib/libglib-2.0.so.0
#1  0x4017e9d5 in handle_reply (buf=0x8059bd0) at giop-recv-buffer.c:1079
#2  0x4017efc9 in giop_connection_handle_input (lcnx=0x8058d90)
    at giop-recv-buffer.c:1271
#3  0x401a3bfa in link_connection_io_handler (gioc=0x0, condition=G_IO_IN,
    data=0x8058d90) at linc-connection.c:1256
#4  0x401a5f02 in link_source_dispatch (source=0x8058c68,
    callback=0x401a3b5e <link_connection_io_handler>, user_data=0x8058d90)
    at linc-source.c:54
#5  0x40233fdd in unblock_source () from /usr/lib/libglib-2.0.so.0
#6  0x40234fd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#7  0x402352ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#8  0x4023552c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0x401a1784 in link_main_iteration (block_for_reply=1) at linc.c:231
#10 0x4017de23 in giop_recv_buffer_get (ent=0xbfffe3d0)
    at giop-recv-buffer.c:714
#11 0x40182fa1 in ORBit_small_invoke_stub (obj=0x8057258, 
m_data=0x401c8da0,
    ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0, ev=0x804f7cc)
    at orbit-small.c:646
#12 0x40182d11 in ORBit_small_invoke_stub_n (object=0x8057258,
    methods=0x401c8de4, index=3, ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0,
    ev=0x804f7cc) at orbit-small.c:571
#13 0x4019af7b in ORBit_c_stub_invoke (obj=0x8057258, methods=0x401c8de4,
---Type <return> to continue, or q <return> to quit---
    method_index=3, ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0, ev=0x804f7cc,
    class_id=0, method_offset=16,
    skel_impl=0x401c0b1b 
<_ORBIT_skel_small_CosNaming_NamingContextExt_resolve_str>) at poa.c:2594
#14 0x401c1114 in CosNaming_NamingContextExt_resolve_str (_obj=0x8057258,
    n=0x8057379 "UserManager", ev=0x804f7cc) at CosNaming-stubs.c:143
#15 0x0804962e in main (argc=1, argv=0xbfffe564) at interface_main.c:62
#16 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) thread apply all backtrace

Thread 1 (Thread 1078821728 (LWP 5816)):
#0  0x40231803 in g_list_delete_link () from /usr/lib/libglib-2.0.so.0
#1  0x4017e9d5 in handle_reply (buf=0x8059bd0) at giop-recv-buffer.c:1079
#2  0x4017efc9 in giop_connection_handle_input (lcnx=0x8058d90)
    at giop-recv-buffer.c:1271
#3  0x401a3bfa in link_connection_io_handler (gioc=0x0, condition=G_IO_IN,
    data=0x8058d90) at linc-connection.c:1256
#4  0x401a5f02 in link_source_dispatch (source=0x8058c68,
    callback=0x401a3b5e <link_connection_io_handler>, user_data=0x8058d90)
    at linc-source.c:54
#5  0x40233fdd in unblock_source () from /usr/lib/libglib-2.0.so.0
#6  0x40234fd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#7  0x402352ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#8  0x4023552c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0x401a1784 in link_main_iteration (block_for_reply=1) at linc.c:231
#10 0x4017de23 in giop_recv_buffer_get (ent=0xbfffe3d0)
    at giop-recv-buffer.c:714
#11 0x40182fa1 in ORBit_small_invoke_stub (obj=0x8057258, 
m_data=0x401c8da0,
    ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0, ev=0x804f7cc)
    at orbit-small.c:646
#12 0x40182d11 in ORBit_small_invoke_stub_n (object=0x8057258,
    methods=0x401c8de4, index=3, ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0,
---Type <return> to continue, or q <return> to quit---
    ev=0x804f7cc) at orbit-small.c:571
#13 0x4019af7b in ORBit_c_stub_invoke (obj=0x8057258, methods=0x401c8de4,
    method_index=3, ret=0xbfffe4c0, args=0xbfffe4bc, ctx=0x0, ev=0x804f7cc,
    class_id=0, method_offset=16,
    skel_impl=0x401c0b1b 
<_ORBIT_skel_small_CosNaming_NamingContextExt_resolve_str>) at poa.c:2594
#14 0x401c1114 in CosNaming_NamingContextExt_resolve_str (_obj=0x8057258,
    n=0x8057379 "UserManager", ev=0x804f7cc) at CosNaming-stubs.c:143
#15 0x0804962e in main (argc=1, argv=0xbfffe564) at interface_main.c:62
#16 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6

Regards
    Greg

Michael Meeks wrote:

>Hi Greg,
>
>On Thu, 2004-01-15 at 22:03, Greg Amer wrote:
>  
>
>>I am attempting to get a ORBit2  client  to connect an use an object 
>>from a Jacorb name server. I am getting a segmentation fault
>>and I am wondering if anybody can help me. The following shows the 
>>software versions the source code and the error messages that I get.
>>    
>>
>
>	Nasty, we must fix this.
>
>  
>
>> -ORBDebugFlags=traces:types:timings:errors:messages:objects:giop:refs 
>>    
>>
>
>	This is all good, although I use the ORBIT2_DEBUG environment variable
>personally; however it's not churning debug. Perhaps you need to:
>
>	export CFLAGS='-g -O0'
>	cd ORBit2 ; ./configure --enable-debug=yes
>	make clean ; make install
>
>	That should build an ORB with more debugging info.
>
>  
>
>>Profiles: Segmentation fault
>>    
>>
>
>	If you run it in gdb, when it crashes post the result of 'backtrace' or
>'thread apply all backtrace' - plus any churned debug we can get a
>better handle on it.
>
>	Thanks,
>
>		Michael.
>
>  
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]