<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@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:"Default Sans\000D\000A Serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Microsoft JhengHei";
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Microsoft JhengHei";
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">We found Google performance tools, TCMALLOC_DEBUG to be very effective to track down memory corruption.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">You need to link your code with TCMALLOC_DEBUG option. The exe will then crash everytime there is a potential memory issue. We were
 able to fix quite a few issues running the exe in this mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">The exe will run slow and also use more RAM. So please make sure the use case you use to narrow down can run without consuming a
 lot of memory.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Check gperftools in code.google.com.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Sundari.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">
</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;MS Gothic&quot;">姜</span><span style="font-size:11.0pt;font-family:&quot;Microsoft JhengHei&quot;,&quot;sans-serif&quot;">维</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> [mailto:sdjiangwei@gmail.com]
<br>
<b>Sent:</b> 28 March 2013 06:52<br>
<b>To:</b> Jingdong Sun<br>
<b>Cc:</b> omniorb-list@omniorb-support.com<br>
<b>Subject:</b> Re: [omniORB] Memory corruption when using omniORB 4.1.4 with SLES 11 64-bit<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">It's very likely&nbsp;<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">to be a</span>&nbsp;bug in your code.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">2013/3/28 Jingdong Sun &lt;<a href="mailto:jindong@us.ibm.com" target="_blank">jindong@us.ibm.com</a>&gt;<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hi, There,</span>
<br>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I am using omniORB 4.1.4 with my project.</span>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Recently, when I testing with SLES, I noticed that, the server side hit memory corruption some time (not always).</span>
<br>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">With ORBtraceLevel set to 45, I got following trace information:</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) inputMessage: from giop:tcp:[::ffff:10.6.25.60]:56354 2048 bytes</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) </span><br>
<span style="font-family:&quot;Courier New&quot;">4749 4f50 0102 0300 6467 0000 0a00 0000 GIOP....dg......</span>
<br>
<span style="font-family:&quot;Courier New&quot;">0300 0000 0000 0000 0e00 0000 fed6 ef51 ...............Q</span>
<br>
<span style="font-family:&quot;Courier New&quot;">5100 0034 2e00 0000 0000 6f72 0800 0000 Q..4......or....</span>
<br>
<span style="font-family:&quot;Courier New&quot;">7374 6172 7450 4500 0000 0000 2234 3522 startPE.....&quot;45&quot;</span>
<br>
<span style="font-family:&quot;Courier New&quot;">2e67 0000 3c3f 786d 6c20 7665 7273 696f .g..&lt;?xml versio</span>
<br>
<span style="font-family:&quot;Courier New&quot;">6e3d 2231 2e30 2220 656e 636f 6469 6e67 n=&quot;1.0&quot; encoding</span>
<br>
<span style="font-family:&quot;Courier New&quot;">3d22 5554 462d 3822 2073 7461 6e64 616c =&quot;UTF-8&quot; standal</span>
<br>
<span style="font-family:&quot;Courier New&quot;">6f6e 653d 226e 6f22 203f 3e0a 3c61 7567 one=&quot;no&quot; ?&gt;.&lt;aug</span>
<br>
<span style="font-family:&quot;Default Sans
 Serif&quot;,&quot;serif&quot;">(Jingdong: I skipped some lines here......)</span>
<br>
<span style="font-family:&quot;Courier New&quot;">2020 3c74 743a 6174 7472 206e 616d 653d &nbsp; &lt;tt:attr name=</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) inputCopyChunk: from giop:tcp:[::ffff:10.6.25.60]:56354 24432 bytes</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) </span><br>
<span style="font-family:&quot;Courier New&quot;">2263 6861 696e 4964 2220 7479 7065 3d22 &quot;chainId&quot; type=&quot;</span>
<br>
<span style="font-family:&quot;Courier New&quot;">696e 7433 3222 2f3e 0a20 2020 2020 203c int32&quot;/&gt;. &nbsp; &nbsp; &nbsp;&lt;</span>
<br>
<span style="font-family:&quot;Default Sans
 Serif&quot;,&quot;serif&quot;">(Jingdong: I skipped some lines here too.....)</span>
<br>
<span style="font-family:&quot;Default Sans
 Serif&quot;,&quot;serif&quot;">(Jingdong: following part is corrupted, not the contents as I expected).</span>
<br>
<span style="font-family:&quot;Courier New&quot;">3020 3820 3020 3020 3020 3020 3120 3120 0 8 0 0 0 0 1 1
</span><br>
<span style="font-family:&quot;Courier New&quot;">3020 3020 3020 3120 3120 340a 3120 3435 0 0 0 1 1 4.1 45</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) inputMessage: from giop:tcp:[::ffff:10.6.25.60]:56354 18 bytes</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) </span><br>
<span style="font-family:&quot;Courier New&quot;">4749 4f50 0102 0107 0600 0000 0a00 0000 GIOP............</span>
<br>
<span style="font-family:&quot;Courier New&quot;">0a00 &nbsp; &nbsp;</span> <br>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">What I noticed are:</span> <br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">1. The memory corruption problem not happened all the time, and when problem happened, generally the 2nd try will pass.</span>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">2. All corruptions happened to me so far were related to relative big data (about 24K), and it happened related to &quot;inputCopyChunk&quot; as trace shown above.</span>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">3. The size server side got is correct, even the content got corrupted. (The size 24432 bytes is correct in the example I copied here)</span>
<br>
<span style="font-family:&quot;Courier New&quot;">omniORB: (7) inputCopyChunk: from giop:tcp:[::ffff:10.6.25.60]:56354 24432 bytes</span>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">4. When corruption happened, sometimes the content just got truncated, sometimes the contents just replaced by some meaningless &nbsp;contents at the end.</span>
<br>
<br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Please help me.</span> <br>
<span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Thanks.</span> <br>
<span class="hoenzb"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#888888">Jingdong Sun</span></span><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#888888"><br>
<span class="hoenzb">InfoSphere Streams Development</span><br>
<span class="hoenzb">Phone &nbsp;507 253-5958 &nbsp;(T/L 553-5958) &nbsp;</span><br>
<span class="hoenzb"><a href="mailto:jindong@us.ibm.com" target="_blank">jindong@us.ibm.com</a></span></span><br>
_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>