<?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: LOGOUT puts 2 processes in infinite loops in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035335#M12854</link>
    <description>I use PowerTerm to connect via TELNET from my Windows 2000Pro system.</description>
    <pubDate>Wed, 11 Jul 2007 11:50:29 GMT</pubDate>
    <dc:creator>Jess Goodman</dc:creator>
    <dc:date>2007-07-11T11:50:29Z</dc:date>
    <item>
      <title>LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035329#M12848</link>
      <description>&lt;!--!*#--&gt;Friday I logged off all my telnet sessions to VMS and turned off my computer.  Today I noticed that two of my processes on two different Alphas, (V7.3-2 and V6.2-1H3) are in kernel-mode infinite loops with the DELPEN process bit set.&lt;BR /&gt;&lt;BR /&gt;- CPU constantly accumulating in kernel mode&lt;BR /&gt;- No I/Os going on&lt;BR /&gt;- Can't suspend them or change base priority&lt;BR /&gt;- no images active&lt;BR /&gt;- no locks taken out&lt;BR /&gt;- no timers&lt;BR /&gt;- only channel 0010 shows (system disk no file)&lt;BR /&gt;- CLUE PROCESS/RECALL says last command is LOG&lt;BR /&gt;- TNA terminal devices do not exist&lt;BR /&gt;- no sockets associates with processes&lt;BR /&gt;&lt;BR /&gt;Attached is output from PCS trace.&lt;BR /&gt;&lt;BR /&gt;Any possibilities other than rebooting both systems?</description>
      <pubDate>Tue, 10 Jul 2007 18:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035329#M12848</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-10T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035330#M12849</link>
      <description>Sorry, here's the attachment</description>
      <pubDate>Tue, 10 Jul 2007 18:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035330#M12849</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-10T18:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035331#M12850</link>
      <description>The attachment didn't unpack quite right locally, though I'm not working on an OpenVMS box right now and it may well be a VFC-ism.&lt;BR /&gt;&lt;BR /&gt;Take a look at the process quotas.  (You may have to FORMAT the PCB and JIB structures directly, if SDA won't let you at the pieces through its normal commands.)  Look specifically at the I/O counts in the PCBs and over in the JIB.  See if an I/O is missing -- a lost I/O somewhere, or some lost quota.&lt;BR /&gt;&lt;BR /&gt;If this is a lost quota count, you can choose to bump the quotas to fake the rundown into completion (patching from the console, or via some kernel-mode hackery), or you can use this opportunity to reboot to apply the ECOs and then reboot.  &lt;BR /&gt;&lt;BR /&gt;Where the I/O went -- if this is a lost I/O -- is a whole 'nother discussion.&lt;BR /&gt;&lt;BR /&gt;As for ECOs to apply, the usual all-mandatory and current UPDATE kits, current IP kit, and toss in any kernel-mode code you may be using on these two systems.  For grins, check for ECOs to the disk drivers and any device firmware.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jul 2007 20:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035331#M12850</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-07-10T20:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035332#M12851</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;  Another instance of a system that needs a reboot to recover? :-(&lt;BR /&gt;&lt;BR /&gt;  You may need to further symbolize the PC samples. In particular the TCPIP$INTERNET_SERVICES calls.&lt;BR /&gt;&lt;BR /&gt;  Guessing, the trace looks like you're stuck walking the open channels list, trying to deallocate devices. For some reason one or more devices haven't been removed. Check the sources for IOC$SCAN_IODB and see what structure it scans. Examine it from SDA to try to determine why there's junk left on it. &lt;BR /&gt;&lt;BR /&gt;  If (when?) you reboot, make sure you force a crash and submit the dump to HP for analysis.</description>
      <pubDate>Tue, 10 Jul 2007 23:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035332#M12851</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-07-10T23:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035333#M12852</link>
      <description>&lt;!--!*#--&gt;Thanks for the responses so far.  Here is SDA&amp;gt;SHOW PROCESS from the VMS 7.3-2 (fully patched) system:&lt;BR /&gt;&lt;BR /&gt;Direct I/O count/limit        189/199&lt;BR /&gt;Buffered I/O count/limit      209/199&lt;BR /&gt;BUFIO byte count/limit     512000/512000&lt;BR /&gt;ASTs remaining                199/199&lt;BR /&gt;Timer entries remaining       199/199&lt;BR /&gt;&lt;BR /&gt;Process index: 03F0   Name: _TNA213:          Extended PID: 41A7BFF0&lt;BR /&gt;&lt;BR /&gt;Process active channels&lt;BR /&gt;Channel CCB Window Status Device accessed&lt;BR /&gt;0010 7FF60000 00000000 AX38$DKA0:&lt;BR /&gt;Total number of open channels : 1.&lt;BR /&gt;&lt;BR /&gt;So subtracting count from limit VMS believes that there are 10 active DIOs and -10 active BIOs.  The Availability Manager process quota display is DIO: 10/199, BIO: -10/199.&lt;BR /&gt;&lt;BR /&gt;But there are no active I/O channels.  No job quotas are in use other than a small amount of page file.&lt;BR /&gt;&lt;BR /&gt;On the V6.2-1H3 system it is much the same except only 1 DIO in use and only(!) -1 BIO in use.&lt;BR /&gt;&lt;BR /&gt;Is there some kernel mode code hack I can use to zero the active I/O counters?</description>
      <pubDate>Wed, 11 Jul 2007 10:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035333#M12852</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-11T10:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035334#M12853</link>
      <description>hi Jess,&lt;BR /&gt;     by the look, a guess, it looks like its trying to tear down the conx. interesting we see a call to LAN$COMPLETE_XMT_CSMACD_C  which might imply&lt;BR /&gt;it doesn't think the conx is closed. May I&lt;BR /&gt;ask, what did you use to connect to the vms&lt;BR /&gt;boxes? Dean</description>
      <pubDate>Wed, 11 Jul 2007 11:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035334#M12853</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-07-11T11:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035335#M12854</link>
      <description>I use PowerTerm to connect via TELNET from my Windows 2000Pro system.</description>
      <pubDate>Wed, 11 Jul 2007 11:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035335#M12854</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-11T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035336#M12855</link>
      <description>Ok, well you issued a logout and didn't just&lt;BR /&gt;abort powerterm. I use powerterm to daily, no problems. from your trace, I see the process attempting to dealloc a device, aquiring and releasing spinlocks. probably really just the iolock8 spinlock. curious how much smp time, from a monitor modes.  At the very least, gather as much info as you can, and as suggested get&lt;BR /&gt;a crashdump of the system for HP to look&lt;BR /&gt;at.  those pc snapshots should help them&lt;BR /&gt;see where the code is traversing. Dean</description>
      <pubDate>Wed, 11 Jul 2007 12:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035336#M12855</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-07-11T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035337#M12856</link>
      <description>&amp;gt;&amp;gt;&amp;gt;But there are no active I/O channels.  No job quotas are in use other than a small amount of page file.&amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt;&lt;BR /&gt;And therein lies the problem.  &lt;BR /&gt;&lt;BR /&gt;Assuming you have current TCP/IP Services ECOs (and assuming the IP stack is the HP stack) and you have a support contract, force a crash and send it along to HP.&lt;BR /&gt;&lt;BR /&gt;Something definitely looks to be leaking.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;Is there some kernel mode code hack I can use to zero the active I/O counters?&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;I usually roll a specific case, and a little code behind a $cmkrnl call.  There's a variation of what you need to do here posted over in a process deletion thread; I tossed a pointer to some kernel-mode code that clears the NODELET bit in the PCB somewhere here in ITRC within the last couple of days.  Try a google search with the site:forums1.itrc.hp.com keyword.  Look for that, and NODELET and RBH, or such.&lt;BR /&gt;&lt;BR /&gt;I also prefer to test such code somewhere else-node, before setting it loose on a production server.  If you're fast and cluster timers are set tolerant and you're on a "continue-able" system, you can halt and bomb core and continue from the console prompt.&lt;BR /&gt;&lt;BR /&gt;Patching the value doesn't mean this problem goes away; if that I/O is eventually "found" or if extra and otherwise lost I/O is built up somewhere, a Bad Thing could happen to the process(es) involved, or to OpenVMS itself.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035337#M12856</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-07-11T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035338#M12857</link>
      <description>&lt;!--!*#--&gt;Ok, thanks again for the replies. Since I couldn't find any code to help I wrote my own kernel mode program that clears the DELPEN bit of the PCB$L_STS longword of a given process.  I have attached it here in case anyone else might find it useful.&lt;BR /&gt;&lt;BR /&gt;After running this program on my systems I could then use SHOW PROCESS commands for the problem processes and eventually I did a SET PROCESS/SUSPEND=KERNEL, which worked; so the processes are no longer burning CPU cycles.&lt;BR /&gt;&lt;BR /&gt;My program should work on VAX/ALPHA VMS 6.2 and above and I would guess only a minor change is necessary for Integrity.</description>
      <pubDate>Wed, 11 Jul 2007 18:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035338#M12857</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-11T18:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035339#M12858</link>
      <description>Sorry, accidentally posted old version of code.  Here's the new version, although both work.</description>
      <pubDate>Wed, 11 Jul 2007 18:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035339#M12858</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-11T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035340#M12859</link>
      <description>Watch out with this code. It references memory at ipl 8 without locking it, and it never unlocks the spinlock in the error path! In other words, it could crash your system.&lt;BR /&gt;&lt;BR /&gt;Besides that, you really have to know what you're doing when clearing this bit in the pcb. There might be a good reason that it's disabled.&lt;BR /&gt;&lt;BR /&gt;Jur.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 00:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035340#M12859</guid>
      <dc:creator>Jur van der Burg</dc:creator>
      <dc:date>2007-07-12T00:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035341#M12860</link>
      <description>&lt;!--!*#--&gt;Ok, thaks for the tip.  A new version of my code is attached.  I don't normally bother with locking down one page of high IPL code (I like working without a net.  What are the odds?)  But since I did release this code I have been a good boy and followed the rules in this latest version.  I also fixed the problem in my error return path.&lt;BR /&gt;&lt;BR /&gt;The bit I'm clearing is the process delete-pending bit.  The reason the bit is set is because the process was supposed to be killed via LOGOUT, STOP/ID, etc.  But if you're running this program that obviously didn't happen for some reason.  Clearing the DELPEN bit lets you get some control of the process back.&lt;BR /&gt;&lt;BR /&gt;Of course like any kernel mode hack a crash is possible, but since in most cases when you might want to use this program the alternative is a reboot (or as recommended above, forcing a crash dump) that may not really be a downside.</description>
      <pubDate>Thu, 12 Jul 2007 11:27:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035341#M12860</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-12T11:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035342#M12861</link>
      <description>jess,&lt;BR /&gt;     maybe you need the iolock8 spinlock.&lt;BR /&gt;anyway keep the versions coming, I keep&lt;BR /&gt;grabbing them, I like tools like that.&lt;BR /&gt;at least you have the processes quiet.&lt;BR /&gt;     actually if you got that process to&lt;BR /&gt;crash the system, the footprint might be&lt;BR /&gt;useful for the tcpip folks. Dean</description>
      <pubDate>Thu, 12 Jul 2007 11:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035342#M12861</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-07-12T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035343#M12862</link>
      <description>&lt;!--!*#--&gt;Since you asked...here comes another version.&lt;BR /&gt;&lt;BR /&gt;Minor fix so the locked-down code doesn't reference an unlocked longword of data.</description>
      <pubDate>Thu, 12 Jul 2007 13:24:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035343#M12862</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-12T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035344#M12863</link>
      <description>That's better. You need sched to synchronize, and not iolock8 as mentioned before so your code is correct.&lt;BR /&gt;&lt;BR /&gt;One small nit: the conditionals do '.IF DF ALPHA' meaning that if you ever want to run this on Itanium the VAX path will be chosen. It's better to distinguish between 'VAX' and 'Others', like .IF DF VAX because Alpha and Itanium are (most of the times) the same.&lt;BR /&gt;&lt;BR /&gt;Jur.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jul 2007 00:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035344#M12863</guid>
      <dc:creator>Jur van der Burg</dc:creator>
      <dc:date>2007-07-13T00:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035345#M12864</link>
      <description>Yes, I know that that usually works.  But since in this case I did not know if any other changes were necessary for Itanium (thought there might be differences in how pages are locked) I decided not to do it so that it didn't look like I was saying that my code was Itanium ready.&lt;BR /&gt;&lt;BR /&gt;Can I just reverse the R31 test to NE to define VAX, use .IF NDF VAX and the code will work on all 3 architectures?</description>
      <pubDate>Fri, 13 Jul 2007 11:02:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035345#M12864</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-13T11:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035346#M12865</link>
      <description>Jess,&lt;BR /&gt;       is this reproducable, have you&lt;BR /&gt;reconnected and logged out again? I tried&lt;BR /&gt;reproducing here, aborting powerterm etc. no problems.</description>
      <pubDate>Fri, 13 Jul 2007 12:38:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035346#M12865</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-07-13T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035347#M12866</link>
      <description>I've been using PowerTerm for years and I think this problem only happened once before.  What was really weird is that it happened to two of my sessions at once.  I probably had 8 going when I logged them all out.</description>
      <pubDate>Fri, 13 Jul 2007 12:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035347#M12866</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-07-13T12:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: LOGOUT puts 2 processes in infinite loops</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035348#M12867</link>
      <description>interesting, maybe try killing 8 &lt;BR /&gt;again, I will try it. is your system&lt;BR /&gt;a single cpu? It would be nice to&lt;BR /&gt;be able to reproduce. I worked with the&lt;BR /&gt;guys in tcpip, and know they'd like &lt;BR /&gt;to see and fix this..</description>
      <pubDate>Fri, 13 Jul 2007 13:05:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/logout-puts-2-processes-in-infinite-loops/m-p/4035348#M12867</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-07-13T13:05:16Z</dc:date>
    </item>
  </channel>
</rss>

