Operating System - Linux
1753325 Members
4933 Online
108792 Solutions
New Discussion юеВ

Alignment problems between PARISC and Itanium

 
SOLVED
Go to solution
Manish_33
Advisor

Alignment problems between PARISC and Itanium

Hello all,
I am porting my application from PARISC to Itanium......my application runs fine on Itanium but sometimes crashes with the following entry in core.

Program terminated with signal 10, Bus error.
BUS_ADRALN - Invalid address alignment

Are there any alignment issues between the two architectures for 32 bit applications???.......Should i use HP_ALIGN flag.....if yes then should it be HPUX_NORMAL ??.....Are there any special compiler flags to handle this??

 

P.S. This thread has been moved from HP-UX Technical Documentation to HP-UX > languages. -HP Forum Moderator

2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: Alignment problems between PARISC and Itanium

Shalom,

Most of the resources are aimed at getting PA-RISC stuff to work on Itanium, the opposite of what you are doing.

Still, there may be some help for you in these links.

http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fh21007.www2.hp.com%2Fdspp%2Ftech%2Ftech_TechSingleTipDetailPage_IDX%2F1%2C2366%2C8685%2C00.html&ei=wzCNRPvRCKnAQr-b_YkN&sig2=ScWrrF-p3L_2ToL8GWO7FQ

http://www.google.com/url?sa=t&ct=res&cd=4&url=http%3A%2F%2Fdevresource.hp.com%2Fdrc%2FSTK%2FPA_Integrity.jsp&ei=wzCNRPvRCKnAQr-b_YkN&sig2=-qq3xik-3RLFapDTcMPLFQ

http://www.google.com/url?sa=t&ct=res&cd=5&url=http%3A%2F%2Fdevresource.hp.com%2Fdrc%2Ftopics%2Fhpux_hpux.jsp&ei=wzCNRPvRCKnAQr-b_YkN&sig2=RDeJkpDqPpfmPoTYGlSltA

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Alignment problems between PARISC and Itanium

I would be more inclined to think there is a bug in your code that just happens to work by accident on the Itanium box but crashes occasionally on the PA-RISC box. Data alignment crashes would be much more predictable. Your problem could be something as simple as an uninitialized variable. You should analyze your core dump with a debugger and do a stack trace. Any other approach is simply using "The Force".
If it ain't broke, I can fix that.