linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net
Subject: Re: 2.6.15-rc5-mm2: ehci_hcd crashes on load sometimes
Date: Mon, 12 Dec 2005 13:47:15 -0800	[thread overview]
Message-ID: <20051212134715.2f74bb72.akpm@osdl.org> (raw)
In-Reply-To: <200512122239.20264.rjw@sisk.pl>

"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> On Monday, 12 December 2005 22:09, Andrew Morton wrote:
> > "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> > >
> > >  > It's best to actually send a copy of line 620 - kernels vary a lot, and
> > >  > many developers won't have that particualr -mm tree handy.
> > >  > 
> > >  > The way I normally do this is to do `gdb vmlinux' and then `l
> > >  > *0xffffffff880ad9d0'.
> > > 
> > >  Does it work for modules too?
> > 
> > Ah.  There are certainly ways of doing this - see the kgdb documentation. 
> > Or you can work out the module load address, gdb the module and do the
> > appropriate arithmetic I guess.
> > 
> > Generally I just statically link anything which I want to play with.
> 
> Still, the oops is from a module.  I could link it statically for debugging,
> but then the address would be different to the one in the oops.
> 
> Anyway, please tell me if my reasoning was correct: I thought I couldn't
> figure it out based on the absolute address, but I could use the
> displacements.  Namely, it followed from the oops that the problem
> occured at the address {:ehci_hcd:ehci_irq+224}, which is at the
> offset 224 wrt ehci_irq, so I did:
> 
> gdb drivers/usb/host/ehci-hcd.o
> 
> In gdb I did:
> 
> info line ehci_irq
> 
> and it told me the address the line started at, so I added 224 to it and
> got the line 620.

That's a good way of doing it.

  reply	other threads:[~2005-12-12 21:48 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-11 12:13 2.6.15-rc5-mm2 Andrew Morton
2005-12-11 12:39 ` 2.6.15-rc5-mm2 Benoit Boissinot
2005-12-11 15:17 ` 2.6.15-rc5-mm2 Benoit Boissinot
2005-12-11 15:47 ` 2.6.15-rc5-mm2 Rafael J. Wysocki
2005-12-11 15:52   ` 2.6.15-rc5-mm2: broken resume from disk on x86-64 Rafael J. Wysocki
2005-12-11 16:02   ` 2.6.15-rc5-mm2: evdev problem Rafael J. Wysocki
2005-12-11 18:22     ` Dmitry Torokhov
2005-12-11 16:06   ` 2.6.15-rc5-mm2: ehci_hcd crashes on load sometimes Rafael J. Wysocki
2005-12-11 20:38     ` Andrew Morton
2005-12-12 19:53       ` Rafael J. Wysocki
2005-12-12 20:29         ` Andrew Morton
2005-12-12 20:55           ` Rafael J. Wysocki
2005-12-12 21:09             ` Andrew Morton
2005-12-12 21:39               ` Rafael J. Wysocki
2005-12-12 21:47                 ` Andrew Morton [this message]
2005-12-12 21:56                 ` Ben Pfaff
2005-12-13  6:52           ` [linux-usb-devel] " David Brownell
2005-12-13 22:10             ` Rafael J. Wysocki
2005-12-13 22:22               ` David Brownell
2005-12-13 22:39                 ` Rafael J. Wysocki
2005-12-13 23:31                   ` David Brownell
2005-12-11 16:08 ` 2.6.15-rc5-mm2 Jesper Juhl
2005-12-11 21:13   ` [PATCH] Fix vesafb display panning regression Antonino A. Daplas
2005-12-11 21:30     ` Jesper Juhl
2005-12-11 16:12 ` 2.6.15-rc5-mm2 :-) Maciej Soltysiak
2005-12-13  5:52   ` Con Kolivas
     [not found]     ` <1916802326.20051213121330@dns.toxicfilms.tv>
2005-12-13 12:16       ` Con Kolivas
2005-12-13 23:30         ` Peter Williams
2005-12-11 17:56 ` 2.6.15-rc5-mm2: two cs5535 modules Adrian Bunk
2005-12-12 18:29   ` Ben Gardner
2005-12-12 22:49     ` Alan Cox
2005-12-12  0:53 ` 2.6.15-rc5-mm2 Grant Coady
2005-12-12 14:05 ` 2.6.15-rc5-mm2 Cornelia Huck
2005-12-14  8:54 ` SMP+nosmp=hang [was: Re: 2.6.15-rc5-mm2] J.A. Magallon
     [not found]   ` <20060120192259.4460af42.akpm@osdl.org>
2006-01-21 23:46     ` J.A. Magallon
2006-01-22  0:22       ` Randy.Dunlap
2005-12-15 13:41 ` 2.6.15-rc5-mm2 Reuben Farrelly

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=20051212134715.2f74bb72.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=rjw@sisk.pl \
    /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;
as well as URLs for NNTP newsgroup(s).