Segfault from libomniOrb

"Krishnamohan, Srivathsan via omniORB-list" <[email protected]> Mon, 24 Mar 2025 19:20:45 +0000
Newsgroups gmane.comp.corba.omniorb.user
Message-ID <SJ0PR03MB56954E0B31170506A05A15FBE3A42@SJ0PR03MB5695.namprd03.prod.outlook.com>
--===============2997298496099010208==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_SJ0PR03MB56954E0B31170506A05A15FBE3A42SJ0PR03MB5695namp_"

--_000_SJ0PR03MB56954E0B31170506A05A15FBE3A42SJ0PR03MB5695namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,

We have a c++ server application which uses libOmniOrb 4.2.3 . When our app=
lication goes down, we see Segfault (signal 11)  with the following stack t=
race:

0  0x000000000009e496 in ?? ()
#1  0x00007fe11cd8e1ca in std::char_traits<char>::length (__s=3D0x168b1d7 "=
Child_SIGNAL_HANDLER method called : Signal Number :: ")
    at /home/user/install/gcc-9.2.0/x86_64-pc-linux-gnu/libstdc++-v3/includ=
e/bits/char_traits.h:335
#2  std::operator<< <std::char_traits<char> > (__out=3D..., __s=3D0x168b1d7=
 "Child_SIGNAL_HANDLER method called : Signal Number :: ")
    at /home/user/install/gcc-9.2.0/x86_64-pc-linux-gnu/libstdc++-v3/includ=
e/ostream:571
#3  0x00000000010c0385 in Child_SIGNAL_HANDLER (signum=3D11) at Util.cpp:11=
94
#4  <signal handler called>
#5  0x00007fe124f1a907 in omni::giopStream::inputMessage() () from /home/us=
er/libs_gcc92/libomniORB4.so.2
#6  0x00007fe124f2fe53 in omni::giopImpl12::inputNewServerMessage(omni::gio=
pStream*) () from /home/user/libs_gcc92/libomniORB4.so.2
#7  0x00007fe124f30d38 in omni::giopImpl12::inputMessageBegin(omni::giopStr=
eam*, void (*)(omni::giopStream*)) ()

It looks like a segfault in libomniORB4 is leading to application crash. An=
y pointers on how to further troubleshoot this?

  1.  This issue is only happening when running on Linux VM. No issue seen =
when running on native Linux server.
  2.  There is enough free memory on the VM
  3.  Issue is intermittent with no patterns or no known failure modes to t=
rigger it.
  4.  /var/log/messages has messages such as:
     *   2025-03-19T09:20:18.140042-07:00 CodedUI26 kernel: [854690.059214]=
 ServerApp[26286]: segfault at 9e496 ip 000000000009e496 sp 00007fff9eed9e7=
8 error 14 in ServerApp_6.2.008.0.1C2[400000+c0a000]
2025-03-19T09:20:18.340068-07:00 CodedUI26 kernel: [854690.260085] ServerAp=
p2_6.2.[31338]: segfault at 9e496 ip 000000000009e496 sp 00007ffc11cad678 e=
rror 14 in ServerApp2_6.2.008.0.2C1[400000+1552000]
2025-03-19T09:20:18.432602-07:00 CodedUI26 systemd-coredump[15390]: Process=
 1041 (ServerApp2_6.2.) of user 1000 dumped core.
  5.  There are multiple server apps which use the libomniOrb from same loc=
ation and hence all of them crash at the same.

Thanks
Srivaths




CONFIDENTIALITY NOTICE: This email transmission, and any documents, files o=
r previous email messages attached to it, may contain confidential informat=
ion. If you are not the intended recipient or a person responsible for deli=
vering it to the intended recipient, you are hereby notified that any discl=
osure, copying, distribution or use of any of the information contained in =
or attached to this message is STRICTLY PROHIBITED. If you have received th=
is transmission in error, please immediately destroy the original transmiss=
ion and its attachments without reading them or saving them to disk. Email =
communications may be monitored by KLA as permitted by applicable law and r=
egulations. For more information, read our Privacy Policy at www.kla.com/pr=
ivacy-policy.<http://www.kla.com/privacy-policy> Thank you.

--_000_SJ0PR03MB56954E0B31170506A05A15FBE3A42SJ0PR03MB5695namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-ligatures:standardcontextual;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1532838434;
	mso-list-type:hybrid;
	mso-list-template-ids:638321024 -1081037870 67698713 67698715 67698703 676=
98713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:9.0pt;
	font-family:"Arial",sans-serif;
	color:black;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi All, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">We have a c++ server application which uses libOmniO=
rb 4.2.3 . When our application goes down, we see Segfault (signal 11) &nbs=
p;with the following stack trace:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;color:black;background:white">0&nbsp; 0x000000000009e49=
6 in ?? ()</span><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quo=
t;,sans-serif;color:black"><br>
<span style=3D"background:white">#1&nbsp; 0x00007fe11cd8e1ca in std::char_t=
raits&lt;char&gt;::length (__s=3D0x168b1d7 &quot;Child_SIGNAL_HANDLER metho=
d called : Signal Number :: &quot;)</span><br>
<span style=3D"background:white">&nbsp;&nbsp;&nbsp; at /home/user/install/g=
cc-9.2.0/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:335</s=
pan><br>
<span style=3D"background:white">#2&nbsp; std::operator&lt;&lt; &lt;std::ch=
ar_traits&lt;char&gt; &gt; (__out=3D..., __s=3D0x168b1d7 &quot;Child_SIGNAL=
_HANDLER method called : Signal Number :: &quot;)</span><br>
<span style=3D"background:white">&nbsp;&nbsp;&nbsp; at /home/user/install/g=
cc-9.2.0/x86_64-pc-linux-gnu/libstdc++-v3/include/ostream:571</span><br>
<span style=3D"background:white">#3&nbsp; 0x00000000010c0385 in Child_SIGNA=
L_HANDLER (signum=3D11) at Util.cpp:1194</span><br>
<span style=3D"background:white">#4&nbsp; &lt;signal handler called&gt;</sp=
an><br>
<span style=3D"background:white">#5&nbsp; 0x00007fe124f1a907 in omni::giopS=
tream::inputMessage() () from /home/user/libs_gcc92/libomniORB4.so.2</span>=
<br>
<span style=3D"background:white">#6&nbsp; 0x00007fe124f2fe53 in omni::giopI=
mpl12::inputNewServerMessage(omni::giopStream*) () from /home/user/libs_gcc=
92/libomniORB4.so.2</span><br>
<span style=3D"background:white">#7&nbsp; 0x00007fe124f30d38 in omni::giopI=
mpl12::inputMessageBegin(omni::giopStream*, void (*)(omni::giopStream*)) ()
<o:p></o:p></span></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;color:black;background:white"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;color:black;background:white">It looks like a segfault =
in libomniORB4 is leading to application crash. Any pointers on how to furt=
her troubleshoot this?
<o:p></o:p></span></p>
<ol style=3D"margin-top:0in" start=3D"1" type=3D"1">
<li class=3D"MsoListParagraph" style=3D"margin-left:0in;mso-list:l0 level1 =
lfo1"><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,sans-ser=
if;color:black;background:white">This issue is only happening when running =
on Linux VM. No issue seen when running on native
 Linux server. </span><o:p></o:p></li><li class=3D"MsoListParagraph" style=
=3D"margin-left:0in;mso-list:l0 level1 lfo1"><span style=3D"font-size:9.0pt=
;font-family:&quot;Arial&quot;,sans-serif;color:black;background:white">The=
re is enough free memory on the VM
</span><o:p></o:p></li><li class=3D"MsoListParagraph" style=3D"margin-left:=
0in;mso-list:l0 level1 lfo1"><span style=3D"font-size:9.0pt;font-family:&qu=
ot;Arial&quot;,sans-serif;color:black;background:white">Issue is intermitte=
nt with no patterns or no known failure modes to trigger it.
</span><o:p></o:p></li><li class=3D"MsoListParagraph" style=3D"margin-left:=
0in;mso-list:l0 level1 lfo1"><span style=3D"font-size:9.0pt;font-family:&qu=
ot;Arial&quot;,sans-serif;color:black;background:white">/var/log/messages h=
as messages such as:
</span><o:p></o:p></li><ol style=3D"margin-top:0in" start=3D"1" type=3D"a">
<li class=3D"MsoListParagraph" style=3D"margin-left:0in;mso-list:l0 level2 =
lfo1"><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,sans-ser=
if;color:black;background:white">2025-03-19T09:20:18.140042-07:00 CodedUI26=
 kernel: [854690.059214] ServerApp[26286]: segfault
 at 9e496 ip 000000000009e496 sp 00007fff9eed9e78 error 14 in ServerApp_6.2=
.008.0.1C2[400000+c0a000]</span><span style=3D"font-size:9.0pt;font-family:=
&quot;Arial&quot;,sans-serif;color:black"><br>
<span style=3D"background:white">2025-03-19T09:20:18.340068-07:00 CodedUI26=
 kernel: [854690.260085] ServerApp2_6.2.[31338]: segfault at 9e496 ip 00000=
0000009e496 sp 00007ffc11cad678 error 14 in ServerApp2_6.2.008.0.2C1[400000=
+1552000]</span><br>
<span style=3D"background:white">2025-03-19T09:20:18.432602-07:00 CodedUI26=
 systemd-coredump[15390]: Process 1041 (ServerApp2_6.2.) of user 1000 dumpe=
d core.</span></span><o:p></o:p></li></ol>
<li class=3D"MsoListParagraph" style=3D"margin-left:0in;mso-list:l0 level1 =
lfo1"><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,sans-ser=
if;color:black;background:white">There are multiple server apps which use t=
he libomniOrb from same location and hence all of
 them crash at the same. </span><o:p></o:p></li></ol>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks<o:p></o:p></p>
<p class=3D"MsoNormal">Srivaths <o:p></o:p></p>
<p class=3D"MsoListParagraph" style=3D"margin-left:1.5in"><o:p>&nbsp;</o:p>=
</p>
</div>
<div style=3D"font-size:8pt;  font-family: 'Calibri',sans-serif;">&nbsp;<br=
>
<span style=3D"font-size:8pt;  font-family: 'Calibri','times new roman','ga=
ramond',serif; color:#9B9BA0;">CONFIDENTIALITY NOTICE: This email transmiss=
ion, and any documents, files or previous email messages attached to it, ma=
y contain confidential information.
 If you are not the intended recipient or a person responsible for deliveri=
ng it to the intended recipient, you are hereby notified that any disclosur=
e, copying, distribution or use of any of the information contained in or a=
ttached to this message is STRICTLY
 PROHIBITED. If you have received this transmission in error, please immedi=
ately destroy the original transmission and its attachments without reading=
 them or saving them to disk. Email communications may be monitored by KLA =
as permitted by applicable law and
 regulations. For more information, read our Privacy Policy at </span><span=
 style=3D"padding-top:10px; font-weight:bold; color:#00A7E1; font-size:8pt;=
 font-family: 'Calibri',Arial,sans-serif; "><a href=3D"http://www.kla.com/p=
rivacy-policy" style=3D"color:#00A7E1">www.kla.com/privacy-policy.</a></spa=
n>
<span style=3D"font-size:8pt;  font-family: 'Calibri','times new roman','ga=
ramond',serif; color:#9B9BA0;">
Thank you.</span></div>
</body>
</html>

--_000_SJ0PR03MB56954E0B31170506A05A15FBE3A42SJ0PR03MB5695namp_--


--===============2997298496099010208==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
omniORB-list mailing list
[email protected]
https://www.omniorb-support.com/mailman/listinfo/omniorb-list

--===============2997298496099010208==--