[omniORB] Multiple servers pinning the same port?

Bruce Visscher visschb@rjrt.com
Wed, 18 Jul 2001 14:37:22 -0400


Bruce,

> I have noticed that omniORB seems quite happy to
> seize control of a port that is already being used
> by another server. For instance, you can run two
> naming services on the same port.

Really?  When I try that on OpenVMS, here's what happens:

SYS16[.DPC.BCV.CFG]> omninames
BOA_init falied: cannot use port 27500 to accept incoming IIOP calls.
%CXXL-F-TERMINATE, terminate() or unexpected() called
%TRACE-F-TRACEBACK, symbolic stack dump follows
  image    module    routine             line      rel PC           abs PC
 OMNINAMES                                  0 000000000003054C 000000000004054C
 OMNINAMES                                  0 00000000000325B0 00000000000425B0
----- above condition handler called with exception 05F7841C:
%CXXL-F-RETHROW, Exception rethrown at PC = 0010F8C0
----- end of exception message
                                            0 FFFFFFFF8008BC3C FFFFFFFF8008BC3C
 OMNIORB2_RT                                0 00000000000C0B64 0000000000132B64
 OMNIORB2_RT                                0 00000000000C1144 0000000000133144
 OMNIORB2_RT  CORBABOA  BOA_init        27765 0000000000001460 000000000010F8C0
 OMNINAMES  OMNINAMES  main             29227 00000000000008B0 00000000000308B0
 OMNINAMES  OMNINAMES  __MAIN               0 0000000000000070 0000000000030070
 OMNINAMES                                  0 0000000000034FF0 0000000000044FF0
 PTHREAD$RTL                                0 00000000000312FC 000000007BB492FC
 PTHREAD$RTL                                0 0000000000012B48 000000007BB2AB48
                                            0 FFFFFFFFA91613F4 FFFFFFFFA91613F4
%CXXL-F-TERMINATE, terminate() or unexpected() called
%TRACE-F-TRACEBACK, symbolic stack dump follows
  image    module    routine             line      rel PC           abs PC
 OMNIORB2_RT                                0 00000000000C14AC 00000000001334AC
 OMNIORB2_RT                                0 00000000000C3510 0000000000135510
----- above condition handler called with exception 05F78414:
%CXXL-F-EXCEPTION, Exception thrown at PC = 001A6298
----- end of exception message
                                            0 FFFFFFFF8008BC3C FFFFFFFF8008BC3C
 OMNITHREAD_RT                              0 00000000000324D4 00000000001A84D4
 OMNITHREAD_RT                              0 0000000000032654 00000000001A8654
 OMNITHREAD_RT  POSIX  ~omni_mutex       9466 0000000000000298 00000000001A6298
 OMNIORB2_RT  CORBABOA  __fini_CORBABOA_CC_1_83a85060_00000000
                                        27611 0000000000000868 000000000010ECC8
                                            0 FFFFFFFF8095D16C FFFFFFFF8095D16C
                                            0 FFFFFFFF8006EE04 FFFFFFFF8006EE04
 PTHREAD$RTL                                0 000000000004636C 000000007BB5E36C
 PTHREAD$RTL                                0 00000000000312FC 000000007BB492FC
 PTHREAD$RTL                                0 0000000000021504 000000007BB39504
                                            0 0000000000000000 0000000000000000
 PTHREAD$RTL                                                 ?                ?
                                            0 FFFFFFFFA91613F4 FFFFFFFFA91613F4

Not very pretty, but effective!

I always assumed it was the OS's responsibility to prevent problems like what
you describe.  What platform are you doing this on?

Bruce
-- 

Bruce Visscher                                        visschb@rjrt.com
CONFIDENTIALITY NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information.  If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system.  Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.