<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Duncan,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Greetings!!!<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">We are using omniORB-4.2.0 library in our application. Earlier we used gcc-4.2.3 to compile omniORB and our application.<o:p></o:p></p>
<p class="MsoNormal">omniORB &#43; application works fine with gcc-4.2.3. But we upgraded the compiler from gcc-4.2.3 to gcc-8.2.0. On both compiler, we compiled omniORB &#43; application with C&#43;&#43;11.<o:p></o:p></p>
<p class="MsoNormal">But when we run the omniORB &#43; application which is compiled with gcc-8.2.0, omniORB gets crashed because it unable to catch the Exception &#8220;CommFailure&#8221; and lead into termination.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">To discriminate the issue whether does it occur in omniORB or application code, we compiled the call_back example of omniORB with
<b>gcc-8.2.0</b> and tested it.<o:p></o:p></p>
<p class="MsoNormal">And observed the same termination on throwing &#8220;CommFailure&#8221; exception. Log snippet below<b>,<o:p></o:p></b></p>
<p class="MsoNormal"><b>cb_server:<o:p></o:p></b></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.586194: omniRemoteIdentity deleted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.586256: ObjRef(IDL:cb/CallBack:1.0) -- deleted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (1) 2019-11-04 03:14:00.625647: SocketCollection idle. Sleeping.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.683793: Error in network receive (start of message): giop:tcp:[::ffff:10.41.46.92]:47079<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.684047: throw giopStream::CommFailure from giopStream.cc:808(0,NO,COMM_FAILURE_UnMarshalArguments)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">terminate called after throwing an instance of 'omni::giopStream::CommFailure'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">IOT/Abort trap (core dumped)<o:p></o:p></span></p>
<p class="MsoNormal"><b>cb_client log:<o:p></o:p></b></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.589003: Error in network receive (start of message): giop:tcp:[::ffff:10.41.46.92]:47080<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (0) 2019-11-04 03:14:00.589108: Wait for 1 dedicated thread to finish...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 03:14:00.589286: throw giopStream::CommFailure from giopStream.cc:808(0,NO,COMM_FAILURE_UnMarshalArguments)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">terminate called after throwing an instance of 'omni::giopStream::CommFailure'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">IOT/Abort trap (core dumped)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">Gone through the code and understand that the &#8220;CommFailure&#8221; exception is get caught properly with the below catch when compiled the code in gcc-4.8.3.<o:p></o:p></p>
<p class="MsoNormal"><b>omniORB-4.2.0/src/lib/omniORB/orbcore/GIOP_S.cc<o:p></o:p></b></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black">CORBA::</span><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF">Boolean</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF">GIOP_S</span><span style="font-size:9.5pt;font-family:Consolas;color:black">::dispatcher() {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black">&#8230;&#8230;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black">&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">catch</span><span style="font-size:9.5pt;font-family:Consolas;color:black">(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">const</span><span style="font-size:9.5pt;font-family:Consolas;color:black">
</span><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF">giopStream</span><span style="font-size:9.5pt;font-family:Consolas;color:black">::</span><span style="font-size:9.5pt;font-family:Consolas;color:#2B91AF">CommFailure</span><span style="font-size:9.5pt;font-family:Consolas;color:black">&amp;)
 {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:green">// Connection has been closed.</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black">&nbsp;&nbsp;&nbsp;
</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">return</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> 0;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black">&nbsp; }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black">}<o:p></o:p></span></p>
<p class="MsoNormal">Log snippet for the test carried out the code compiled with <b>
gcc-4.8.3</b>,<o:p></o:p></p>
<p class="MsoNormal"><b>cb_server log:<o:p></o:p></b></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.746079: omniRemoteIdentity deleted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.746149: ObjRef(IDL:cb/CallBack:1.0) -- deleted.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.757442: Orderly connection shutdown: giop:tcp:[::ffff:10.41.46.92]:54095<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.757519: throw giopStream::CommFailure from giopImpl12.cc:1243(0,NO,COMM_FAILURE_UnMarshalArguments)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.759081: Server connection giop:tcp:[::ffff:10.41.46.92]:54095 refcount = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.759249: Server connection giop:tcp:[::ffff:10.41.46.92]:54095 refcount = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.759342: Server close connection from giop:tcp:[::ffff:10.41.46.92]:54095<o:p></o:p></span></p>
<p class="MsoNormal"><b>cb_client log:<o:p></o:p></b></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.749629: Error in network receive (start of message): giop:tcp:[::ffff:10.41.46.92]:54096<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.749833: throw giopStream::CommFailure from giopStream.cc:808(0,NO,COMM_FAILURE_UnMarshalArguments)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.751635: Server connection giop:tcp:[::ffff:10.41.46.92]:54096 refcount = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.751792: removeConnectionAndWorker for dedicated worker. 0 remaining.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">omniORB: (3) 2019-11-04 05:48:21.751966: Server connection giop:tcp:[::ffff:10.41.46.92]:54096 refcount = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">But the exception does not get caught with the catch when compiled omniORB with gcc-8.2.0.
<o:p></o:p></p>
<p class="MsoNormal">Could you please clarify us the cause for this issue and why ominORB unable to handle the exception if gcc-8.2.0 and also provide your suggestions to fix this issue?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks &amp; Regards,<o:p></o:p></p>
<p class="MsoNormal">P. Prasath.<span style="color:#843C0C;mso-style-textfill-fill-color:#843C0C;mso-style-textfill-fill-alpha:100.0%"><o:p></o:p></span></p>
</div>
<p><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;">The content of this message is APPLIED MATERIALS CONFIDENTIAL. If you are not the intended recipient, please notify me, delete this email and do not use or distribute this email.
</span></p>
</body>
</html>