[PolyORB-users] IOR specifies wrong IP address

Wright, Simon J simon.j.wright at amsjv.com
Fri Jan 7 14:52:40 CET 2005


Jerome Hugues wrote:

>> Using the echo server, the IOR that it prints out specifies the IP
>> address 10.0.0.254, which is not the address of any actual machine.
> 
> How did you verify that ? Did you use po_catref ? Another tool ?

First of all by gdb :-) and then with omniorb's catior:

tiamat[12]$ catior
'IOR:01504f4c0d00000049444c3a4563686f3a312e30002e494901000000000000003000000
0010102720b00000031302e302e302e323534003132800a200e0000000000000000000001310
10deadc0d415400000000'
Type ID: "IDL:Echo:1.0"
Profiles:
1. IIOP 1.2 10.0.0.254 32818 "........1....."

>> This happens with both 1.0p (GNAT 3.16a1) and 1.1r (GNAT 5.02a1).
>> 
>> The build machine was connected to 10.0.0.0/24 at the time (its
>> address was 10.0.0.7).
> 
> Can you please detail your setup ? In particular, the OS you are
> using. 

Mandrake 8.2, Linux 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 unknown

> There may also be some glitches when interacting with the DNS. Can you
> please do the following:
> 
> - ifconfig : to return the list of interfaces on your host

tiamat[15]$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:76:50:10:92  
          inet addr:10.8.5.212  Bcast:10.8.7.255  Mask:255.255.252.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:140304 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6382 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:17316017 (16.5 Mb)  TX bytes:1092166 (1.0 Mb)
          Interrupt:10 Base address:0xe800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:439 errors:0 dropped:0 overruns:0 frame:0
          TX packets:439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:29681 (28.9 Kb)  TX bytes:29681 (28.9 Kb)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01  
          inet addr:192.168.215.1  Bcast:192.168.215.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4041 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:192.168.213.1  Bcast:192.168.213.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:367 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

> - hostname : to determine its name

tiamat[16]$ hostname
tiamat.pushface.org

> - host <name> : to check the value returned by the resolver.

This returns nothing! but I find in /etc/hosts that I have

10.0.0.254      tiamat.pushface.org

which explains a lot. oops.

I removed the line and got

tiamat[21]$ ./server
Loading configuration from polyorb.conf
No polyorb.conf configuration file.

Execution terminated by unhandled exception
Exception name: GNAT.SOCKETS.HOST_ERROR
Message: Try again
Call stack traceback locations:
0x8219f4f 0x8218daf 0x8093974 0x81cd387 0x81cd48b 0x80a9499 0x80a9581
0x80a96c8 0x81c7ede 0x81f6e16 0x804aab3 0x4003d27e

and the traceback shows

/home/simon/polyorb-1.0p/src/polyorb-transport-sockets.adb:72
/home/simon/polyorb-1.0p/src/polyorb-setup-tcp_access_points.adb:69
/home/simon/polyorb-1.0p/src/giop/polyorb-setup-tcp_access_points-iiop.adb:8
0
/home/simon/polyorb-1.0p/src/polyorb-initialization.adb:290
/home/simon/polyorb-1.0p/src/polyorb-initialization.adb:308
/home/simon/polyorb-1.0p/src/polyorb-initialization.adb:340
/home/simon/polyorb-1.0p/src/corba/corba-orb.adb:420
/home/simon/polyorb-1.0p/examples/corba/echo/server.adb:61
/home/simon/polyorb-1.0p/examples/corba/echo/b~server.adb:594

(I don't suppose that'll come as much of a surprise!)


I've altered /etc/hosts to match the actual IP address of eth0 and now I
have success!
I can see that my hosts configuration needs some attention (a bit tricky
with a laptop).


Thanks for the steer, any further thoughts welcome.


Regards,

-S

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


More information about the PolyORB-users mailing list