<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Prasath<br>
      <br>
      I still believe that the issue is not related to omniORB. In our
      project we have been using <br>
      omniORB-4.2.2 compiled with gcc 8.2.0 (using c++1z option which is
      a synonym of the c++17) <br>
      for the x86_64-pc-linux-gnu platform and it works flawlessly. It
      should be either a compiler <br>
      configuration issue or something inside your project.<br>
      By the way did you try to run any of the omniORB examples compiled
      with gcc 8.2.0?<br>
      <br>
      Cheers,<br>
      Serguei<br>
      <br>
      PS: Here is our compiler configuration<br>
      <br>
      <blockquote>g++ -v<br>
        Using built-in specs.<br>
        COLLECT_GCC=g++<br>
        Target: x86_64-pc-linux-gnu<br>
        Configured with: configure --prefix=/gcc/8.2.0/x86_64-centos7
        -with-system-zlib --disable-multilib --enable-languages=all
        --with-gnu-ld --with-ld=/binutils/2.30/x86_64-centos7/bin/ld
        --with-gnu-as --with-as=/binutils/2.30/x86_64-centos7/bin/as<br>
        Thread model: posix<br>
        gcc version 8.2.0 (GCC) <br>
      </blockquote>
      <br>
      On 4/23/19 12:05 PM, <a class="moz-txt-link-abbreviated" href="mailto:Prasath_Palaniappan@amat.com">Prasath_Palaniappan@amat.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:MWHP102MB0095836A36E0558BA9CB9824EB230@MWHP102MB0095.NAMP102.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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;}
@font-face
        {font-family:"` Times New Roman`";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"` Segoe UI`";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:windowtext">Hi Serguei,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Thanks for
            the suggestion.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Actually I
            have done the same what you suggested. I have removed the
          </span>'throw(...)' specifications completely<span
            style="color:windowtext"> from all the functions.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">I am getting
            the issue with that only.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Thanks &amp;
            Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">P. Prasath.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
                style="color:windowtext"> Serguei Kolos
                <a class="moz-txt-link-rfc2396E" href="mailto:serguei.kolos@cern.ch">&lt;serguei.kolos@cern.ch&gt;</a>
                <br>
                <b>Sent:</b> Tuesday, April 23, 2019 3:25 PM<br>
                <b>To:</b> Prasath Palaniappan
                <a class="moz-txt-link-rfc2396E" href="mailto:Prasath_Palaniappan@amat.com">&lt;Prasath_Palaniappan@amat.com&gt;</a>; <a class="moz-txt-link-abbreviated" href="mailto:duncan@grisby.org">duncan@grisby.org</a>;
                <a class="moz-txt-link-abbreviated" href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
                <b>Cc:</b> Shankar Chinnusamy
                <a class="moz-txt-link-rfc2396E" href="mailto:Shankar_Chinnusamy@amat.com">&lt;Shankar_Chinnusamy@amat.com&gt;</a><br>
                <b>Subject:</b> Re: [omniORB] [External] Re:
                OmniORB-4.2.2 compiled with gcc8 and C++14 leads into
                crash<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <table class="MsoNormalTable" style="width:100.0%" align="left"
          width="100%" cellspacing="0" cellpadding="0" border="1">
          <tbody>
            <tr>
              <td style="background:black;padding:5.25pt 1.5pt 5.25pt
                1.5pt"><br>
              </td>
              <td style="width:100.0%;background:yellow;padding:5.25pt
                3.75pt 5.25pt 11.25pt;word-wrap:break-word" width="100%">
                <div>
                  <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly"><span
                      style="font-size:9.0pt;font-family:&quot;` Segoe
                      UI`&quot;;color:#212121">CAUTION: EXTERNAL EMAIL.
                      Verify before you click links or open attachments.
                      Questions? Contact GIS.
                    </span><o:p></o:p></p>
                </div>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div>
            <p class="MsoNormal">Hi Prasath<br>
              <br>
              You mentioned that in order to compile omniORB with c++17
              option you have removed the 'throw'
              <br>
              specifications from some functions declarations. How did
              you actually do that? Could it be
              <br>
              that you have made this modification in the following way:<br>
              <br>
                  void f() throw (BadParam)   =&gt; void f() throw () <br>
              <br>
              The crash which you get normally happens in one of the two
              cases:<br>
              <br>
               1) A function declares 'throw(A)' but actually throws a
              different exception 'B'.<br>
               2) A function is declared as not throwing any exception
              using 'throw()' declaration but actually throws an
              exception.<br>
              <br>
              So I would suggest you to check that you have removed the
              'throw(...)' specifications completely<br>
              from all the functions concerned and don't have 'throw()'
              terms left anywhere in these functions
              <br>
              declarations.<br>
              <br>
              Cheers,<br>
              Serguei<br>
              <br>
              On 4/23/19 11:01 AM, Prasath via omniORB-list wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p class="MsoNormal">Hi Duncan, <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Thanks for the response. <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Please find the answers below,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><b><span style="color:#833C0B">Where
                    did the compiler come from? 
                  </span></b><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">gcc 8.2 (gcc-8.2.0.tar.gz) is
                downloaded from <a href="https://gcc.gnu.org/"
                  moz-do-not-send="true">
                  <span style="color:#0563C1">https://gcc.gnu.org/</span></a>
                <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><span style="color:#833C0B"> </span><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><b><span style="color:#833C0B">Did
                    you compile it yourself? 
                  </span></b><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Yes, we compiled it
                (gcc-8.2.0.tar.gz). Arguments to gcc configure script
                below,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">$./configure
                --prefix=/usr/local/gcc-8.2-powerpc-ibm-aix6.1.0.0
                --build=powerpc-ibm-aix6.1.0.0 --without-gnu-as
                --with-as=/usr/bin/as --without-gnu-ld
                --with-ld=/usr/bin/ld --disable-nls --disable-shared
                --enable-languages=c++ --enable-checking=release
                --enable-bootstrap -enable-version-specific-runtime-libs<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">$make install<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><b><span style="color:#833C0B">What
                    does "g++ -v" report?</span></b><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">bash-4.4$ ./g++ -v<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Using built-in specs.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">COLLECT_GCC=./g++<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">COLLECT_LTO_WRAPPER=/usr/local/gcc-8.2-powerpc-ibm-aix6.1.0.0/libexec/gcc/powerpc-ibm-aix6.1.0.0/8.2.0/lto-wrapper<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Target: powerpc-ibm-aix6.1.0.0<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Configured with:
                /disks/smithers3/workplaces/build/gcc-8.2/gcc-8.2.0/configure
                --prefix=/usr/local/gcc-8.2-powerpc-ibm-aix6.1.0.0
                --build=powerpc-ibm-aix6.1.0.0 --without-gnu-as
                --with-as=/usr/bin/as --without-gnu-ld
                --with-ld=/usr/bin/ld --disable-nls --disable-shared
                --enable-languages=c++ --enable-checking=release
                --enable-bootstrap -enable-version-specific-runtime-libs<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Thread model: aix<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">gcc version 8.2.0 (GCC)<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"><b><span style="color:#833C0B">How
                    did you configure omniORB?  What were the arguments
                    to its configure script?</span></b><o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">$./configure --prefix=/usr/local/dev<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">$make<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">$make install<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">As per your advice, we removed all
                the throw specifications and it got compiled
                successfully.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">And tested again but we are getting
                the same termination. For your reference, I have
                attached the completed log (it also has crash stack)
                with this mail.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Please provide your thoughts to
                proceed further.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Thanks &amp; Regards,<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">P. Prasath. <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">-----Original Message-----<br>
                From: Duncan Grisby <a href="mailto:duncan@grisby.org"
                  moz-do-not-send="true">&lt;duncan@grisby.org&gt;</a> <br>
                Sent: Tuesday, April 16, 2019 5:58 PM<br>
                To: Prasath Palaniappan <a
                  href="mailto:Prasath_Palaniappan@amat.com"
                  moz-do-not-send="true">&lt;Prasath_Palaniappan@amat.com&gt;</a>;
                <a href="mailto:omniorb-list@omniorb-support.com"
                  moz-do-not-send="true">omniorb-list@omniorb-support.com</a><br>
                Cc: Shankar Chinnusamy <a
                  href="mailto:Shankar_Chinnusamy@amat.com"
                  moz-do-not-send="true">&lt;Shankar_Chinnusamy@amat.com&gt;</a><br>
                Subject: Re: [omniORB] [External] Re: OmniORB-4.2.2
                compiled with gcc8 and C++14 leads into crash<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">CAUTION: EXTERNAL EMAIL. Verify
                before you click links or open attachments. Questions?
                Contact GIS.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">On Wed, 2019-04-10 at 11:03 +0000,
                Prasath via omniORB-list wrote:<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; OmniORB-4.2.2 has dynamic
                exception specifications those are
                <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; unsupported in C++17.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; So we removed those unsupported
                dynamic exception specifications and
                <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; compiled the OmniORB-4.2.2 with
                "gcc8 and C++17".<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; virtual void visit(const char*
                value,Source source) throw (BadParam) =
                <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; 0;<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Yes, that is the right thing to do.
                Just remove all the throw specifications. The only place
                that has those throw specifications is in the option
                processing code, which is not involved at all in the
                errors you are seeing. Whatever the problem is, it has
                absolutely nothing to do with those throw
                specifications.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; Apart from those changes what
                else need to be done to compile the<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; OmniORB-4.2.2 with "gcc8 and
                C++17" properly?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Nothing. It works fine with just that
                change.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; Clarifications:<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; As you mentioned that you have
                removed throw specifications in<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; OmniORB-4.3 to support future
                compilers and it is in development
                <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">&gt; branch. If so, could you please
                let us know when it will be released?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">There is no current timeframe for
                omniORB 4.3 to be released, but that is irrelevant here.
                There are no other changes in 4.3 that are related to
                this.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">The compiler has generated incorrect
                code, or the C++ runtime is faulty. An exception is
                being thrown but it not being caught as it should be by
                the exception handler.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Where did the compiler come from? 
                Did you compile it yourself?  What does "g++ -v" report?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">How did you configure omniORB?  What
                were the arguments to its configure script?<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">Duncan.<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">--<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">-- Duncan Grisby         --<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">  -- <a
                  href="mailto:duncan@grisby.org" moz-do-not-send="true">duncan@grisby.org</a>    
                --<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">   -- <a
                  href="http://www.grisby.org" moz-do-not-send="true">http://www.grisby.org</a>
                --<o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal"> <o:p></o:p></p>
            </div>
            <div>
              <p class="MsoNormal">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.
                <o:p></o:p></p>
            </div>
            <p class="MsoNormal"><br>
              <br>
              <o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>omniORB-list mailing list<o:p></o:p></pre>
            <pre><a href="mailto:omniORB-list@omniorb-support.com" moz-do-not-send="true">omniORB-list@omniorb-support.com</a><o:p></o:p></pre>
            <pre><a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" moz-do-not-send="true">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><o:p></o:p></pre>
          </blockquote>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>