Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Erez Zilber <erezzi.list@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Huge pages and gdb
Date: Wed, 23 Mar 2011 17:09:00 -0000	[thread overview]
Message-ID: <m2zkol7oh0.fsf@igel.home> (raw)
In-Reply-To: <AANLkTinK_ux8KrnavfBOovFt-nW9mjcgVoUtsJwX0U0=@mail.gmail.com>	(Erez Zilber's message of "Wed, 23 Mar 2011 10:44:59 +0200")

Erez Zilber <erezzi.list@gmail.com> writes:

> My application (running on RHEL 6) calls mmap() to map huge pages.
> After it crashed, I opened gdb with the core file and tried to take a
> look in the huge-pages buffer that was mmapped. I got the following
> error:
>
> gdb) p pool->mem
> $2 = 0x7f3201400000 <Address 0x7f3201400000 out of bounds>
> (gdb) p pool->mem[0]
> Cannot access memory at address 0x7f3201400000

If gdb cannot access the memory then it is not part of the core file.
Please check with "info target" whether one of the segments cover the
address range.  If not, then either the address really is invalid, or it
is an issue with the core producer and gdb cannot do anything about
that.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


  reply	other threads:[~2011-03-23 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23  8:45 Erez Zilber
2011-03-23 17:09 ` Andreas Schwab [this message]
2011-03-23 17:14   ` Jan Kratochvil
2011-03-27  7:45     ` Erez Zilber

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=m2zkol7oh0.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=erezzi.list@gmail.com \
    --cc=gdb@sourceware.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