<?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: OpenVMS stack traceback in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362205#M36494</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;(a) Have I totally got the wrong end of the stick here, or is this really true and it's supposed to be like this?&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;I can't reproduce this. What I get is a trace back which is started with "&lt;FONT face="courier new,courier"&gt;%F-TRACEBACK, symbolic stack dump follows&lt;/FONT&gt;". And that makes some sense.&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;(b) Is there a way of doing 'set message /facility' using a system service? If so, my detached processes could do that immediately after they start up, to make sure there will be a traceback if they crash.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;Can't you add a "$&amp;nbsp;&lt;FONT face="courier new,courier"&gt;set message/facility&lt;/FONT&gt;" to the runxyz.com?&lt;/DIV&gt;&lt;DIV&gt;What kind of problem do you have, ACCVIO, QUOTA, ... ? The traceback code is (image/merge) activated when it is needed. If you have a resource problem in the detached process, it may not be possible to load and/or execute that code.&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Oct 2011 11:31:05 GMT</pubDate>
    <dc:creator>H.Becker</dc:creator>
    <dc:date>2011-10-14T11:31:05Z</dc:date>
    <item>
      <title>OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362139#M36493</link>
      <description>&lt;P&gt;I'm having a bit of trouble with the OpenVMS stack traceback facility (the facility whereby when a process crashes, sys$output contains a printout starting with %TRACE_F_TRACEBACK, showing an unwind of the stack). It appears that if the crashing process is a detached process, the traceback is produced only if 'set message /facility' was in force when the process was created. If I enter 'set message /nofacility' before creating the detached process, then when the detached process crashes, no traceback is produced. This doesn't seem to apply to non-detached processes. I haven't found any reference to this behaviour in the OpenVMS manuals. So, I have two questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(a) Have I totally got the wrong end of the stick here, or is this really true and it's supposed to be like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(b) Is there a way of doing 'set message /facility' using a system service? If so, my detached processes could do that immediately after they start up, to make sure there will be a traceback if they crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is OpenVMS 8.3-1H1 running on an rx2660, using the HP C compiler version 7.1. The detached processes are created by a command file using loginout.exe, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ run sys$system:loginout.exe -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/detach -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/page_file=500000 -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/process_name=xyz -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/priority=nn -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/input=runxyz.com -&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/output=xyz.out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'runxyz.com' looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ define /table=lnm$process_directory lnm$temporary_mailbox lnm$group&lt;BR /&gt;$ run xyz.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance... Max.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 10:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362139#M36493</guid>
      <dc:creator>Max_Jarvis</dc:creator>
      <dc:date>2011-10-14T10:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362205#M36494</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;(a) Have I totally got the wrong end of the stick here, or is this really true and it's supposed to be like this?&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;I can't reproduce this. What I get is a trace back which is started with "&lt;FONT face="courier new,courier"&gt;%F-TRACEBACK, symbolic stack dump follows&lt;/FONT&gt;". And that makes some sense.&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;(b) Is there a way of doing 'set message /facility' using a system service? If so, my detached processes could do that immediately after they start up, to make sure there will be a traceback if they crash.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;Can't you add a "$&amp;nbsp;&lt;FONT face="courier new,courier"&gt;set message/facility&lt;/FONT&gt;" to the runxyz.com?&lt;/DIV&gt;&lt;DIV&gt;What kind of problem do you have, ACCVIO, QUOTA, ... ? The traceback code is (image/merge) activated when it is needed. If you have a resource problem in the detached process, it may not be possible to load and/or execute that code.&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362205#M36494</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-10-14T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362239#M36495</link>
      <description>&lt;P&gt;Yes, I've already tried putting 'set message /facility' in runxyz.com, and that does fix the problem. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been playing round with it a bit more and it seems that for a detached process, setting any one of the message parameters /facility, /text, /identification and /severity ensures you get a traceback on a crash. But if all four of them are off, you get no traceback. This looks as if it could be deliberate, but doesn't seem to be mentioned in the manuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've noticed that Eli M Barasch posted a similar problem (lack of traceback when detached processes crash) in September 2010, and nobody seems to have mentioned 'set message' in their reply. Maybe this was his problem too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for my crashes: I don't have any crashes to worry about at the moment. This is about ensuring that I will get a traceback if crashes occur in the future. I'm testing with a deliberate ACCVIO crash caused by this code in a detached process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char *p = "JJJ";&lt;/P&gt;&lt;P&gt;*p = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help...&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362239#M36495</guid>
      <dc:creator>Max_Jarvis</dc:creator>
      <dc:date>2011-10-14T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362253#M36496</link>
      <description>&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by default, all the message parameters are enabled, aren't they ? Why not in your process ? Do you have some login procedure, which turns them off ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Volker.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:27:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362253#M36496</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2011-10-14T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362267#M36497</link>
      <description>Yes, I have turned off these message parameters to stop the flood of unwanted messages such as 'PID of created process is 1234'.</description>
      <pubDate>Fri, 14 Oct 2011 12:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362267#M36497</guid>
      <dc:creator>Max_Jarvis</dc:creator>
      <dc:date>2011-10-14T12:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362275#M36498</link>
      <description>&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that may explain, why Hartmut couldn't reproduce your problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may therefore be a behaviour triggered by an unusual local system configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Volker.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:37:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362275#M36498</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2011-10-14T12:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362279#M36499</link>
      <description>&lt;P&gt;Add the /DUMP qualifier to the RUN command (for non-LOGINOUT processes) and add the /DUMP switch onto the individual image invocations when started at DCL), and catch your errors using the process dump mechanisms and the OpenVMS debugger. &amp;nbsp;(qv: ANALYZE /PROCESS_DUMP, etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or better, add your own signal handler and your own process-dump handing code into the application, and log the stuff that matters to your application, should it tip over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Not sure where a reply I'd thought was posted here went, either.)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:40:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362279#M36499</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-10-14T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362289#M36500</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;But if all four of them are off, you get no traceback. This looks as if it could be deliberate, but doesn't seem to be mentioned in the manuals.&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;This may be caused by the implementation. Traceback output may be written with $putmsg (or an action routine called from $putmsg). And if there is nothing to format, nothing will be shown. This is the same in interactive and detached processes.&lt;/DIV&gt;&lt;DIV&gt;For analyzing process dump files, you may want to have debug symbols in a DSF. Have a look at the linker manual.&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362289#M36500</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-10-14T12:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS stack traceback</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362473#M36501</link>
      <description>&lt;P&gt;Yes, I think you may be right. In any case I now know enough to do what I need... thanks to all for your help... Max.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-stack-traceback/m-p/5362473#M36501</guid>
      <dc:creator>Max_Jarvis</dc:creator>
      <dc:date>2011-10-14T16:22:19Z</dc:date>
    </item>
  </channel>
</rss>

