* unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
@ 2000-04-18 4:00 m.toonen
2000-04-18 4:00 ` Tony Hammitt
0 siblings, 1 reply; 7+ messages in thread
From: m.toonen @ 2000-04-18 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
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
0 siblings, 1 reply; 7+ messages in thread
From: Tony Hammitt @ 2000-04-18 4:00 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
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
0 siblings, 2 replies; 7+ messages in thread
From: JJ @ 2000-04-18 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
2000-04-18 4:00 ` JJ
2000-06-17 4:00 ` Ethan Eldridge
@ 2000-06-17 4:00 ` Ethan Eldridge
2000-06-17 4:00 ` Michal Jaegermann
1 sibling, 1 reply; 7+ messages in thread
From: Ethan Eldridge @ 2000-06-17 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
2000-06-17 4:00 ` Ethan Eldridge
@ 2000-06-17 4:00 ` Michal Jaegermann
2000-06-18 4:00 ` Jeff Sturm
0 siblings, 1 reply; 7+ messages in thread
From: Michal Jaegermann @ 2000-06-17 4:00 UTC (permalink / raw)
Ethan Eldridge (eceldridge@hotmail.com) wrote:
: It seems that on Digital's Tru64 Unix there is a little utility called "uac" to
: hide these messages. Anything similar exist for Linux?
Sure! Comment out this 'printk' in sources and recompile your kernel. :-)
: 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
It is much more productive to fix diald and contribute back patches.
These messages exist in Linux kernel mostly for their "nag value"
and, as a side effect, they helped to catch some real applications
bugs (not mentioning quality issues).
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
2000-04-18 4:00 ` JJ
@ 2000-06-17 4:00 ` Ethan Eldridge
2000-06-17 4:00 ` Ethan Eldridge
1 sibling, 0 replies; 7+ messages in thread
From: Ethan Eldridge @ 2000-06-17 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unalligned trap at XXXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXX XX X
2000-06-17 4:00 ` Michal Jaegermann
@ 2000-06-18 4:00 ` Jeff Sturm
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Sturm @ 2000-06-18 4:00 UTC (permalink / raw)
Michal Jaegermann wrote:
> : diald(116): unaligned trap at 0000000120013568: 000000012011d9b6 28 16
>
> It is much more productive to fix diald and contribute back patches.
> These messages exist in Linux kernel mostly for their "nag value"
> and, as a side effect, they helped to catch some real applications
> bugs (not mentioning quality issues).
Definitely, the code should be fixed, especially for
performance-critical apps. You may even be doing your x86 friends a
favor, since they too are affected by unaligned accesses... they just
don't see a message.
--
Jeff Sturm
jeff.sturm@appnet.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2000-06-18 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2000-06-17 4:00 ` Michal Jaegermann
2000-06-18 4:00 ` Jeff Sturm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox