- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bus error due to unaligned data
Operating System - HP-UX
1752801
Members
5618
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2010 06:49 AM
07-19-2010 06:49 AM
bus error due to unaligned data
I am porting our application to 64-bit on a HP-ia64 11.23 machine.
My application crashes with a bus error due to unaligned data access problem.
I googled it out and was asked to use the +ubytes compiler option. aCC does not recognize it as a valid option.
The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned
// Undefined behavior
// Likely Abort unless compiled with +u1
// The address of a reference (*ip) is
// assigned to an int pointer.
I recompiled my application using the +u1 flag but it dosent seem to be working. My application still crashes with a bus error.
Which flag should I use.
Any help is appreciated.
Thanks and Regards
Sruthi
My application crashes with a bus error due to unaligned data access problem.
I googled it out and was asked to use the +ubytes compiler option. aCC does not recognize it as a valid option.
The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned
// Undefined behavior
// Likely Abort unless compiled with +u1
// The address of a reference (*ip) is
// assigned to an int pointer.
I recompiled my application using the +u1 flag but it dosent seem to be working. My application still crashes with a bus error.
Which flag should I use.
Any help is appreciated.
Thanks and Regards
Sruthi
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2010 11:25 AM
07-19-2010 11:25 AM
Re: bus error due to unaligned data
>+ubytes compiler option. aCC does not recognize it as a valid option.
"bytes" above is a meta symbol for the alignment value, 1, 2, 4.
If you use +u1, that doesn't cover code compiled without that option. You need to call allow_unaligned_data_access:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/pragmas.htm#pragma-pack-ex4
>The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned
Please include your stack trace.
"bytes" above is a meta symbol for the alignment value, 1, 2, 4.
If you use +u1, that doesn't cover code compiled without that option. You need to call allow_unaligned_data_access:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/pragmas.htm#pragma-pack-ex4
>The link given in the stack trace pointed to a document where in the comments section +u1 flag is mentioned
Please include your stack trace.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP