Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: unaligned traps question
Date: Mon, 14 Oct 2002 19:38:03 -0600	[thread overview]
Message-ID: <20021014193803.A16602@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <01da01c273e4$d5c57320$35de2b09@Viswanadha>; from ram@jtcsv.com on Mon, Oct 14, 2002 at 05:50:18PM -0700

On Mon, Oct 14, 2002 at 05:50:18PM -0700, Ram Viswanadha wrote:
> I upgraded to RH 7.2 (stock kernel and GCC) and now I am not seeing any
> unaligned trap messages.
> I read Rich Payne's mails in the archives and they suggest that the problems
> are in users code not in the kernel.

Correct.

> So there are two possibilities, since my code has not changed:
> a) The kernel has become more lenient and is not producing any unaligned
> trap messages.
> b) GCC had a bug which produced unaligned data which has hence been fixed.

Most likely seems to be the third option - printk in a kernel code which
was producing these messages was turned off. :-)

Unless you can show otherwise assume that "unaligned access" means that
your code has bugs.  Even if your kernel is silent about these, which
does not mean at all that it is more "lenient", they are still bugs.

On many ocasions "unaligned access" messages are side-effects, not
causes, of killer bugs.  Other times your kernel will trap, do a fixup,
and move along but you will get a performance hit.  If this happens
once per some infrequently used program this is not a big deal.
If this is in some widely used library then this may be significant.

  Michal




  reply	other threads:[~2002-10-15  1:38 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15  0:50 unaligned traps question Ram Viswanadha
2002-10-15  1:38 ` Michal Jaegermann [this message]
2002-10-15  2:03 ` Uncle George
2002-10-15 15:39   ` George France
2002-10-15 16:46     ` Michal Jaegermann
2002-10-15 18:24       ` alvin
2002-10-15 19:33         ` George France
2002-10-15 19:40         ` Falk Hueffner
     [not found]         ` <3DAC6EF2.BC962839@voicenet.com>
2002-10-16 18:15           ` alvin
2002-10-16 19:18             ` George France
2002-10-16 19:45               ` Falk Hueffner
2002-10-16 20:08                 ` George France
2002-10-17 18:37                   ` Falk Hueffner
2002-10-16 20:23             ` Michal Jaegermann
2002-10-16 21:30               ` alvin
2002-10-17  1:47             ` Uncle George
2002-10-15 18:08     ` Uncle George
2002-10-15 19:29       ` George France
2002-10-15 20:10         ` Uncle George
2002-10-15 20:46           ` George France
2002-10-15 15:33 ` George France
2002-10-17 22:17   ` Ram Viswanadha
2002-10-18 15:36     ` Michal Jaegermann
2002-10-18 17:17       ` Ram Viswanadha
2002-10-18 18:47         ` Michal Jaegermann
     [not found] <673E0A4C-E1DF-11D6-AC80-000393768D2C@mcgillsociety.org>
2002-10-17 15:50 ` George France
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