<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Leaks in mainThread() in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719963#M660443</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am new to GDB(version 6.1). I would like to know about some errors like when I am finding memory leaks through gdb I am only getting the results like:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;20 bytes leaked in 1 blocks&lt;BR /&gt;No. Total bytes Blocks Address Function&lt;BR /&gt;0 20 1 0x4106c310 mainThread()&lt;BR /&gt;&lt;BR /&gt;And :-&lt;BR /&gt;&lt;BR /&gt;20 bytes leaked at 0x4106c310 (100.00% of all bytes leaked)&lt;BR /&gt;#0 0x200000007e8280d2 in mainThread() at ../cm_main.c:4258&lt;BR /&gt;#1 0x04000bc2 in main() at cm.cpp:22&lt;BR /&gt;#2 0x60000000c00427b2 in main_opd_entry() from /usr/lib/hpux32/dld.so&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;which I think cannot be possible or may be it is not finding the leaks at all and stuck at some point.&lt;BR /&gt;&lt;BR /&gt;If anybody come across such issues please help me out.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;MJ</description>
    <pubDate>Wed, 01 Dec 2010 06:10:29 GMT</pubDate>
    <dc:creator>MJ_Techi</dc:creator>
    <dc:date>2010-12-01T06:10:29Z</dc:date>
    <item>
      <title>Leaks in mainThread()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719963#M660443</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am new to GDB(version 6.1). I would like to know about some errors like when I am finding memory leaks through gdb I am only getting the results like:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;20 bytes leaked in 1 blocks&lt;BR /&gt;No. Total bytes Blocks Address Function&lt;BR /&gt;0 20 1 0x4106c310 mainThread()&lt;BR /&gt;&lt;BR /&gt;And :-&lt;BR /&gt;&lt;BR /&gt;20 bytes leaked at 0x4106c310 (100.00% of all bytes leaked)&lt;BR /&gt;#0 0x200000007e8280d2 in mainThread() at ../cm_main.c:4258&lt;BR /&gt;#1 0x04000bc2 in main() at cm.cpp:22&lt;BR /&gt;#2 0x60000000c00427b2 in main_opd_entry() from /usr/lib/hpux32/dld.so&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;which I think cannot be possible or may be it is not finding the leaks at all and stuck at some point.&lt;BR /&gt;&lt;BR /&gt;If anybody come across such issues please help me out.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;MJ</description>
      <pubDate>Wed, 01 Dec 2010 06:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719963#M660443</guid>
      <dc:creator>MJ_Techi</dc:creator>
      <dc:date>2010-12-01T06:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Leaks in mainThread()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719964#M660444</link>
      <description>What is is doing on line 4258 of cm_main.c?&lt;BR /&gt;&lt;BR /&gt;Do you ever free that space?</description>
      <pubDate>Wed, 01 Dec 2010 19:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719964#M660444</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-01T19:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Leaks in mainThread()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719965#M660445</link>
      <description>cm is an executable. we do not have the source code for cm_main.c.&lt;BR /&gt;&lt;BR /&gt;But we have shared object(.so) files linked to cm.&lt;BR /&gt;&lt;BR /&gt;These .so files contain custom API's &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These API are invoked using custom workbenches(you can say dlopen)&lt;BR /&gt;&lt;BR /&gt;We are able to successfully set the breakpoints within this API.&lt;BR /&gt;&lt;BR /&gt;Sometimes the leaks are captured within this custom API's &lt;BR /&gt;&lt;BR /&gt;But sometimes it goes to the cm_main.c and captures the above leaks(100% leak in mainThread()) and does not scan the API at all&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why is it so inconsistent?</description>
      <pubDate>Thu, 02 Dec 2010 10:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719965#M660445</guid>
      <dc:creator>MJ_Techi</dc:creator>
      <dc:date>2010-12-02T10:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Leaks in mainThread()</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719966#M660446</link>
      <description>&amp;gt;But sometimes it goes to the cm_main.c and captures the above leaks (100% leak in mainThread()) and does not scan the API at all&lt;BR /&gt;Why is it so inconsistent?&lt;BR /&gt;&lt;BR /&gt;I'm not sure how that can happen.  The allocation site for memory should be very accurate.  There should be a call to malloc at cm_main.c:4258.  Perhaps sometimes this is freed by a call inside your API?</description>
      <pubDate>Fri, 03 Dec 2010 07:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/leaks-in-mainthread/m-p/4719966#M660446</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-03T07:19:10Z</dc:date>
    </item>
  </channel>
</rss>

