<!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>
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>
<blockquote type="cite"
 cite="midA7C3461837B19945A7CF61585ECA4E4DE43107@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";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {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;}
 /* List Definitions */
 ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><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"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><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"><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"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">{</span></font></p>
  <p class="MsoNormal"><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"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">}</span></font></p>
  <p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">++++++++++++++++</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"><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"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
  <p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,</span></font></p>
  <p class="MsoNormal"><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: 0.5in;"><font size="2"
 face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">-----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>Sharma, Ramesh<br>
  <b><span style="font-weight: bold;">Sent:</span></b> </span></font><font
 size="2" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma;">Thursday, March 25, 2004</span></font><font
 size="2" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma;"> </span></font><font
 size="2" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma;">3:20 PM</span></font><font
 size="2" face="Tahoma"><span
 style="font-size: 10pt; font-family: Tahoma;"><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> [omniORB]
Server Shutdown
on multi-processor machines</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="3"
 face="Times New Roman"><span style="font-size: 12pt;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi,</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"><font
 size="3" face="Times New Roman"><span style="font-size: 12pt;">1.<font
 size="1" face="Times New Roman"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-stretch: normal; font-size-adjust: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></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: 1in; text-indent: -0.25in;"><font
 size="3" face="Times New Roman"><span style="font-size: 12pt;">2.<font
 size="1" face="Times New Roman"><span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-stretch: normal; font-size-adjust: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></font></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: 0.75in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">+++++++++++++++++++++++++++++++++++++++++++++++++++++++</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">omniORB:
omniRemoteIdentity deleted.</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">omniORB:
Preparing to shutdown ORB.</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">omniORB:
Destroying POA(RootPOA).</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">omniORB:
Destroying POA(child).</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">omniORB:
Stopping serving incoming
endpoints.</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 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: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">Has
anybody something like this?</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">Ramesh
  </span></font></p>
  <p class="MsoNormal" style="margin-left: 0.5in;"><font size="2"
 face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  </div>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
omniORB-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a>
<a class="moz-txt-link-freetext" href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a>
  </pre>
</blockquote>
</body>
</html>