<?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: Debugger Question in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532591#M43118</link>
    <description>Hein,&lt;BR /&gt;the software to test has a parent-subprocess relationship. Testing the real programs in two different sessions would not be the same.&lt;BR /&gt;&lt;BR /&gt;For my primitive reproducer there are three processes involved:&lt;BR /&gt;main process - state HIB&lt;BR /&gt;dbg$xxxx -  state LEF&lt;BR /&gt;subprocess spawned from within the debugger - state LEF&lt;BR /&gt;&lt;BR /&gt;None of the processes seems to have problems with quotas. &lt;BR /&gt;ANA/SYS -&amp;gt; SHO PROC/CHAN ... shows no busy i/o channel, again none of the processes involved has any busy i/o channel !!!&lt;BR /&gt;&lt;BR /&gt;SHOW PROC does not have the q page on 7.3-2 but ana/sys ... SHOW PROC helps.&lt;BR /&gt;On 8.3 there are no problems with quota (q page available).&lt;BR /&gt;&lt;BR /&gt;What do you try to tell me about PThreads ?&lt;BR /&gt;We don't use it explicitly.&lt;BR /&gt;&lt;BR /&gt;Hoff,&lt;BR /&gt;my original post contains a small reproducer, nearly as simple as I can imagine.&lt;BR /&gt;I also tried to redirect debugger input and output (DBG$INPUT and DBG$OUTPUT) to another terminal, btw. that's the way I use to work, too. But it does not work. I also tried to redirect debug input/output to different terminals (one for the main process, the other one for the subprocess). Always the same result: debugging not possible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Nov 2009 14:28:38 GMT</pubDate>
    <dc:creator>dschwarz</dc:creator>
    <dc:date>2009-11-12T14:28:38Z</dc:date>
    <item>
      <title>Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532586#M43113</link>
      <description>We have recently upgraded a development system from OpenVMS 7.3 to 7.3-2 (patch level VMS732_UPDATE-V1400). One of our programmers has a problem with debugging a program in a subprocess spawned from another debug session.&lt;BR /&gt;&lt;BR /&gt;small reproducer (fortran):&lt;BR /&gt;&lt;BR /&gt;program testit&lt;BR /&gt;implicit none&lt;BR /&gt;integer*4 i&lt;BR /&gt;integer*4 j&lt;BR /&gt;i = 3&lt;BR /&gt;j = 4&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;program testit2&lt;BR /&gt;implicit none&lt;BR /&gt;integer*4 i&lt;BR /&gt;integer*4 j&lt;BR /&gt;i = 3&lt;BR /&gt;j = 4&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;fortr/debu/noop testit&lt;BR /&gt;fortr/debu/noop testit2&lt;BR /&gt;link/debu testit&lt;BR /&gt;link/debu testit2&lt;BR /&gt;&lt;BR /&gt;run testit&lt;BR /&gt;&lt;BR /&gt;dbg&amp;gt; step&lt;BR /&gt;dbg&amp;gt; spawn&lt;BR /&gt;&lt;BR /&gt;$ run testit 2&lt;BR /&gt;&lt;BR /&gt;Under OpenVMS 7.3 this works, I get the debugger version (OpenVMS Alpha Debug64 Version V7.2X-022) and the debug prompt.&lt;BR /&gt;&lt;BR /&gt;Under openVMS 7.3-2 (debug version OpenVMS Alpha Debug64 Version V7.3-200) there is no prompt. Main session is HIB, dbg$xxxx and subprocess are in LEF.&lt;BR /&gt;&lt;BR /&gt;It is not possible to patch the debugger because these patches introduce bugs concerning examine/deposit fortran record elements.&lt;BR /&gt;&lt;BR /&gt;What has changed ?&lt;BR /&gt;Is there a workaround ?&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 11:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532586#M43113</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2009-11-12T11:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532587#M43114</link>
      <description>&lt;BR /&gt;Did you try set the job logical DBG$PROCESS to &lt;BR /&gt;MULTIPROCESS ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ HELP/LIBRARY=SYS$HELP:DBG$HELP DEBUG Logical_Names DBG$PROCESS &lt;BR /&gt;:&lt;BR /&gt;" Use the multiprocess configuration to debug programs that normally run in more than one process."&lt;BR /&gt;:&lt;BR /&gt; For more information, see help on Debugging_Configurations.&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 12:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532587#M43114</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-11-12T12:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532588#M43115</link>
      <description>Hein,&lt;BR /&gt;until this moment I didn't try this. But now I tried this first:&lt;BR /&gt;$  HELP/LIBRARY=SYS$HELP:DBG$HELP DEBUG Logical_Names DBG$PROCESS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DEBUG&lt;BR /&gt;&lt;BR /&gt;  Logical_Names&lt;BR /&gt;    Sorry, no documentation on DEBUG LOGICAL_NAMES DBG$PROCESS&lt;BR /&gt;&lt;BR /&gt;I became curious and tried it with 8.3&lt;BR /&gt;Help ... did work &lt;BR /&gt;but the problem with the debugger persists. Even worse: I had to stop/id=nnn my session because ctl-Y didn't work. &lt;BR /&gt;It (ctl-Y) worked with 7.3-2.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 12:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532588#M43115</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2009-11-12T12:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532589#M43116</link>
      <description>Oh well. Seemed like a good place to try this option.&lt;BR /&gt;Along the lines of "what problem are you really trying to solve", may we assume that the processesing to be tested must have a parent - subprocess relationship? &lt;BR /&gt;Can you work around that, punt the issue by performing the test simply using two debug sessions? That would seem a lot easier on th whole!&lt;BR /&gt;&lt;BR /&gt;To figure out what is going on, you may need to  check the status of the various processes involved, and notably what they are waiting for. ANAL/SYS ... SHOW PROC/CHAN ... look for 'busy' can be a handy way to see mailbox IO.&lt;BR /&gt;Maybe you are low on process resources? (bytlm, tqe,...).&lt;BR /&gt;Does $ SHOW PROC/CONT on 7.3-2 have the 'q' page?&lt;BR /&gt;Probably not... find a command file to list quotas and usage?&lt;BR /&gt;Something wrong with Pthreads?&lt;BR /&gt;Just guesses.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 13:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532589#M43116</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-11-12T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532590#M43117</link>
      <description>Can you create a small reproducer?  HP will want to see that.&lt;BR /&gt;&lt;BR /&gt;The alternative (and the approach I usually use) redirects the debugger session and debugger output from the detached processes (or your subprocess, here) to another terminal.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/803" target="_blank"&gt;http://labs.hoffmanlabs.com/node/803&lt;/A&gt;</description>
      <pubDate>Thu, 12 Nov 2009 14:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532590#M43117</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-12T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532591#M43118</link>
      <description>Hein,&lt;BR /&gt;the software to test has a parent-subprocess relationship. Testing the real programs in two different sessions would not be the same.&lt;BR /&gt;&lt;BR /&gt;For my primitive reproducer there are three processes involved:&lt;BR /&gt;main process - state HIB&lt;BR /&gt;dbg$xxxx -  state LEF&lt;BR /&gt;subprocess spawned from within the debugger - state LEF&lt;BR /&gt;&lt;BR /&gt;None of the processes seems to have problems with quotas. &lt;BR /&gt;ANA/SYS -&amp;gt; SHO PROC/CHAN ... shows no busy i/o channel, again none of the processes involved has any busy i/o channel !!!&lt;BR /&gt;&lt;BR /&gt;SHOW PROC does not have the q page on 7.3-2 but ana/sys ... SHOW PROC helps.&lt;BR /&gt;On 8.3 there are no problems with quota (q page available).&lt;BR /&gt;&lt;BR /&gt;What do you try to tell me about PThreads ?&lt;BR /&gt;We don't use it explicitly.&lt;BR /&gt;&lt;BR /&gt;Hoff,&lt;BR /&gt;my original post contains a small reproducer, nearly as simple as I can imagine.&lt;BR /&gt;I also tried to redirect debugger input and output (DBG$INPUT and DBG$OUTPUT) to another terminal, btw. that's the way I use to work, too. But it does not work. I also tried to redirect debug input/output to different terminals (one for the main process, the other one for the subprocess). Always the same result: debugging not possible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2009 14:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532591#M43118</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2009-11-12T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532592#M43119</link>
      <description>Yep, I see that reproducer now.&lt;BR /&gt;&lt;BR /&gt;If forcing the single-process debugger or raising the debug session via DECwindows doesn't work, then you'll probably end up starting another session.&lt;BR /&gt;&lt;BR /&gt;Looks like the debugger is getting itself tangled.</description>
      <pubDate>Thu, 12 Nov 2009 14:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532592#M43119</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-12T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532593#M43120</link>
      <description>Hoff,&lt;BR /&gt;yes, that's what it looks like.&lt;BR /&gt;A new 'feature' introduced with 7.3-2&lt;BR /&gt;and updated with 8.3 to force user to kill their processes.</description>
      <pubDate>Thu, 12 Nov 2009 14:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/debugger-question/m-p/4532593#M43120</guid>
      <dc:creator>dschwarz</dc:creator>
      <dc:date>2009-11-12T14:39:15Z</dc:date>
    </item>
  </channel>
</rss>

