<?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 structures behaviour 32 bit versus 64 bit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773295#M722334</link>
    <description>assignment of structure members works on 32 bit, but gives a core dump on 64 bit.&lt;BR /&gt;&lt;BR /&gt;I compile&lt;BR /&gt;&lt;BR /&gt;cc +DD64 structest.c&lt;BR /&gt;&lt;BR /&gt;When I execute a.out. It gives a core dump when I assign p-&amp;gt;next (or any other member)&lt;BR /&gt;&lt;BR /&gt;What is causing this?&lt;BR /&gt;&lt;BR /&gt;I attached the source code.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Jul 2002 07:57:39 GMT</pubDate>
    <dc:creator>Bert Verhoeven</dc:creator>
    <dc:date>2002-07-26T07:57:39Z</dc:date>
    <item>
      <title>structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773295#M722334</link>
      <description>assignment of structure members works on 32 bit, but gives a core dump on 64 bit.&lt;BR /&gt;&lt;BR /&gt;I compile&lt;BR /&gt;&lt;BR /&gt;cc +DD64 structest.c&lt;BR /&gt;&lt;BR /&gt;When I execute a.out. It gives a core dump when I assign p-&amp;gt;next (or any other member)&lt;BR /&gt;&lt;BR /&gt;What is causing this?&lt;BR /&gt;&lt;BR /&gt;I attached the source code.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 07:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773295#M722334</guid>
      <dc:creator>Bert Verhoeven</dc:creator>
      <dc:date>2002-07-26T07:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773296#M722335</link>
      <description>Hi Bert&lt;BR /&gt;&lt;BR /&gt;Look at the core dump:-&lt;BR /&gt;&lt;BR /&gt;Down load and install wdb:- &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hp.com/go/wdb" target="_blank"&gt;http://hp.com/go/wdb&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;fire up /opt/langtools/bin/gdb -c &lt;CORE file=""&gt;&lt;/CORE&gt;&lt;BR /&gt;"bt" will give a stack trace:- &lt;BR /&gt;&lt;BR /&gt;(gdb) bt &lt;BR /&gt;#0 0xc01ecb88 in ?? &lt;BR /&gt;#1 0xc01ecb68 in ?? () &lt;BR /&gt;#2 0xc01ecb68 in ?? () &lt;BR /&gt;&lt;BR /&gt;or use "where" &lt;BR /&gt;&lt;BR /&gt;There are two stored registers that will tell you the address being &lt;BR /&gt;accessed &lt;BR /&gt;and instruction the process was executing when it failed. In gdb or at &lt;BR /&gt;the &lt;BR /&gt;"(gdb)" command prompt in wdb, try: &lt;BR /&gt;&lt;BR /&gt;(gdb) p /x $ior &lt;BR /&gt;&lt;BR /&gt;This prints the "Interrupt Offset Register" that is the address the &lt;BR /&gt;program was trying to access when it failed. &lt;BR /&gt;&lt;BR /&gt;(gdb) p /x $iir &lt;BR /&gt;&lt;BR /&gt;This is the "Interrupt Instruction Register" that shows the machine instruction that caused the failure. To decode this start up a separate "adb" (adb) should already be installed ??? note it has no prompt and the $ prefixes each command - $q = quit) session and enter the value from the above command and follow it &lt;BR /&gt;with "=i". For example, &lt;BR /&gt;&lt;BR /&gt;(gdb) p /x $iir &lt;BR /&gt;$2 = 0xfe01280 &lt;BR /&gt;&lt;BR /&gt;$ adb &lt;BR /&gt;0xfe01280=i &lt;BR /&gt;LDW 254,0(r31) &lt;BR /&gt;This is a Load word command being executed. See instructions set for PA Risc. &lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;&lt;BR /&gt;Paula &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 08:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773296#M722335</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-07-26T08:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773297#M722336</link>
      <description>Hi Also&lt;BR /&gt;&lt;BR /&gt;Try a :-&lt;BR /&gt;&lt;BR /&gt;what core&lt;BR /&gt;strings core&lt;BR /&gt;file core&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 26 Jul 2002 08:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773297#M722336</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-07-26T08:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773298#M722337</link>
      <description>What do I have to change in my source code to make this work on 64 bit?  Is there something &lt;BR /&gt;wrong with declaration/allocation?</description>
      <pubDate>Fri, 26 Jul 2002 08:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773298#M722337</guid>
      <dc:creator>Bert Verhoeven</dc:creator>
      <dc:date>2002-07-26T08:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773299#M722338</link>
      <description>Bert&lt;BR /&gt;&lt;BR /&gt;By looking at the core dump file it will/should indicate where in your code it is falling over and causing the dump.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 26 Jul 2002 08:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773299#M722338</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-07-26T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: structures behaviour 32 bit versus 64 bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773300#M722339</link>
      <description>Yes, It is failing over the assignment. But why?&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2002 08:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/structures-behaviour-32-bit-versus-64-bit/m-p/2773300#M722339</guid>
      <dc:creator>Bert Verhoeven</dc:creator>
      <dc:date>2002-07-26T08:47:40Z</dc:date>
    </item>
  </channel>
</rss>

