<?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 bus error due to unaligned data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bus-error-due-to-unaligned-data/m-p/4663054#M677537</link>
    <description>I am porting our application to 64-bit on a HP-ia64 11.23 machine. &lt;BR /&gt;&lt;BR /&gt;My application crashes with a bus error due to unaligned data access problem.&lt;BR /&gt;I googled it out and was asked to use the +ubytes compiler option. aCC does not recognize it as a valid option.&lt;BR /&gt;&lt;BR /&gt;The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned&lt;BR /&gt;// Undefined behavior&lt;BR /&gt;// Likely Abort unless compiled with +u1&lt;BR /&gt;// The address of a reference (*ip) is&lt;BR /&gt;// assigned to an int pointer.&lt;BR /&gt;&lt;BR /&gt;I recompiled my application using the +u1 flag but it dosent seem to be working. My application still crashes with a bus error.&lt;BR /&gt;Which flag should I use.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Sruthi&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Jul 2010 13:49:00 GMT</pubDate>
    <dc:creator>Sruthi P</dc:creator>
    <dc:date>2010-07-19T13:49:00Z</dc:date>
    <item>
      <title>bus error due to unaligned data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bus-error-due-to-unaligned-data/m-p/4663054#M677537</link>
      <description>I am porting our application to 64-bit on a HP-ia64 11.23 machine. &lt;BR /&gt;&lt;BR /&gt;My application crashes with a bus error due to unaligned data access problem.&lt;BR /&gt;I googled it out and was asked to use the +ubytes compiler option. aCC does not recognize it as a valid option.&lt;BR /&gt;&lt;BR /&gt;The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned&lt;BR /&gt;// Undefined behavior&lt;BR /&gt;// Likely Abort unless compiled with +u1&lt;BR /&gt;// The address of a reference (*ip) is&lt;BR /&gt;// assigned to an int pointer.&lt;BR /&gt;&lt;BR /&gt;I recompiled my application using the +u1 flag but it dosent seem to be working. My application still crashes with a bus error.&lt;BR /&gt;Which flag should I use.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Sruthi&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2010 13:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bus-error-due-to-unaligned-data/m-p/4663054#M677537</guid>
      <dc:creator>Sruthi P</dc:creator>
      <dc:date>2010-07-19T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: bus error due to unaligned data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bus-error-due-to-unaligned-data/m-p/4663055#M677538</link>
      <description>&amp;gt;+ubytes compiler option. aCC does not recognize it as a valid option.&lt;BR /&gt;&lt;BR /&gt;"bytes" above is a meta symbol for the alignment value, 1, 2, 4.&lt;BR /&gt;&lt;BR /&gt;If you use +u1, that doesn't cover code compiled without that option.  You need to call allow_unaligned_data_access:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/pragmas.htm#pragma-pack-ex4" target="_blank"&gt;http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/pragmas.htm#pragma-pack-ex4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned&lt;BR /&gt;&lt;BR /&gt;Please include your stack trace.</description>
      <pubDate>Mon, 19 Jul 2010 18:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bus-error-due-to-unaligned-data/m-p/4663055#M677538</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-07-19T18:25:44Z</dc:date>
    </item>
  </channel>
</rss>

