[omniORB] Object To String (O2S) conversion problem

Gregory Giguashvili Gregoryg@ParadigmGeo.com
Mon Aug 19 09:56:01 2002


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C24766.2E90E800
Content-Type: text/plain;
	charset="iso-8859-1"

Hello,

I'm using omniORB 3.0.4 snapshot dated 25-April-2002. Recently, I came
across a problem on SGI platform, which generated SIGPIPE in my programs.
After investigating it a little, I came to the conclusion that the problem
seems to be in the profile creation in omniORB and this is why...

1) I attach a sample program, which contains interface and its
implementation generated by the IDL compiler (no add-ons).
2) I attach a trace generated when running this program using Valgrind
open-source "Purify" like product for Linux. (Though, I mentioned that the
problem was on SGI platform, SGI Purify and Valgrind gave similar output for
this test program. I chose to provide you with Valgrind output since I think
it's a GREAT product and it really helps to find problems). Refer to the
following link for further information: http://developer.kde.org/~sewardj/
3) As you can see from the trace, it complains that there is uninitialized
memory read each time I use IOR returned by object_to_string function. In my
"real" application, I used to transfer this IOR string as an argument to
some IDL call. On SGI platforms, calling a send system call with
uninitialized string causes SIGPIPE in some cases.
4) After investigating this problem a little, I came to the following
conclusions:
  - The problem doesn't seem to be in IOP::iorToEncapStr function, rather it
seems to be in the profile buffer provided to this function as the argument.
  - The problem doesn't occur for all IPs (this almost drove me crazy since
it happened on certain machines only). I checked this on a standalone
laptop, which was assigned different IPs every time. The following IP:
198.0.0.1 doesn't cause the problem, while 206.109.128.192 does.

I sure hope there is a known fix for this problem, though I find it hard to
beleive that someone noticed it because of its weirdness.

Thanks a lot in advance.
Giga
P.S. 

O2S.tgz file contains the following:
O2S.idl - sample IDL file
O2S.pure - the output from Valgrind
O2S_i.cc - implementation generated by IDL compiler
O2SH.h, O2SSK.cc - IDL generated sources

 <<O2S.tgz>> 


------_=_NextPart_000_01C24766.2E90E800
Content-Type: application/octet-stream;
	name="O2S.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="O2S.tgz"

H4sICAEAAIACAE8yUy50YXIA7RtrU9t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