HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SIGBUS - BUS_ADRALN
Operating System - HP-UX
1832915
Members
2862
Online
110048
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
Forums
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
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
08-20-2007 11:50 AM
08-20-2007 11:50 AM
SIGBUS - BUS_ADRALN
I'm building a DLL for HPUX. I've linked in -lunalign and call allow_unaligned_data_access() from one of the global constructors in the DLL.
Now this arrangment worked fine till now. Recently I recompiled the DLL with "-mt" as a first step towards making the DLL thread safe. For any application that I'm building using this dll, I do link in the pthreads library ahead of all others like the recommendation here: http://docs.hp.com/en/1896/pthreads.html.
However now I get these BUS_ADRALN. I tried recompiling the DLL with +u1 option to get 1 byte alignment (I know its a performance issue, I'm just trying different things out) - but that now causes SIGMAPERR SIGSEGV errors.
Kind of stumped now without a clue about what the issue could be. Any pointers would be appreciated. Thanks !
Now this arrangment worked fine till now. Recently I recompiled the DLL with "-mt" as a first step towards making the DLL thread safe. For any application that I'm building using this dll, I do link in the pthreads library ahead of all others like the recommendation here: http://docs.hp.com/en/1896/pthreads.html.
However now I get these BUS_ADRALN. I tried recompiling the DLL with +u1 option to get 1 byte alignment (I know its a performance issue, I'm just trying different things out) - but that now causes SIGMAPERR SIGSEGV errors.
Kind of stumped now without a clue about what the issue could be. Any pointers would be appreciated. Thanks !
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 02:53 PM
08-20-2007 02:53 PM
Re: SIGBUS - BUS_ADRALN
The implementation on IPF uses the hardware and this is per thread. And is 100s of times faster than PA.
The implementation on PA uses signals and is per process.
You'll need to call allow_unaligned_data_access in each thread.
There is a solution that uses _pthread_callback_np. Search DSPP or see:
http://h21007.www2.hp.com/portal/download/mailinglist_archives/cxx-dev/cxx-dev.0701/0018.html
The implementation on PA uses signals and is per process.
You'll need to call allow_unaligned_data_access in each thread.
There is a solution that uses _pthread_callback_np. Search DSPP or see:
http://h21007.www2.hp.com/portal/download/mailinglist_archives/cxx-dev/cxx-dev.0701/0018.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 05:41 AM
08-21-2007 05:41 AM
Re: SIGBUS - BUS_ADRALN
-- Just to clarify I am calling allow_unaligned_data_access from any thread that will be created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 02:56 PM
08-21-2007 02:56 PM
Re: SIGBUS - BUS_ADRALN
>Just to clarify I am calling allow_unaligned_data_access from any thread that will be created
That should fix the problem. You also need to do this in the main thread.
>call allow_unaligned_data_access() from one of the global constructors in the shlib.
This won't do it for each thread. You must do it in each function that is passed to pthread_create.
That should fix the problem. You also need to do this in the main thread.
>call allow_unaligned_data_access() from one of the global constructors in the shlib.
This won't do it for each thread. You must do it in each function that is passed to pthread_create.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP