Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Ethan Eldridge <eceldridge@hotmail.com>
Subject: Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
Date: 2000/06/17	[thread overview]
Message-ID: <394BA0EB.AF831D6F@hotmail.com> (raw)
In-Reply-To: sfpnueqriun72@corp.supernews.com

It seems that on Digital's Tru64 Unix there is a little utility called "uac" to
hide these messages.  Anything similar exist for Linux?  I have Debian v2.1 on
a jensen and get the "unaligned trap" message for diald--

diald(116): unaligned trap at 0000000120013568: 000000012011d9b6 28 16

Thanks!
Ethan

JJ wrote:

> Almost....
>     On the Alpha, the unaligned trap is a "informational message" to let you
> know that data was accessed which was on a byte boundary instead of a word
> boundary. The Alpha has to manipulate "byte" boundary data using firmware
> routines which slow it down.  messages are a pain but do not indicate an
> error.
>
> Most of those messages have been cleaned up in RH6.1 & 6.2.   With 5.2 you
> should install the errata's and updated for 2.2 kernel use and most all of
> those messages will go away.
>
> JJ
> JJ
>
> Tony Hammitt <thammitt@kc.rr.com> wrote in message
> news:38FCC042.AB9972EB@kc.rr.com...
> > "m.toonen" wrote:
> > >
> > > My alpha computer XL266-EV45  is running RedHat 5.2
> > > With the egcs compiler version 2.91
> > > and a Matrox Millenium video card.
> > >
> > > Who knows why linux sometimes reports the message:
> > > unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
> > >
> > > And if you know, what should be done to avoid them.
> >
> > General info:
> >
> > Unaligned traps happen when the data in memory is arranged
> > for one type of architecture (like x86) and is ported to
> > some other architecture with different memory arrangement
> > rules (like Alpha).
> >
> > An example:  On intel 'long' data type is 4 bytes, on Alpha,
> > 'long' is 8 bytes.  Alphas expect that all long's will be
> > found at memory addresses that are a multiple of 8.  Since
> > 8 is the size of pointers and longs on Alphas, all return
> > values (addresses) from memory allocators are multiples of
> > at least 8, but some older programs just assumed that their
> > data would be aligned for 4 byte pointers.
> >
> > So, when a 'long' is located at a multiple of 4, and not 8
> > bytes in memory, the kernel notices this and complains by
> > issuing the unaligned trap.  This does not really affect
> > the behavior of the program, it just makes it run lots
> > slower.  It can indicate serious problems with the program
> > if the misaligned data is a pointer and half of it is being
> > overwritten with other data, which can happen with some
> > very badly written programs.  Don't bet on it, I really
> > doubt that anything that bad would even run long enough to
> > be released.
> >
> > The solution is typically to fix and recompile the
> > applications with no assumptions about the size of data
> > types.  This can be a bit of work.  I'd probably recommend
> > that you upgrade to the latest release of RedHat, since
> > other people have probably fixed the programs by now.
> >
> > Which application is giving the unaligned trap?  I think
> > that they can be logged to the system log in
> > /var/log/messages, which should report what program caused
> > the error.
> >
> > Best of luck getting this fixed.  These types of errors are
> > precisely why I have an Alpha, an intel and a PPC.  If I get
> > the same results on all these, I'm pretty sure I don't have
> > any glaring bugs...
> >
> > Regards,
> >
> > Tony Hammitt






  parent reply	other threads:[~2000-06-17  4:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-18  4:00 unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X m.toonen
2000-04-18  4:00 ` Tony Hammitt
2000-04-18  4:00   ` JJ
2000-06-17  4:00     ` Ethan Eldridge
2000-06-17  4:00     ` Ethan Eldridge [this message]
2000-06-17  4:00       ` Michal Jaegermann
2000-06-18  4:00         ` Jeff Sturm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox