<?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 Re: debugging memory leak in a pthread program in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950024#M22462</link>
    <description>Ian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; &lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads&lt;/A&gt;&lt;BR /&gt;_appendix&lt;BR /&gt;&lt;BR /&gt;When I tried this link the web server mumbles something about "The requested document "&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro%3CBR%3E_033.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro%3CBR%3E_033.html&lt;/A&gt;" was not found on this server."&lt;BR /&gt;&lt;BR /&gt;The first link worked okay though.&lt;BR /&gt;&lt;BR /&gt;Galen&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Jan 2006 06:22:18 GMT</pubDate>
    <dc:creator>Galen Tackett</dc:creator>
    <dc:date>2006-01-05T06:22:18Z</dc:date>
    <item>
      <title>debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950020#M22458</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;we developed for customers a critical application running 24/24 on OpenVMS 7.3-x using posix threads (precisely, several processes in the app are DCE RPC servers). &lt;BR /&gt;&lt;BR /&gt;For more precision, our systems are configured SYSGEN MULTITHREAD=1, and the RPC server programs are linked :&lt;BR /&gt;&lt;BR /&gt;%THREADCP-I-MKT, multiple kernel threads are disabled&lt;BR /&gt;%THREADCP-I-UPC, upcalls are disabled&lt;BR /&gt;&lt;BR /&gt;I was informed thru people of this forum (eg, thread 865731) about the new V7.3-2 feature :&lt;BR /&gt;&lt;BR /&gt;      $ SET PROC/DUMP=NOW/ID=&lt;PID-OF-PROCESS&gt;&lt;BR /&gt;&lt;BR /&gt;We have currently troubles with a memory leak within our application, and situation was yesterday very bad for one very active RPC server in the app.&lt;BR /&gt;&lt;BR /&gt;Normal process values : pagefile usage &amp;lt; 250 Mbytes. Probably due to a memory leak, process pagefile usage ~ 420 Mbytes and VIRTPEAK ~ 540&lt;BR /&gt;Mbytes !&lt;BR /&gt;&lt;BR /&gt;We decided with our customer a restart of the server process, but before doing it, to dump it using the SET PROC/DUMP=NOW command. &lt;BR /&gt;&lt;BR /&gt;I holed the dump to our development site, on a very close system (same VMS patch level is probably mandatory). Copied the executable and the application shareable images into the login directory for the analyzer&lt;BR /&gt;to find them.&lt;BR /&gt;&lt;BR /&gt;I try to look with the SDA PTHREAD extension, and i discovered something suspect :&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; pthread vm&lt;BR /&gt;  lookaside 0 (32 bytes; obj-name) 585866 in use, 1 free&lt;BR /&gt;  lookaside 1 (256 bytes; hash-bucket) 187 in use, 0 free&lt;BR /&gt;  lookaside 2 (384 bytes; rwb, mub, cvb) 586318 in use, 0 free&lt;BR /&gt;  lookaside 3 (4096 bytes; tsd-array) 0 in use, 0 free&lt;BR /&gt;  lookaside 4 (4288 bytes; mu-meter) 0 in use, 0 free&lt;BR /&gt;  lookaside 5 (4352 bytes; cv-meter) 0 in use, 0 free&lt;BR /&gt;  lookaside 6 (8192 bytes; tcb) 0 in use, 0 free&lt;BR /&gt;&lt;BR /&gt;On a very few active RPC server these are :&lt;BR /&gt;&lt;BR /&gt;Process name: BNASR0            Extended PID: 20200184  Thread data: "vm"&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;  lookaside 0 (32 bytes; obj-name) 2323 in use, 1 free&lt;BR /&gt;  lookaside 1 (256 bytes; hash-bucket) 82 in use, 0 free&lt;BR /&gt;  lookaside 2 (384 bytes; rwb, mub, cvb) 2338 in use, 0 free&lt;BR /&gt;  lookaside 3 (4096 bytes; tsd-array) 0 in use, 0 free&lt;BR /&gt;  lookaside 4 (4288 bytes; mu-meter) 0 in use, 0 free&lt;BR /&gt;  lookaside 5 (4352 bytes; cv-meter) 0 in use, 0 free&lt;BR /&gt;  lookaside 6 (8192 bytes; tcb) 0 in use, 0 free&lt;BR /&gt;&lt;BR /&gt;The total size of the lookaside lists 0 and 2 is already &lt;BR /&gt;(384*586318 + 32*866) ~ 225 Mbytes &lt;BR /&gt;&lt;BR /&gt;Where could i find the lookaside lists and examine some buffers to&lt;BR /&gt;possibly detect an error pattern ? PTHREAD HELP is very little help&lt;BR /&gt;for this. Could someone bring informations about this SDA extension ?&lt;BR /&gt;&lt;BR /&gt;I have also discovered with "pthread threads" a series of threads&lt;BR /&gt;which sound suspect, although i should check with the developer&lt;BR /&gt;details (may be they are normal in a very active server sometimes).&lt;BR /&gt;&lt;BR /&gt;I might try (if i suspect some threads) to examine the stack of some&lt;BR /&gt;of them using SET TASK, but i am not familiar with that.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help&lt;BR /&gt;&lt;BR /&gt;Louis Guinaudeau&lt;BR /&gt;&lt;/PID-OF-PROCESS&gt;</description>
      <pubDate>Tue, 03 Jan 2006 23:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950020#M22458</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-03T23:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950021#M22459</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;I'm sorry I don't have any answers for your specific questions.  We do have a multithreaded RPC server application, though, and thought I would share a couple of experiences we have had.&lt;BR /&gt;&lt;BR /&gt;First, for one type of problem we had, probably a race condition with inadequate locking between threads, we also set the MULTITHREAD Sysgen parameter to 1 and that helped, so I think you are on a good track there (assuming you have a multiprocessor).&lt;BR /&gt;&lt;BR /&gt;Second, we used to link the executable without the /THREADS=(MULTIPLE_KERNEL_THREADS,UPCALLS) qualifier and we saw problems with the execution of our program.  I don't remember what went wrong, but I think it might have hung and the problem might have involved the fact that we were doing significant work in AST routines, too.  H-P recommends against doing anything significant in an AST routine if you are using Pthreads and I heartily agree with them, but we have legacy VMS-specific code that we are not going to change at this point.  In any case, when we started linking for multiple kernel threads and upcalls, that particular problem cleared up and our application has been able to run.&lt;BR /&gt;&lt;BR /&gt;I'm sorry I don't have anything for you on memory leaks or further analysis of your dump.  I tried the new dump feature on our RPC server app and found nothing new for you there.&lt;BR /&gt;&lt;BR /&gt;--Travis Craig&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jan 2006 20:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950021#M22459</guid>
      <dc:creator>Travis Craig</dc:creator>
      <dc:date>2006-01-04T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950022#M22460</link>
      <description>Travis, &lt;BR /&gt;&lt;BR /&gt;thanks for your answer. &lt;BR /&gt;&lt;BR /&gt;outside the scope of my memory leak troubles, i would appreciate to share experiences with people like you, when i understand your experience, because our VMS application (a run-time SCADA + motif based man-machine interface) was originally purely VMS "legacy" (?) software, using VMS resources (mailboxes, lock [mostly locally and lock convert =&amp;gt; fast ENQ ops]) for the synchronisation between [mono-threaded + AST] processes. now the app is a mix between both types of processes, those pure VMS and the new coming RPC servers&lt;BR /&gt;&lt;BR /&gt;if you accept to share some experiences, would be helpfull if you have them already done :&lt;BR /&gt;&lt;BR /&gt;- traceback adaptation to PTHREAD process : we had traceback on the original app, cannot have a reasonable traceback in the RPC servers&lt;BR /&gt;&lt;BR /&gt;- PTHREAD SDA extension : difficult to train on the job that feature, or am i missing the right documentation, or am i not enough competent on development side (i am sysadmin and should help maintenance of these codes)&lt;BR /&gt;&lt;BR /&gt;i may either open a new thread for these issues, or communicate per mail directly.&lt;BR /&gt;&lt;BR /&gt;anyway, thanks for the answer.&lt;BR /&gt;&lt;BR /&gt;louis</description>
      <pubDate>Thu, 05 Jan 2006 03:25:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950022#M22460</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-05T03:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950023#M22461</link>
      <description>I have not seen any documentation for the PTHREAD SDA extension apart from the help text.&lt;BR /&gt;&lt;BR /&gt;You should read the appendicies of the pthreads manual&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html#vms_appendix" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html#vms_appendix&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads_appendix" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads_appendix&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 05:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950023#M22461</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-05T05:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950024#M22462</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; &lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_033.html#debugging_threads&lt;/A&gt;&lt;BR /&gt;_appendix&lt;BR /&gt;&lt;BR /&gt;When I tried this link the web server mumbles something about "The requested document "&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro%3CBR%3E_033.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro%3CBR%3E_033.html&lt;/A&gt;" was not found on this server."&lt;BR /&gt;&lt;BR /&gt;The first link worked okay though.&lt;BR /&gt;&lt;BR /&gt;Galen&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 06:22:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950024#M22462</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2006-01-05T06:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950025#M22463</link>
      <description>What can I say but the link works for me (Windows XP, Firefox V1.5 and IE6).</description>
      <pubDate>Thu, 05 Jan 2006 06:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950025#M22463</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-05T06:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950026#M22464</link>
      <description>Ian :&lt;BR /&gt;&lt;BR /&gt;i know the first document, i looked some parts of it (trying to implement the traceback, see previously). but i should have a look again at it focusing on the trouble.&lt;BR /&gt;&lt;BR /&gt;i knew but forgot to look at the 2nd one, will.&lt;BR /&gt;&lt;BR /&gt;now now the priorities are elsewhere, so wait a minute. &lt;BR /&gt;&lt;BR /&gt;also the recent information i should look at : SDA extension sources available in licensed source CD-ROM =&amp;gt; until now we never used (thought) about such a thing, but if it helps to better use SDA PTHREAD extension, at least because one catches some structures and links in the process dump ??? i should at least examine this.&lt;BR /&gt;&lt;BR /&gt;Galen :&lt;BR /&gt;&lt;BR /&gt;have a look to the exact command you catch when click on the web reference. i use IE6 and i got from time to time an error like "page not found" too. &lt;BR /&gt;&lt;BR /&gt;Just i look at the page URL and it was :&lt;BR /&gt;&lt;BR /&gt;javascript&amp;amp;colon;openExternal('&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html')" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html')&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;i just edit manually into &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6493/6101pro_031.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and that's it.&lt;BR /&gt;&lt;BR /&gt;i could probably improve my IE6 settings to avoid this, but it is not enough frequent and i didn't until now took time to find the error.</description>
      <pubDate>Thu, 05 Jan 2006 18:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950026#M22464</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-05T18:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950027#M22465</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;Yes, I'll look at your reply more closely when I have a few minutes and am willing to see what useful information we can exchange if you want to start another thread for it.&lt;BR /&gt;&lt;BR /&gt;--Travis&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jan 2006 22:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950027#M22465</guid>
      <dc:creator>Travis Craig</dc:creator>
      <dc:date>2006-01-06T22:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950028#M22466</link>
      <description>Travis :&lt;BR /&gt;&lt;BR /&gt;any help is welcome. thanks in advance. i am also taken by other tasks and can / should be patient for that process dump to be analysed further ... &lt;BR /&gt;&lt;BR /&gt;another issue is the traceback in case of thread cleanup (most of our cases) or fatal error of such a process : if you have any experience (and are ready to share it) would be of interest for us. we miss this feature where we have PTHREAD processes, and that should be possible under VMS. The VMS condition frame does exist and is valuable, but is it that the frame should be evaluated in special way due to the multi-threading and the stack peculiarity ? &lt;BR /&gt;&lt;BR /&gt;louis</description>
      <pubDate>Mon, 09 Jan 2006 06:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950028#M22466</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-09T06:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950029#M22467</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;HP has a debugging tool called Visual Threads that might interest you. It's available free of charge if you join the Developer &amp;amp; Solution Partner Program (DSPP), and there's no charge for individual membership.&lt;BR /&gt;&lt;BR /&gt;I have never really tried it out beyond installing it and seeing that it appeared to operate. But it allegedly offers some pretty nice capabilities for dealing with thread-based application debugging.&lt;BR /&gt;&lt;BR /&gt;You can read more about it here: &lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5077,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5077,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can get to the registration page for DSPP from:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5062,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5062,00.html&lt;/A&gt;</description>
      <pubDate>Tue, 10 Jan 2006 06:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950029#M22467</guid>
      <dc:creator>Galen Tackett</dc:creator>
      <dc:date>2006-01-10T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950030#M22468</link>
      <description>galen,&lt;BR /&gt;&lt;BR /&gt;DSPP is probably the new brand name for CSA alias ... as a software house, we are anyway HP partners.&lt;BR /&gt;&lt;BR /&gt;i will look at quoted links about this debugger. i red the name, but did not really try to go further. i thought i would have some other infos (eg, to analyse this lookaside list) thru SDA extension PTHREAD. &lt;BR /&gt;&lt;BR /&gt;the memory consumption displayed from it is awfull in our opinions, something should be around this, would we find the code(s) which allocate them.&lt;BR /&gt;&lt;BR /&gt;i will look also at another way for that leak, that is : should examine the map of the listing. for the VMS concern, eg, some DECC library run-time code alike DECC$GETENV implicitly allocate and dont deallocate (at least for the life of the corresponding thread). it should have limited effects. i can provide here link informations, possibly map listing, if someone has any suggestion around the link, esp and run-time libraries called we should carefully look at.&lt;BR /&gt;&lt;BR /&gt;louis</description>
      <pubDate>Tue, 10 Jan 2006 07:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950030#M22468</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-10T07:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950031#M22469</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;SDA extension sources available in licensed source CD-ROM&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;the PTHREAD$DBGSHR listings are not part of the OpenVMS source listings CD (at least not in V7.3-1).&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/QUOTE&gt;&lt;/QUOTE&gt;</description>
      <pubDate>Tue, 17 Jan 2006 10:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950031#M22469</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-01-17T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950032#M22470</link>
      <description>On the V7.3-2 source listings CD in the [PTHREAD] directory you will find various files thd*.* which are the sources for pthread$dbgshr&lt;BR /&gt;&lt;BR /&gt;This directory is not present on the V7.3-1 CD.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950032#M22470</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-17T11:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950033#M22471</link>
      <description>volker :&lt;BR /&gt;&lt;BR /&gt;do you mean : to understand which informations PTHREAD SDA extension provide, this CD-ROM would be no much help ?&lt;BR /&gt;&lt;BR /&gt;practically, i got the infos of the lookaside list (see previously) and would like to understand which threads allocate these buffers (0 buffers are free), where are they located, look at their contents etc ...&lt;BR /&gt;&lt;BR /&gt;would this CD-ROM gives me enough about the structures and so on to find this ? or i better would have to do this with Visual Pthread ?&lt;BR /&gt;&lt;BR /&gt;yours&lt;BR /&gt;&lt;BR /&gt;louis&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2006 11:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950033#M22471</guid>
      <dc:creator>Guinaudeau</dc:creator>
      <dc:date>2006-01-17T11:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950034#M22472</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;as Ian has indicated, the PTHREAD sources would be on the V7.3-2 (or higher) source listing CDs. With that information, it might be possible to find the lookaside lists in question and look at their contents. &lt;BR /&gt;&lt;BR /&gt;It will still be a major task to go through the source listings to understand those structures and how they are being allocated/deallocated. This will all be pthreads internals...&lt;BR /&gt;&lt;BR /&gt;It may be more efficient to order PTHREAD  engineering support from HP than trying to buy the source CDs and do it yourself.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 17 Jan 2006 12:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950034#M22472</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-01-17T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950035#M22473</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;I have looked more at your reply, but have no further insight or wisdom to offer for it.&lt;BR /&gt;&lt;BR /&gt;I'm still willing to consider any new questions you have and/or share some experience in a new thread when you find time to do that.  I also work on SCADA systems that have evolved over the years, mostly to UNIX/Linux and Windows-based systems now, but with a few of our established users still on OpenVMS.&lt;BR /&gt;&lt;BR /&gt;--Travis&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jan 2006 04:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950035#M22473</guid>
      <dc:creator>Travis Craig</dc:creator>
      <dc:date>2006-01-20T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950036#M22474</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;from looking at your PHTREAD$SDA data, it seems that the number of packets used from the &lt;OBJ-NAME&gt; lookaside list and the used &lt;RWB&gt; packets seem to be closely related. The same is true for the other RPC server data you've shown.&lt;BR /&gt;&lt;BR /&gt;This might imply that some piece of code seems to allocate one packet from each list for a certain call/operation and not return them.&lt;BR /&gt;&lt;BR /&gt;Could you correlate this number of non-returned packets with the execution count of some of your threads or with the no. of certain operations in your application ?&lt;BR /&gt;&lt;BR /&gt;If you suspect a certain routine to behave incorrectly, could you try to write a little example program, create a thread calling that routine and execute it lots of time ?&lt;BR /&gt;&lt;BR /&gt;What you also can do in your dump, is look around with SDA&amp;gt; EXA addr;100 at various addresses (outside the address range of the activated images as shown by SHOW PROC/IMA) looking for unusual or repeating patterns. If such a large portion of the process address space is used by the same kind of structures, you might spot something.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/RWB&gt;&lt;/OBJ-NAME&gt;</description>
      <pubDate>Tue, 31 Jan 2006 07:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950036#M22474</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-01-31T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950037#M22475</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;here is another SDA&amp;gt; PTHREAD command to try:&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; PTHREAD show -a&lt;BR /&gt;&lt;BR /&gt;will print the known object lists. From this info, we can deduct the type of packets in the lookaside 2 queue: &lt;BR /&gt;&lt;BR /&gt;rwb = rwlock objects&lt;BR /&gt;mub = mutex objects&lt;BR /&gt;cvb = condition variable objects&lt;BR /&gt;&lt;BR /&gt;Once we would be able to get the address of one of those queues, the PTHREAD SQUEUE command will be able to follow and format those queues.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Sun, 05 Feb 2006 03:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950037#M22475</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-02-05T03:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950038#M22476</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; PTHREAD vm -cf&lt;BR /&gt;&lt;BR /&gt;will list more details about the various lookaside lists (including high water mark and trend).&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Sun, 05 Feb 2006 03:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950038#M22476</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-02-05T03:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: debugging memory leak in a pthread program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950039#M22477</link>
      <description>Louis,&lt;BR /&gt;&lt;BR /&gt;after a little bit of SDA&amp;gt; SEARCH, I've finally been able to locate the data structures describing the VM lookaside lists in the PTHREAD$RTL image in memory, but BAD LUCK - they do not contain a queue of 'blocks in use'. The only queue listheads seem to be used for 'free blocks'.&lt;BR /&gt;&lt;BR /&gt;The problem now is how to find those data strucutres, which are 'in use'. There are lots of them in your dump...&lt;BR /&gt;&lt;BR /&gt;Let's see if using any of the other SDA&amp;gt; PTHREAD commands given in my 2 previous replies shed any more light on this problem.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Sun, 05 Feb 2006 08:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugging-memory-leak-in-a-pthread-program/m-p/4950039#M22477</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-02-05T08:23:49Z</dc:date>
    </item>
  </channel>
</rss>

