<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi<br>
Unfortunately I did not manage to find a workaround for that problem.<br>
Some people mentioned that the problem might show up because the<br>
compiler itself was probably built without proper thread support. If
you <br>
could manage to rebuild properly your gcc-2.95 this might help you to<br>
solve the problem.<br>
<br>
Cheers,<br>
Sergei<br>
<big><big><big><big><big><big><big><big><big><big><big><big><big><font
 size="+1"><big><big><big><big><big><big><big><big><big><big><big><big><big><font
 color="#330033"><font color="#003300"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></font></big></big></big></big></big></big></big></big></big></big></big></big></big></font></big></big></big></big></big></big></big></big></big></big></big></big></big><br>
Sharma, Ramesh wrote:<br>
<blockquote type="cite"
 cite="midA7C3461837B19945A7CF61585ECA4E4DE43112@scsmsx402.sc.intel.com">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 10 (filtered)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.emailstyle18
        {font-family:Arial;
        color:navy;}
span.EmailStyle20
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">It seems
almost impossible for me to move
to gcc3.2 for my server, i there is a work around (even if it is dirty
one) which
can be used to fix the mult-threading problem on multiprocessor
machines using
gcc-2.95.3. </span></font></p>
  <p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="black" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">-----Original
Message-----<br>
  <b><span style="font-weight: bold;">From:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:omniorb-list-bounces@omniorb-support.com">omniorb-list-bounces@omniorb-support.com</a>
[<a class="moz-txt-link-freetext" href="mailto:omniorb-list-bounces@omniorb-support.com">mailto:omniorb-list-bounces@omniorb-support.com</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Serguei Kolos<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Friday, March
26, 2004 2:02
AM<br>
  <b><span style="font-weight: bold;">To:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re: [omniORB]
Server
Shutdown on multi-processor machines</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="3"
 color="black" face="Times New Roman"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="3"
 color="black" face="Times New Roman"><span style="font-size: 12pt;">Hi
  <br>
I have similar problem using gcc-2.95.2. <br>
With gcc3.2 this never happens independently of which machine<br>
I'm using, i.e. single processor or dual.<br>
  <br>
Cheers,<br>
Sergei<br>
  <br>
Sharma, Ramesh wrote:<br>
  <br>
  </span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">I looked
into it little
further and seems like the problem is while destroying the <b><span
 style="font-weight: bold;">omni_mutex</span></b></span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">++++++++++++++++++++++
posix.cc ++++++</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">omni_mutex::~omni_mutex(void)</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">{</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;&nbsp;&nbsp;
THROW_ERRORS(pthread_mutex_destroy(&amp;posix_mutex));</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">}</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">++++++++++++++++</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Looks like
signal is
raised from here and my signal handler catches it and reports that as
failure.
Looks like some weird problem in multithreaded environment. Any
suggestions on
getting around it will be really appreciated.</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Ramesh</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma;">-----Original
Message-----<br>
  <b><span style="font-weight: bold;">From:</span></b> <a
 href="mailto:omniorb-list-bounces@omniorb-support.com">omniorb-list-bounces@omniorb-support.com</a>
[<a href="mailto:omniorb-list-bounces@omniorb-support.com">mailto:omniorb-list-bounces@omniorb-support.com</a>]
  <b><span style="font-weight: bold;">On Behalf Of </span></b>Sharma,
Ramesh<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Thursday, March
25, 2004
3:20 PM<br>
  <b><span style="font-weight: bold;">To:</span></b> <a
 href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> [omniORB]
Server Shutdown
on multi-processor machines</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="3"
 color="black" face="Times New Roman"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">Hi,</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">I am having
following problem with CORBA 4.0.3 on Red-hat linux 7.1 (client is
compiled
using gcc3.2 and server is compiled using gcc2.95.3 due to some
avoidable
reasons).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"><font
 size="3" color="black" face="Times New Roman"><span
 style="font-size: 12pt;">1.</span></font><font size="1"><span
 style="font-stretch: normal; font-size-adjust: none;"><span
 style="font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">Things
work
fine on a machine which is single processor.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"><font
 size="3" color="black" face="Times New Roman"><span
 style="font-size: 12pt;">2.</span></font><font size="1"><span
 style="font-stretch: normal; font-size-adjust: none;"><span
 style="font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">Things
don&#8217;t work on multiprocessors machines. I&nbsp; get a SIGSEGV while
shutting down server. &nbsp;Below is the segment of the trace I got</span></font></p>
  <p class="MsoNormal" style="margin-left: 1.25in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">+++++++++++++++++++++++++++++++++++++++++++++++++++++++</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">0000 0000 0000
0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
........</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: POA(child)
etherealising object root/child&lt;0&gt; (deactivating).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
omniRemoteIdentity deleted.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
ObjRef(IDL:BlastSim/FaultSimFactory:1.0) -- deleted.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Preparing
to shutdown ORB.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Destroying
POA(RootPOA).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Destroying
POA(child).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
Deactivating all POA(child)'s objects.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Waiting
for requests to complete on POA(child).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Requests
on POA(child) completed.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
Etherealising POA(child)'s objects.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
Destruction of POA(child) complete.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
Deactivating all POA(RootPOA)'s objects.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Waiting
for requests to complete on POA(RootPOA).</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Requests
on POA(RootPOA) completed.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB:
Etherealising POA(RootPOA)'s objects.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: Stopping
serving incoming endpoints.</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: throw
giopStream::CommFailure from
giopStream.cc:828(0,NO,COMM_FAILURE_UnMarshalArguments)</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">omniORB: giopServer
waits for completion of rendezvousers and workers</span></font></p>
  <div
 style="border-style: none none dotted; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 3pt; padding: 0in 0in 1pt;">
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">User time =
0:00:00(0) System time = 0:00:00(0) Memory usage = 4.18MDefault signal
handler
received SIGSEGV</span></font></p>
  </div>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">Same exception gets
thrown on both machines but on single processor machine the exception
gets handled
and server shuts down gracefully. I am not sure why on multi-processor
machines
it is behaving differently. Is it the compiler version which might be
making
difference?</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">Has anybody
something like this?</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">Ramesh </span></font></p>
  <p class="MsoNormal" style="margin-left: 1in;"><font size="2"
 color="black" face="Arial"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <pre style="margin-left: 0.5in;" wrap=""><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;">&nbsp;</span></font></pre>
  <pre style="margin-left: 0.5in; text-align: center;"><font size="2"
 color="black" face="Courier New"><span style="font-size: 10pt;">

<hr size="4" width="90%" align="center">

</span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;">&nbsp;</span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;">_______________________________________________</span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;">omniORB-list mailing list</span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;"><a
 href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a></span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;"><a
 href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a></span></font></pre>
  <pre style="margin-left: 0.5in;"><font size="2" color="black"
 face="Courier New"><span style="font-size: 10pt;">&nbsp; </span></font></pre>
  </div>
</blockquote>
</body>
</html>