<?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 error %SYSTEM-F-TBIT in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016166#M35195</link>
    <description>%SYSTEM-F-TBIT &lt;BR /&gt;I get a stack dump with the above error.&lt;BR /&gt;I google'd the error, found nothing.&lt;BR /&gt;I tried ITRC search, found nothing.&lt;BR /&gt;I browsed the VMS manuals, including the C manuals...nothing.&lt;BR /&gt;&lt;BR /&gt;This only crashes on my VAX, works fine on Alpha and Itanium.  It's C code, common code on all platforms.  The code has been running for 20 years on the VAX.  I'm diff'ing code changes for the past year.&lt;BR /&gt;&lt;BR /&gt;Could someone please point me towards documentation that would help explain the error?&lt;BR /&gt;tia...Kelly Cox</description>
    <pubDate>Wed, 29 Nov 2006 13:33:45 GMT</pubDate>
    <dc:creator>Kelly Cox</dc:creator>
    <dc:date>2006-11-29T13:33:45Z</dc:date>
    <item>
      <title>error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016166#M35195</link>
      <description>%SYSTEM-F-TBIT &lt;BR /&gt;I get a stack dump with the above error.&lt;BR /&gt;I google'd the error, found nothing.&lt;BR /&gt;I tried ITRC search, found nothing.&lt;BR /&gt;I browsed the VMS manuals, including the C manuals...nothing.&lt;BR /&gt;&lt;BR /&gt;This only crashes on my VAX, works fine on Alpha and Itanium.  It's C code, common code on all platforms.  The code has been running for 20 years on the VAX.  I'm diff'ing code changes for the past year.&lt;BR /&gt;&lt;BR /&gt;Could someone please point me towards documentation that would help explain the error?&lt;BR /&gt;tia...Kelly Cox</description>
      <pubDate>Wed, 29 Nov 2006 13:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016166#M35195</guid>
      <dc:creator>Kelly Cox</dc:creator>
      <dc:date>2006-11-29T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016167#M35196</link>
      <description>Kelly,&lt;BR /&gt;&lt;BR /&gt;$ HELP/MESSAGE TBIT&lt;BR /&gt;&lt;BR /&gt; TBIT,  T-bit pending trap at PC='location', PSL='xxxxxxxx'&lt;BR /&gt;&lt;BR /&gt;  Facility:     SYSTEM, System Services&lt;BR /&gt;&lt;BR /&gt;  Explanation:  This message indicates an exception condition. It is usually&lt;BR /&gt;                followed by a display of the condition arguments, registers,&lt;BR /&gt;                and stack at the time of the exception.&lt;BR /&gt;&lt;BR /&gt;  User Action:  Examine the PC and virtual address displayed in the message to&lt;BR /&gt;                determine the instruction that caused the error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you provide more information, like the actual printout ? Run it with /DEBUG and examine the instruction stream pointed to by the PC.&lt;BR /&gt;&lt;BR /&gt;Normally, the T-Bit (in the PSL) is used by a debugger to enable stepping through a program instruction by instruction. When the T-Bit is set in the PSL, a trace trap occurs after execution of the next instruction.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Wed, 29 Nov 2006 14:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016167#M35196</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-11-29T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016168#M35197</link>
      <description>Found this by searching on c.o.v.( circa&lt;BR /&gt;1992)&lt;BR /&gt;&lt;BR /&gt;The TBIT is a bit in the PSL that causes the system to signal the TBIT &lt;BR /&gt;exception after every instruction.  As you might guess, this is used by &lt;BR /&gt;the Debugger for a lot of operations.   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For example, one way of stepping over a routine call is to: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        1. Turn on the TBIT &lt;BR /&gt;        2. Single step &lt;BR /&gt;        3. Catch the TBIT exception &lt;BR /&gt;        4. Look at the PC.  Are we back in the calling routine (and &lt;BR /&gt;           this isn't a recursive call)?  If so, stop.  If not, go &lt;BR /&gt;           back to step 1 and continue. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(This glosses over a lot of detail) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The question to answer is:  Does your program generate the TBIT exception &lt;BR /&gt;when run /nodebug, or does it only generate the problem when run with the &lt;BR /&gt;Debugger? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the program generates the problem without the Debugger, then you're going &lt;BR /&gt;to have to look very carefully at your program.  How is it setting the TBIT &lt;BR /&gt;bit in the PSL?  Is it stomping on the stack and dirtying the TBIT bit in &lt;BR /&gt;a saved PSL?  Are you doing something else that affects the stack in an &lt;BR /&gt;unusual way? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the program only generates the TBIT fault in the Debugger, then it may be &lt;BR /&gt;a problem with your program or it may be a problem in the Debugger.  I don't &lt;BR /&gt;know of any outstanding TBIT related problems reported against the Debugger, &lt;BR /&gt;so I'd start by assuming it's your program and running through the questions &lt;BR /&gt;in the previous paragraph.  (If your program generates the TBIT even once &lt;BR /&gt;without the Debugger present, then it's definitely your program at fault. &lt;BR /&gt;Be forewarned - if your program generates spurious TBIT settings, it's &lt;BR /&gt;unlikely but possible to confuse the Debugger completely.) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you believe that it's a Debugger problem after all your analysis is done, &lt;BR /&gt;please report the problem via the usual Digital problem reporting mechanisms. &lt;BR /&gt;We'll need to know the version of the Debugger and we'd really appreciate a &lt;BR /&gt;simple example that reliably reproduces the problem. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Nov 2006 14:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016168#M35197</guid>
      <dc:creator>Dave Gudewicz</dc:creator>
      <dc:date>2006-11-29T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016169#M35198</link>
      <description>%SYSTEM-F-TBIT, T-bit pending trap at PC=004DC49F, PSL=03C00030&lt;BR /&gt;%TRACE-F-TRACEBACK, symbolic stack dump follows&lt;BR /&gt;module name     routine name                     line       rel PC    abs PC&lt;BR /&gt;&lt;BR /&gt;SHELF_CARD      build_by_semester                5447      00000483  004DC49F&lt;BR /&gt;SHELF_CARD      shelf_card                       5334      000000BB  004DBFB3&lt;BR /&gt;CSM_MAIN        curr_mgr_menu                   12423      000003DD  004DA3E1&lt;BR /&gt;CSM_MAIN        main                            11535      000003CE  004D7F6E&lt;BR /&gt;&lt;BR /&gt;The line of code is obvious, it is not new code.  The dump happens with debug off.  The error references a line that is a function call that does have new code in it.  I'm trying to extract the code to a small code base that is not 10,000+ lines and see if the error persists.  I'm sure it's program code, not the system.  It's probably not odd that the same code runs fine on alpha and itanium.</description>
      <pubDate>Wed, 29 Nov 2006 14:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016169#M35198</guid>
      <dc:creator>Kelly Cox</dc:creator>
      <dc:date>2006-11-29T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016170#M35199</link>
      <description>could it be something trampling on the stack?&lt;BR /&gt;Is there a function call above the line reported?</description>
      <pubDate>Wed, 29 Nov 2006 14:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016170#M35199</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-11-29T14:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016171#M35200</link>
      <description>I'm with Ian. The T-bit trap is likely to be a secondary effect from the stack being overwritten. The function you mention is the victim, not the cause. Some local variable is being accessed out of bounds touching what becomes the PSL for a RET (RSB?). Maybe run with debugger and SET WATCH the stack location which holds the PSL? CC/LIST/MACHINE as needed. The actual problem is likely to be happening several (dozens of) lines before the failure point.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Nov 2006 21:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016171#M35200</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-11-29T21:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016172#M35201</link>
      <description>Kelly,&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; eva/psl 03C00030&lt;BR /&gt;        CMP TP FPD IS CURMOD PRVMOD IPL DV FU IV T N Z V C&lt;BR /&gt;         0   0  0   0  USER   USER   00  0  0  1 1 0 0 0 0&lt;BR /&gt;&lt;BR /&gt;The PSL shown in the %SYSTEM-F-TBIT message actually does have the T-Bit set. Could you create a process dump and look at the instruction stream ?&lt;BR /&gt;&lt;BR /&gt;$ SET PROC/DUMP&lt;BR /&gt;$ RUN your program&lt;BR /&gt;$ ANAL/PROC &lt;PROGRAM-NAME&gt;.DMP&lt;BR /&gt;DBG&amp;gt; EXA/INS 004DC49F&lt;BR /&gt;DBG&amp;gt; EXA/INS 004DC49F-10:004DC49F&lt;BR /&gt;&lt;BR /&gt;You may need to try various values like -11, -10 etc. until you hit the correct instruction stream. VAX instructions are variable-length.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/PROGRAM-NAME&gt;</description>
      <pubDate>Thu, 30 Nov 2006 01:34:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016172#M35201</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-11-30T01:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016173#M35202</link>
      <description>I agree, it is probably the PRECEDING function, especially as the preceding function is the only new code.  If I choose an option that does not go into the function, it all works as in the past.  It's a bit odd that the new function works fine on alpha and itanium.  I've been busy on other priorities.  Hopefully I can figure this out this weekend.  I've just re-compiled this module with debug, but I've not used debug in 10 years.  So time to open the vax debug manuals.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help so far.  I've never looked directly at the 'stack', i'm not sure what i would be looking for.</description>
      <pubDate>Sat, 02 Dec 2006 18:43:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016173#M35202</guid>
      <dc:creator>Kelly Cox</dc:creator>
      <dc:date>2006-12-02T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016174#M35203</link>
      <description>&lt;!--!*#--&gt;Kelly,&lt;BR /&gt;&lt;BR /&gt;you can't easily 'see' this problem with the debugger. But our theory is right ! Take this simple FORTRAN program:&lt;BR /&gt;&lt;BR /&gt;        call hallo&lt;BR /&gt;        end&lt;BR /&gt;        subroutine hallo&lt;BR /&gt;        type *,'hallo'&lt;BR /&gt;        end&lt;BR /&gt;&lt;BR /&gt;Compile and link it with /DEBUG, run it:&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; set br hallo&lt;BR /&gt;DBG&amp;gt; go&lt;BR /&gt;break at routine HALLO&lt;BR /&gt;     1:         subroutine hallo&lt;BR /&gt;DBG&amp;gt; set language macro&lt;BR /&gt;DBG&amp;gt; exa/psl psl&lt;BR /&gt;HALLO\%PSL:&lt;BR /&gt;        CMP TP FPD IS CURMOD PRVMOD IPL DV FU IV T N Z V C&lt;BR /&gt;         0   0  0   0  USER   USER    0  0  0  1 0 0 0 0 0&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; exa @fp+4 ! look at saved PSW in caller's frame&lt;BR /&gt;7FE94B44:       28000020&lt;BR /&gt;DBG&amp;gt; dep .=28000030 ! Set T-bit in saved PSW&lt;BR /&gt;DBG&amp;gt; g&lt;BR /&gt;hallo&lt;BR /&gt;%SYSTEM-F-TBIT, T-bit pending trap at PC=0000060C, PSL=03C00030&lt;BR /&gt;break on unhandled exception at Y$MAIN\%LINE 2+3&lt;BR /&gt;     2:         end&lt;BR /&gt;DBG&amp;gt; exa/ins 60c&lt;BR /&gt;Y$MAIN\%LINE 2+3:       RET&lt;BR /&gt;&lt;BR /&gt;So if you would just RUN/DEBUG your application program (without any need to compile or link it with debug or without even typing DBG&amp;gt; GO), you could examine the failing instruction:&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; SET LAN MAC&lt;BR /&gt;DBG&amp;gt; EXA/INS 004DC49F ! Failing PC&lt;BR /&gt;DBG&amp;gt; EXIT&lt;BR /&gt;&lt;BR /&gt;If a RET is shown, you can be sure that the saved PSW on the stack has been overwritten.&lt;BR /&gt;&lt;BR /&gt;You can then run the program with the debugger, set a breakpoint at the entry of the 'new function added'. Once you hit that breakpoint, issue a DBG&amp;gt; EXA @FP+4 and note the address and the value of the saved PSW.&lt;BR /&gt;&lt;BR /&gt;You could try to set a watch-point on that location on the stack. Otherwise step through this program and continue looking look at @FP+4 until it's value changes.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Sun, 03 Dec 2006 05:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016174#M35203</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-12-03T05:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016175#M35204</link>
      <description>Kelly,&lt;BR /&gt;&lt;BR /&gt;a slight correction:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;DBG&amp;gt; SET LAN MAC&lt;BR /&gt;DBG&amp;gt; EXA/INS 004DC49F ! Failing PC&lt;BR /&gt;DBG&amp;gt; EXIT&lt;BR /&gt;&lt;BR /&gt;If a RET is shown, you can be sure that the saved PSW on the stack has been overwritten.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;The RET shown is just 'the next instruction' after the call to your new routine. In the example program, it's just the RET at the end of the program. So the instruction can be anything.&lt;BR /&gt;&lt;BR /&gt;You can try to examine the previous instructions with:&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; EXA/INS &lt;VALUE-OF-FAILING-PC&gt;-11;&lt;VALUE-OF-FAILING-PC&gt;&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/VALUE-OF-FAILING-PC&gt;&lt;/VALUE-OF-FAILING-PC&gt;</description>
      <pubDate>Sun, 03 Dec 2006 05:30:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016175#M35204</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-12-03T05:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016176#M35205</link>
      <description>I finally got the time to re-visit this problem.  Being only VAX, it was not priority.&lt;BR /&gt;I compiled debug and then stepped through the new function and found the error.  It was a simple text string that was modified to a new larger size for output, but not modified in the declaration.  Of course it corrupted the stack.  &lt;BR /&gt;I think it should have messed up on the Alpha and the Itanium.  &lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Fri, 08 Dec 2006 09:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016176#M35205</guid>
      <dc:creator>Kelly Cox</dc:creator>
      <dc:date>2006-12-08T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016177#M35206</link>
      <description>I am closing thread.</description>
      <pubDate>Fri, 08 Dec 2006 09:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016177#M35206</guid>
      <dc:creator>Kelly Cox</dc:creator>
      <dc:date>2006-12-08T09:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: error %SYSTEM-F-TBIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016178#M35207</link>
      <description>So,&lt;BR /&gt;&lt;BR /&gt;another victim of unrestrained null-terminated strings...&lt;BR /&gt;&lt;BR /&gt;O boy, do I HATE those!&lt;BR /&gt;&lt;BR /&gt;$ SET MODE RANT&lt;BR /&gt;$ DECK&lt;BR /&gt;Too bad VMS has succumbed to the habit of cryptogrammming /g/n/i/m/m/a/r/g/o/t/p/y/r/c in C with that error-promissing default string type! Well, at least it _DOES_ allow for decent descriptors, just a pity there is no way to dis-allow null-termination...&lt;BR /&gt;$EOD&lt;BR /&gt;$ SET MODE NORANT&lt;BR /&gt;&lt;BR /&gt;fwiw&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 08 Dec 2006 13:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/error-system-f-tbit/m-p/5016178#M35207</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-08T13:14:01Z</dc:date>
    </item>
  </channel>
</rss>

