[omniORB] omniORB 3.04 Thread-safety of CORBA structures

Manning, Kevin J kevin.manning@roke.co.uk
Wed Jan 29 09:47:02 2003


This is a multi-part message in MIME format.

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	charset="iso-8859-1"

Hi

I am having intermittent core dumps in some multi-threaded CORBA code.  

Essentially I have a CORBA struct containing a string and an any.  This is initialised globally, a collection of threads then take a local copy which is used in a CORBA call. 

I have not protected the copying by a mutex as my understanding is that a mutex is only required if some thread is writing the value whilst others are reading.   

1) It would appear that the copying of a read-only CORBA struct containing an any is not thread-safe.  Is this the case? 
2) In other words is there some shared memory between copies of the struct?

I am using omniORB 3.04.

Regards,

Kevin Manning

--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
	name="RMRL-Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="RMRL-Disclaimer.txt"

Registered Office: Roke Manor Research Ltd, Siemens House, Oldbury, Bracknell, 
Berkshire. RG12 8FZ

The information contained in this e-mail and any attachments is confidential to Roke 
Manor Research Ltd and must not be passed to any third party without permission. This 
communication is for information only and shall not create or change any contractual 
relationship.

--------------InterScan_NT_MIME_Boundary--