<?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 How do I find fault location in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055613#M742743</link>
    <description>I am trying to do some enhanced error reporting when exceptions occur in my applications running on PA-RISC 11.00 and 11.11. I need the address of the instruction that caused the SEGV, BUS, etc. error. &lt;BR /&gt;&lt;BR /&gt;In my sigaction handler, I get a pointer to a siginfo_t which has the address being referenced, but not the location of the referencing instruction. I also have the pointer to the saved context, which I'm sure has the desired information, or at least a roadmap to where the information is hidden, but I can't seem to find it.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help on this.</description>
    <pubDate>Thu, 28 Jun 2007 23:36:56 GMT</pubDate>
    <dc:creator>Tony Abo</dc:creator>
    <dc:date>2007-06-28T23:36:56Z</dc:date>
    <item>
      <title>How do I find fault location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055613#M742743</link>
      <description>I am trying to do some enhanced error reporting when exceptions occur in my applications running on PA-RISC 11.00 and 11.11. I need the address of the instruction that caused the SEGV, BUS, etc. error. &lt;BR /&gt;&lt;BR /&gt;In my sigaction handler, I get a pointer to a siginfo_t which has the address being referenced, but not the location of the referencing instruction. I also have the pointer to the saved context, which I'm sure has the desired information, or at least a roadmap to where the information is hidden, but I can't seem to find it.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help on this.</description>
      <pubDate>Thu, 28 Jun 2007 23:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055613#M742743</guid>
      <dc:creator>Tony Abo</dc:creator>
      <dc:date>2007-06-28T23:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find fault location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055614#M742744</link>
      <description>&lt;!--!*#--&gt;You could just call U_STACK_TRACE to get the complete stack trace:&lt;BR /&gt;extern "C" void U_STACK_TRACE(void);&lt;BR /&gt;&lt;BR /&gt;This is in libcl on PA and libunwind on IPF.&lt;BR /&gt;&lt;BR /&gt;The address of the instruction is the PC of course.&lt;BR /&gt;&lt;BR /&gt;The fields in question may look something like this:&lt;BR /&gt;if ((pinfo.hw_regs.ss_flags &amp;amp; (SS_WIDEREGS | SS_NARROWISINVALID)) ==&lt;BR /&gt;    (SS_WIDEREGS | SS_NARROWISINVALID)) {&lt;BR /&gt;   pco = pinfo.hw_regs.ss_wide.ss_32.ss_pcoq_head_lo;&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;   pco = pinfo.hw_regs.ss_narrow.ss_pcoq_head;&lt;BR /&gt;}</description>
      <pubDate>Fri, 29 Jun 2007 00:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055614#M742744</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-29T00:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find fault location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055615#M742745</link>
      <description>Ok, this works:&lt;BR /&gt;GetSSReg( &amp;amp;((ucontext_t *) pContext)-&amp;gt;uc_mcontext, ss_pcoq_head);&lt;BR /&gt;&lt;BR /&gt;Thanks for the tips</description>
      <pubDate>Thu, 05 Jul 2007 03:06:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055615#M742745</guid>
      <dc:creator>Tony Abo</dc:creator>
      <dc:date>2007-07-05T03:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find fault location</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055616#M742746</link>
      <description>GetSSReg( &amp;amp;((ucontext_t *) pContext)-&amp;gt;uc_mcontext, ss_pcoq_head);</description>
      <pubDate>Thu, 05 Jul 2007 03:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-find-fault-location/m-p/5055616#M742746</guid>
      <dc:creator>Tony Abo</dc:creator>
      <dc:date>2007-07-05T03:07:39Z</dc:date>
    </item>
  </channel>
</rss>

