mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vegard Nossum" <vegard.nossum@gmail.com>
To: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Cc: "Huang Ying" <ying.huang@intel.com>, "H. Peter Anvin" <hpa@zytor.com>
Subject: v2.6.28-rc2: x86_32 relocation regression?
Date: Mon, 24 Nov 2008 22:19:05 +0100	[thread overview]
Message-ID: <19f34abd0811241319u1abf5e77xc2359b4e8d17b518@mail.gmail.com> (raw)

Hi,

I couldn't help noticing that addr2line no longer works for me since
at least v2.6.28-rc2. I get this:

EIP: 0060:[<c039e613>] EFLAGS: 00000202 CPU: 0
EIP is at strcpy+0x13/0x30

    $ addr2line -e vmlinux -i c039e613
    ??:0

...even though the kernel was configured with CONFIG_DEBUG_INFO=y.

    $ grep DEBUG_INFO .config
    CONFIG_DEBUG_INFO=y

gdb too:

    (gdb) disas 0xc039e613
    No function contains specified address.

This is a simple x86_32 defconfig with CONFIG_DEBUG_INFO toggled.

    $ nm vmlinux | grep strcpy
    c12a3b90 t scsi_strcpy_devinfo
    c119e600 T strcpy

It looks like everything was offset by 0xe00000:

    $ addr2line -e vmlinux c119e613
    arch/x86/lib/string_32.c:20

I have also this:

 virtual kernel memory layout:
     fixmap  : 0xffc79000 - 0xfffff000   (3608 kB)
     pkmap   : 0xff400000 - 0xff800000   (4096 kB)
     vmalloc : 0xc87f0000 - 0xff3fe000   ( 876 MB)
     lowmem  : 0xc0000000 - 0xc7ff0000   ( 127 MB)
       .init : 0xc08ce000 - 0xc0932000   ( 400 kB)
       .data : 0xc06c9a4b - 0xc08c46ec   (2027 kB)
       .text : 0xc0200000 - 0xc06c9a4b   (4902 kB)

Any ideas?

Thanks,


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036

             reply	other threads:[~2008-11-24 21:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 21:19 Vegard Nossum [this message]
2008-11-25  1:30 ` Huang Ying
2008-11-25 10:07   ` Vegard Nossum
2008-11-25 17:31     ` H. Peter Anvin

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=19f34abd0811241319u1abf5e77xc2359b4e8d17b518@mail.gmail.com \
    --to=vegard.nossum@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ying.huang@intel.com \
    /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

all inboxes | Powered by JetHome®