<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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>

</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
omniorb-list-bounces@omniorb-support.com
[mailto:omniorb-list-bounces@omniorb-support.com] <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>
omniorb-list@omniorb-support.com<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:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>++++++++++++++++++++++
posix.cc ++++++</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>omni_mutex::~omni_mutex(void)</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>{</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>}</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>++++++++++++++++</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;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:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Ramesh</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;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:1.0in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi,</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.5in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>1.</span></font><font
size=1><span style='font-stretch: normal;font-size-adjust: none'><span
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;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:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>2.</span></font><font
size=1><span style='font-stretch: normal;font-size-adjust: none'><span
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;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:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>+++++++++++++++++++++++++++++++++++++++++++++++++++++++</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: POA(child)
etherealising object root/child&lt;0&gt; (deactivating).</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
omniRemoteIdentity deleted.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
ObjRef(IDL:BlastSim/FaultSimFactory:1.0) -- deleted.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Preparing
to shutdown ORB.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Destroying
POA(RootPOA).</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Destroying
POA(child).</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
Deactivating all POA(child)'s objects.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Waiting
for requests to complete on POA(child).</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Requests
on POA(child) completed.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
Etherealising POA(child)'s objects.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
Destruction of POA(child) complete.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
Deactivating all POA(RootPOA)'s objects.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Waiting
for requests to complete on POA(RootPOA).</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Requests
on POA(RootPOA) completed.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB:
Etherealising POA(RootPOA)'s objects.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: Stopping
serving incoming endpoints.</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>omniORB: giopServer
waits for completion of rendezvousers and workers</span></font></p>

<div style='border:none;border-bottom:dotted windowtext 3.0pt;padding:0in 0in 1.0pt 0in;
border-color:-moz-use-text-color -moz-use-text-color windowtext'>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Has anybody
something like this?</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Ramesh </span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<pre style='margin-left:.5in' wrap=""><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre
style='margin-left:.5in;text-align:center'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'>

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

</span></font></pre><pre style='margin-left:.5in'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt'>&nbsp;</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>_______________________________________________</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>omniORB-list mailing list</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><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:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>&nbsp; </span></font></pre></div>

</body>

</html>