public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sean Hunter <sean@dev.sportingbet.com>
To: Carlos Carvalho <carlos@fisica.ufpr.br>
Cc: jbglaw@lug-owl.de, linux-kernel@vger.kernel.org,
	axp-hardware@talisman.alphalinux.org
Subject: Re: Alpha: bad unaligned access handling
Date: Wed, 14 Feb 2001 17:46:56 +0000	[thread overview]
Message-ID: <20010214174656.H11048@dev.sportingbet.com> (raw)
In-Reply-To: <20010214154808.A15974@lug-owl.de> <14986.48181.55212.358637@hoggar.fisica.ufpr.br> <20010214172607.E11048@dev.sportingbet.com> <14986.49817.44381.454285@hoggar.fisica.ufpr.br>
In-Reply-To: <14986.49817.44381.454285@hoggar.fisica.ufpr.br>; from carlos@fisica.ufpr.br on Wed, Feb 14, 2001 at 03:38:33PM -0200

On Wed, Feb 14, 2001 at 03:38:33PM -0200, Carlos Carvalho wrote:
> Sean Hunter (sean@dev.sportingbet.com) wrote on 14 February 2001 17:26:
>  >This is an application problem, not a kernel one.  You need to upgrade your
>  >netkit.
> 
> Yes, I was quite confident of this. However, unaligned traps are a
> frequent problem with alphas. For a looong time we had zsh produce
> lots of it, to the point of making it unusable. Strangely, the problem
> disappeared without changing anything in zsh. It was either a library
> or kernel problem.

Definitely library, I'd think.

> 
>  >P.S. I wrote a small wrapper to aid in the debugging of unaligned
>  >traps, which I'll send to anyone who's interested.
> 
> I'd like it!
> 

OK, my alpha is a sick bunny at the moment, so I'll have to wait until I get
home (so I can see why I can't ssh to it).  What the wrapper does is set some
settings so your program gets sigbus when it generates an unaligned trap, and
then runs your program in gdb so gdb helpfully stops at the line which
generated the trap.  It goes without saying you need to build the program in
question with debugging symbols so that you see the code.

You then need to fix the unaligned access.  This sometimes requires real alpha
guruhood (Which I do not possess, but Richard Henderson or Michal Jagerman do,
if you need advice), but sometimes simply requires adding __attribute__
((__unaligned__)) to a struct member in a c file.

Sean


      reply	other threads:[~2001-02-14 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-14 14:48 Alpha: bad unaligned access handling Jan-Benedict Glaw
2001-02-14 17:11 ` Carlos Carvalho
2001-02-14 17:26   ` Sean Hunter
2001-02-14 17:38     ` Carlos Carvalho
2001-02-14 17:46       ` Sean Hunter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010214174656.H11048@dev.sportingbet.com \
    --to=sean@dev.sportingbet.com \
    --cc=axp-hardware@talisman.alphalinux.org \
    --cc=carlos@fisica.ufpr.br \
    --cc=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox