Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* How to trace where "unaligned access" is happening?
@ 1998-11-05  5:00 Paul Slootman
  1998-11-05  5:00 ` Greg Lindahl
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Slootman @ 1998-11-05  5:00 UTC (permalink / raw)


I have a couple of programs which repeatably generate "unaligned access
traps" in the kernel. I know what type of thing causes this, so I'd like
to track down where it happens to be able to fix it.

I once saw a message somewhere about using gdb on a program compiled
with -g and the address the kernel reports to find the source location
where the trap is caused; however, I can't find that message anywhere (I
was sure I had saved it :-( ).  The gdb docs are a pain; I couldn't find
it there.

Can someone please enlighten me? Thanks in advance.

Paul Slootman
-- 
home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org
http://www.wurtel.demon.nl | Murphy Software,   Enschede,   the Netherlands



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to trace where "unaligned access" is happening?
  1998-11-05  5:00 How to trace where "unaligned access" is happening? Paul Slootman
@ 1998-11-05  5:00 ` Greg Lindahl
  1998-11-10  5:00   ` Paul Slootman
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Lindahl @ 1998-11-05  5:00 UTC (permalink / raw)


paul@wau.mis.ah.nl (Paul Slootman) writes:

> I have a couple of programs which repeatably generate "unaligned access
> traps" in the kernel. I know what type of thing causes this, so I'd like
> to track down where it happens to be able to fix it.

Did you try looking in the Alpha Linux FAQ?

-- g



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to trace where "unaligned access" is happening?
  1998-11-05  5:00 ` Greg Lindahl
@ 1998-11-10  5:00   ` Paul Slootman
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Slootman @ 1998-11-10  5:00 UTC (permalink / raw)


Greg Lindahl <lindahl@pbm.com> wrote:
>paul@wau.mis.ah.nl (Paul Slootman) writes:
>
>> I have a couple of programs which repeatably generate "unaligned access
>> traps" in the kernel. I know what type of thing causes this, so I'd like
>> to track down where it happens to be able to fix it.
>
>Did you try looking in the Alpha Linux FAQ?

Yes, but no go.

Anyway, I've discovered it now. FYI:

If you get a message like so:

    identd(15285): unaligned trap at 0000000120024a9c: 000000011ffffa34 2d 10

you fire up gdb on identd (which must be linked with -g, and preferably
statically with the debugging version of libc) and type:

    info line *0x0000000120024a9c

which tells you:

Line 888 of "vfscanf.c" starts at address 0x120024a40 <_IO_vfscanf+10400>
   and ends at 0x120024aa4 <_IO_vfscanf+10500>.

So, the problem is at line 888 of vfscanf.c.


Paul Slootman
-- 
home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org
http://www.wurtel.demon.nl | Murphy Software,   Enschede,   the Netherlands



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-11-10  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-05  5:00 How to trace where "unaligned access" is happening? Paul Slootman
1998-11-05  5:00 ` Greg Lindahl
1998-11-10  5:00   ` Paul Slootman

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