[omniORB] Multiple corba object synchronization issue

Mahanta, Dhruba Dhruba.Mahanta at kla-tencor.com
Tue Sep 7 15:22:08 BST 2010



-----Original Message-----
From: Mahanta, Dhruba 
Sent: Tuesday, September 07, 2010 1:11 PM
To: 'Martin B.'
Subject: RE: [omniORB] Multiple corba object synchronization issue

Hi Martin

They are the Corba proxy calls custom to our application. No issue with
fundamental CORBA calls like CORBA::ORB_init, string_to_object, etc.
Corba client object Initialization and creation are always fine.

Crash traces are like below

02 00000000`24f1fc90 00000000`679111e9 : 00000000`00876cb0
00000000`24f1fd90 00000000`24230080 00000000`24230080 :
omnithread33_vc8_rt!omni_mutex::omni_mutex+0x27c5
03 00000000`24f1fd20 00000000`678aa682 : 00000000`00000000
00000000`00000000 00000000`00000000 00000000`00888dd0 :
omniORB412_vc8_rt!CORBA::BAD_TYPECODE::BAD_TYPECODE+0x9a0b4
04 00000000`24f1fe00 00000000`678ab3e3 : 00000000`00888dd0
00000000`00000000 00000000`00000000 00000000`00000000 :
omniORB412_vc8_rt!CORBA::BAD_TYPECODE::BAD_TYPECODE+0x3354d
05 00000000`24f1fe80 00000000`67823ec8 : 00000000`00888dd0
00000000`00000000 00000000`00000000 00000000`00000000 :
omniORB412_vc8_rt!CORBA::BAD_TYPECODE::BAD_TYPECODE+0x342ae
06 00000000`24f1fed0 00000000`74a937d7 : 00000000`0082fb60
00000000`00000000 00000000`00000000 00000000`00000000 :
omnithread33_vc8_rt!omni_mutex::omni_mutex+0x2d4c


We are using omniORB 4.12 version.

Regards
Dhruba

-----Original Message-----
From: Martin B. [mailto:0xCDCDCDCD at gmx.at] 
Sent: Tuesday, September 07, 2010 11:50 AM
To: Mahanta, Dhruba
Subject: Re: [omniORB] Multiple corba object synchronization issue

On 07.09.2010 07:38, Mahanta, Dhruba wrote:
> Hi
>
> I am new in using Corba. I am observing a synchronization problem with
> corba communication in the following situation.
>
> There are 3 Corba servers running on 3 different computers. For each
> Corba server, client maintains a different communication Corba
> objects(ORB_var) which are initialized in a thread safe way using
> CORBA::ORB_init(0, NULL).

There are no different ORB objects. The ORB object is a singleton and 
you can have only one per process. (You should be able to have multiple 
references to the ORB via many ORB_var reference objects though)

>
> 1. There is no issue when we call on multiple servers sequentially.
>
> 2. Also no issue when we call on a single server in multiple threads.
>
> 3. But Client crashes when we call on multiple servers in multiple
threads.
>

What calls? Calls on the ORB object (eg to resolve a naming service) or 
calls on some other objects in the servers?

Specify "crash". If it's reproducible attach a debugger and check what 
happens.

br,
Martin



More information about the omniORB-list mailing list